-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
🐛 fix: (helm/v1alpha1): remove redundant condition in if clause #4419
Conversation
Hi @monteiro-renato. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@@ -9,6 +9,7 @@ metadata: | |||
namespace: {{ .Release.Namespace }} | |||
spec: | |||
selfSigned: {} | |||
{{- end }} | |||
{{- if .Values.webhook.enable }} |
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.
does this change behavior?
prior Certificate/serving-cert
object was only created if both .Values.certmanager.enable
and .Values.webhook.enable
were true?
now Certificate/serving-cert
object is created if .Values.webhook.enable
is true?
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.
certs for webhooks must be created if webhook and certmanager are enabled
certs for metrics must be created if metrics and certmanager are enabled
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.
It does but wasn't intentional. I guess I messed it up when I forced push.
The "problematic" line is this one
kubebuilder/testdata/project-v4-with-plugins/dist/chart/templates/certmanager/certificate.yaml
Line 36 in ad4afdb
{{- if and .Values.metrics.enable .Values.certmanager.enable }} |
The if with ".Values.certmanager.enable" is redundant as the value is already true on line 1.
I can either remove that extra condition on the if clause or have 3 different if statements.
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.
So we have no problem at all?
If we have I am ok with both
Because we need asap before the release change the webhook implementation
see if we can only provide webhooks and enable true instead of adding the values there.
Otherwise, we might need to just comment on the changes and say that webhook is not supported yet.
it might a better approach than provide something that we need to change soon
ac4913b
to
6bb7aa8
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.
/ok-to-test
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, monteiro-renato 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 |
/lgtm |
No description provided.