Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Fix webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
lubronzhan committed Oct 31, 2022
1 parent cb18b92 commit 579c0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ func main() {
os.Exit(1)
}

mgr.GetWebhookServer().TLSMinVersion = flags.tlsMinVersion
addonReconciler := &controllers.AddonReconciler{
Client: mgr.GetClient(),
Log: ctrl.Log.WithName("controllers").WithName("Addon"),
Expand Down Expand Up @@ -359,6 +358,7 @@ func enableClusterBootstrapAndConfigControllers(ctx context.Context, mgr ctrl.Ma
}

func enableWebhooks(ctx context.Context, mgr ctrl.Manager, flags *addonFlags) {
mgr.GetWebhookServer().TLSMinVersion = flags.tlsMinVersion
certPath := path.Join(constants.WebhookCertDir, "tls.crt")
keyPath := path.Join(constants.WebhookCertDir, "tls.key")
webhookTLS := webhooks.WebhookTLS{
Expand Down

0 comments on commit 579c0a5

Please # to comment.