-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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(argo-cd): Fix fail to render .Values.configs.secret.azureDevops
#2443
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -16,7 +16,7 @@ metadata: | |||||
{{- end }} | ||||||
{{- end }} | ||||||
type: Opaque | ||||||
{{- if or .Values.configs.secret.githubSecret (or .Values.configs.secret.gitlabSecret .Values.configs.secret.bitbucketUUID .Values.configs.secret.bitbucketServerSecret .Values.configs.secret.gogsSecret .Values.configs.secret.argocdServerAdminPassword .Values.configs.secret.argocdServerTlsConfig .Values.configs.secret.extra) }} | ||||||
{{- if or .Values.configs.secret.githubSecret (or .Values.configs.secret.gitlabSecret .Values.configs.secret.bitbucketUUID .Values.configs.secret.bitbucketServerSecret .Values.configs.secret.gogsSecret (and .Values.configs.secret.azureDevops.username .Values.configs.secret.azureDevops.password) .Values.configs.secret.argocdServerAdminPassword .Values.configs.secret.argocdServerTlsConfig .Values.configs.secret.extra) }} | ||||||
# Setting a blank data again will wipe admin password/key/cert | ||||||
data: | ||||||
{{- with .Values.configs.secret.githubSecret }} | ||||||
|
@@ -34,9 +34,9 @@ data: | |||||
{{- with .Values.configs.secret.gogsSecret }} | ||||||
webhook.gogs.secret: {{ . | b64enc }} | ||||||
{{- end }} | ||||||
{{- with .Values.configs.secret.azureDevops }} | ||||||
webhook.azuredevops.username: {{ .username }} | ||||||
webhook.azuredevops.password: {{ .password | b64enc }} | ||||||
{{- if and (.Values.configs.secret.azureDevops.username .Values.configs.secret.azureDevops.password) }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Otherwise There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wow 😇 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I fixed in eb6fea3 . 🙋 |
||||||
webhook.azuredevops.username: {{ .Values.configs.secret.azureDevops.username | b64enc }} | ||||||
webhook.azuredevops.password: {{ .Values.configs.secret.azureDevops.password | b64enc }} | ||||||
{{- end }} | ||||||
{{- with .Values.configs.secret.argocdServerTlsConfig }} | ||||||
tls.key: {{ .key | b64enc }} | ||||||
|
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.
The default value of
azureDevops
is not empty object ({}
), so thewith
always returns true... 😇