feat(argo-cd): Remove redundant useExistingSecret, and assume existence of a secret
Signed-off-by: ranrubin <ranrubin@gmail.com>
This commit is contained in:
parent
611e1b9160
commit
b9ca533633
4 changed files with 2 additions and 7 deletions
|
@ -1466,7 +1466,6 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
|
|||
| notifications.secret.items | object | `{}` | Generic key:value pairs to be inserted into the secret |
|
||||
| notifications.secret.labels | object | `{}` | key:value pairs of labels to be added to the secret |
|
||||
| notifications.secret.name | string | `"argocd-notifications-secret"` | notifications controller Secret name |
|
||||
| notifications.secret.useExistingSecret | bool | `false` | Whether to use existing secret. If true, assumes that the existing secret name is notifications.secret.name |
|
||||
| notifications.serviceAccount.annotations | object | `{}` | Annotations applied to created service account |
|
||||
| notifications.serviceAccount.automountServiceAccountToken | bool | `true` | Automount API credentials for the Service Account |
|
||||
| notifications.serviceAccount.create | bool | `true` | Create notifications controller service account |
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- if and (not .Values.notifications.secret.useExistingSecret) .Values.notifications.enabled .Values.notifications.secret.create }}
|
||||
{{- if and .Values.notifications.enabled .Values.notifications.secret.create }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
|
|
|
@ -38,7 +38,6 @@ rules:
|
|||
verbs:
|
||||
- get
|
||||
{{- end }}
|
||||
{{- if or .Values.notifications.secret.create .Values.notifications.secret.useExistingSecret }}
|
||||
- apiGroups:
|
||||
- ""
|
||||
resourceNames:
|
||||
|
@ -48,4 +47,3 @@ rules:
|
|||
verbs:
|
||||
- get
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
@ -3017,14 +3017,12 @@ notifications:
|
|||
|
||||
secret:
|
||||
# -- Whether helm chart creates notifications controller secret
|
||||
## If true, will create a secret with the name below. Otherwise, will assume existence of a secret with that name.
|
||||
create: true
|
||||
|
||||
# -- notifications controller Secret name
|
||||
name: "argocd-notifications-secret"
|
||||
|
||||
# -- Whether to use existing secret. If true, assumes that the existing secret name is notifications.secret.name
|
||||
useExistingSecret: false
|
||||
|
||||
# -- key:value pairs of annotations to be added to the secret
|
||||
annotations: {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue