-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gateway API: Recommend the config
approach rather than extraArgs
#1517
Gateway API: Recommend the config
approach rather than extraArgs
#1517
Conversation
@wallrj Can you take a look? Thanks! |
✅ Deploy Preview for cert-manager ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @maelvls
This looks like a nicer way to configure that feature, but it won't work until the next cert-manager release, right?
It depends on cert-manager/cert-manager@1b9c02e which has not been backported or released yet.
And since this documentation relates to the next version of cert-manager, it should be merged into release-next, along with the release note for the change which makes this possible.
And the DCO check seems to be failing.
Thanks @maelvls @wallrj for the info. It would be great to document the difference. Right now I noticed there are 3 methods in Helm chart: featureGates: ExperimentalGatewayAPISupport=true extraArgs:
- --feature-gates=ExperimentalGatewayAPISupport=true
config:
featureGates:
ExperimentalGatewayAPISupport: true |
I'll clarify further why and what the recommended approaches are depending on the cert-manager version. Thanks for the feedback! |
Here would be my recommendation depending on whether you are using 1.14 or below, 1.15, or 1.16 and above: If you are using 1.15 and above, you no longer have to set a feature flag, but you still need to enable the feature. The recommended way to turn on the Gateway API support in 1.15 is to use the file-based configuration using the config:
apiVersion: controller.config.cert-manager.io/v1alpha1
kind: ControllerConfiguration
enableGatewayAPI: true If you are using 1.16 and above, it is even simpler: config:
enableGatewayAPI: true Another less practical way is to rely on the command line flag extraArgs:
- --enable-gateway-api If you are using 1.14 and below, you will have to use the feature flag to turn on the Gateway API support. The recommended way is to use the Another way is to use the config:
apiVersion: controller.config.cert-manager.io/v1alpha1
kind: ControllerConfiguration
featureGates:
ExperimentalGatewayAPISupport: true A less readable way (as it requires a comma-separated list of feature flags) is to use the featureGates: ExperimentalGatewayAPISupport=true which is equivalent to: extraArgs:
- --feature-gates=ExperimentalGatewayAPISupport=true I'm not sure how to put that into the documentation. Should I only talk about the latest version, or can I explain how to set up Gateway API depending on the version? @wallrj |
ab9017a
to
06d98d2
Compare
Discussed in this morning's open standup:
|
06d98d2
to
fadf7b6
Compare
fadf7b6
to
0ff4697
Compare
The "config" approach is much more convenient than to have to concatenate flags in the extraFlags field. Signed-off-by: Maël Valais <[email protected]>
0ff4697
to
0c95de7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spotted a minor typo which you can ignore if you like, by unholding.
I didn't test this, but I expect you have.
/approve
/lgtm
/hold
Co-authored-by: Richard Wall <[email protected]> Signed-off-by: Maël Valais <[email protected]>
Signed-off-by: Maël Valais <[email protected]>
5333e8a
to
ff1e41a
Compare
I had forgotten to test it... and found multiple typos in the commands. 🤦 I fixed them, it should be good to go now. |
/unhold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wallrj The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Now that cert-manager 1.16 has been released, I opened #1586 to track this issue. |
The
config
approach is much more convenient than to have to concatenate flags in theextraFlags
field. Theconfig
approach isn't immediately obvious to users, as seen in cert-manager/cert-manager#7121 where we found that there was no need for adding an extra helm value: one could simply useconfig.enableGatewayAPI
.