Closed ordovicia closed 9 months ago
https://github.com/pfnet-research/gcp-workload-identity-federation-webhook/pull/28/files#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261R88-R92
This PR fixes this bug, by removing WebhookServer from ctrl.Options. When WebhookServer == nil, ctrl.NewManager will create a webhook server with the default options, using 9443 port by default.
WebhookServer
ctrl.Options
WebhookServer == nil
ctrl.NewManager
28 introduced a bug that the webhook server listens on 944 port, not 9443.
https://github.com/pfnet-research/gcp-workload-identity-federation-webhook/pull/28/files#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261R88-R92
This PR fixes this bug, by removing
WebhookServer
fromctrl.Options
. WhenWebhookServer == nil
,ctrl.NewManager
will create a webhook server with the default options, using 9443 port by default.