-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
/kind bug
When setting feature gates for cert-manager in the kops configuration, kops adds command line parameters to the cert-manager controller but not to the other components. This means that some feature gates actually do not take full effect. For example if you enable the feature gate to allow the additionalFormats to be specified, it will be rejected by the webhook because it does not have the feature gate enabled even though the controller will support the extra formats and issue the certificates.
Also, the feature gates that are accepted by the different components are not necessarily the same, so the logic for adding feature gates has to take into account which feature gates can be safely passed through to which components.
See also:
- Kops managed cert-manager with feature gates enabled #16498 (comment)
- https://cert-manager.io/docs/installation/configuring-components/#feature-gates
- https://github.com/cert-manager/cert-manager/blob/master/internal/controller/feature/features.go
- https://github.com/cert-manager/cert-manager/blob/master/internal/webhook/feature/features.go
- https://github.com/cert-manager/cert-manager/blob/master/internal/cainjector/feature/features.go