mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-22 00:54:00 +00:00
set min tls version (#284)
Signed-off-by: ldpliu <daliu@redhat.com> Signed-off-by: ldpliu <daliu@redhat.com>
This commit is contained in:
@@ -18,6 +18,7 @@ import (
|
||||
|
||||
ctrl "sigs.k8s.io/controller-runtime"
|
||||
"sigs.k8s.io/controller-runtime/pkg/healthz"
|
||||
"sigs.k8s.io/controller-runtime/pkg/webhook"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -37,6 +38,7 @@ func (c *Options) RunWebhookServer() error {
|
||||
Port: c.Port,
|
||||
HealthProbeBindAddress: ":8000",
|
||||
CertDir: c.CertDir,
|
||||
WebhookServer: &webhook.Server{TLSMinVersion: "1.2"},
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user