-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: default ControllerConfiguration apiVersion and kind in helm #7126
feat: default ControllerConfiguration apiVersion and kind in helm #7126
Conversation
5725f07
to
2d0d4bf
Compare
2d0d4bf
to
1393dbb
Compare
@@ -1,6 +1,7 @@ | |||
{{- if .Values.cainjector.config -}} | |||
{{- $_ := .Values.cainjector.config.apiVersion | required ".Values.cainjector.config.apiVersion must be set !" -}} | |||
{{- $_ := .Values.cainjector.config.kind | required ".Values.cainjector.config.kind must be set !" -}} | |||
{{- $config := .Values.cainjector.config -}} |
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.
Could you add some comments in the values.yaml file about backwards compatibility etc?
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've added a comment in the values.yaml for each config block describing the behaviour and how to pin to a version
1393dbb
to
dcc44ef
Compare
Signed-off-by: Adam Talbot <adam.talbot@venafi.com>
dcc44ef
to
e30ad68
Compare
Hey, thanks for writing this feature so quickly! For context, this is useful for #7121. I tested this with $ gh pr checkout 7126
$ make helm-chart
$ helm upgrade --install cert-manager _bin/helm/cert-manager --create-namespace --namespace cert-manager \
--set installCRDs=true \
--set config.enableGatewayAPI=true
$ kubectl get cm -n cert-manager cert-manager -oyaml
apiVersion: v1
data:
config.yaml: |
apiVersion: controller.config.cert-manager.io/v1alpha1
enableGatewayAPI: true
kind: ControllerConfiguration All good! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maelvls 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 |
1b9c02e
into
cert-manager:master
/kind feature |
Pull Request Motivation
This makes it easier to configure cert-manager using Helm by defaulting config.apiVersion and config.kind.
For example, enabling gateway api goes from:
to:
Kind
feature
Release Note