Skip to content
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

Webhook feature gates only set if controller feature gates are #6346

Closed
mila-rodriguez-netapp opened this issue Sep 13, 2023 · 2 comments · Fixed by #6380
Closed

Webhook feature gates only set if controller feature gates are #6346

mila-rodriguez-netapp opened this issue Sep 13, 2023 · 2 comments · Fixed by #6380
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@mila-rodriguez-netapp
Copy link

Describe the bug:
Pretty sure this isn't intentional and probably just a typo in the chart.

{{- if .Values.featureGates }}
- --feature-gates={{ .Values.webhook.featureGates }}
{{- end }}

The --feature-gates flag in the webhook template is correctly being set to the .Values.webhook.featureGates, but the entire statement is guarded by a check that the controller feature gates exist (.Values.featureGates). Are webhook feature gates subordinate to controller feature gates? If you want to apply feature gates to the webhook but not the controller, you can't because of this.

Expected behaviour:

I would expect to be able to apply discrete feature gates to both the controller and the webhook. If I want to enable A in the controller and B in the webhook I can; but if I want to apply only B in the webhook I cannot because the template requires that the controller have a feature gate applied as well.

Steps to reproduce the bug:

--set webhook.featureGates=example should apply the feature gate flag and 'example' to the webhook, but it does not because the controller does not have any feature gates applied.

Anything else we need to know?:

As mentioned, I think this is just a typo in the template (eg should be {{- if .Values.webhook.featureGates }}) or I'm just confused about how feature gates work and you can't have webhook features without having controller features. 🤷🏼

Environment details::

  • Kubernetes version: N/A
  • Cloud-provider/provisioner: N/A
  • cert-manager version: v1.13.0
  • Install method: helm

/kind bug

@jetstack-bot jetstack-bot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 13, 2023
@irbekrm
Copy link
Collaborator

irbekrm commented Sep 15, 2023

Hi, yes, that's a bug, we fixed a related bug in #6093 but looks like missed that line.

Would you like to submit a fix?

@irbekrm irbekrm added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Sep 15, 2023
@irbekrm irbekrm added the good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. label Sep 24, 2023
@RipulHandoo
Copy link

RipulHandoo commented Sep 29, 2023

Hey @irbekrm!!
Do we have to update this
{{- if .Values.featureGates }}
with this
{{- if .Values.webhook.featureGates }}
RIght?

asapekia added a commit to asapekia/cert-manager that referenced this issue Sep 30, 2023
asapekia added a commit to asapekia/cert-manager that referenced this issue Sep 30, 2023
Signed-off-by: Arin <136636751+asapekia@users.noreply.github.com>
jetstack-bot added a commit that referenced this issue Oct 1, 2023
BUGFIX[helm]: Fix issue where webhook feature gates were only set if controller feature gates are set (closes #6346)
jetstack-bot pushed a commit to jetstack-bot/cert-manager that referenced this issue Oct 1, 2023
Signed-off-by: Arin <136636751+asapekia@users.noreply.github.com>
jetstack-bot added a commit that referenced this issue Oct 2, 2023
…e-1.13

[release-1.13] BUGFIX[helm]: Fix issue where webhook feature gates were only set if controller feature gates are set (closes #6346)
kangsheng89 pushed a commit to kangsheng89/cert-manager that referenced this issue Dec 1, 2023
Signed-off-by: Arin <136636751+asapekia@users.noreply.github.com>
logand22 pushed a commit to gravitational/cert-manager that referenced this issue Mar 8, 2024
Signed-off-by: Arin <136636751+asapekia@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
4 participants