feat(argocd-notifications): Support new notification controller features from argoproj-labs/argocd-notifications#77 (#1066)
* Support setting secret name Signed-off-by: Hendrik Maus <aidentailor@gmail.com> * Support setting configmap name Signed-off-by: Hendrik Maus <aidentailor@gmail.com> * Use the fullname template for secret name Signed-off-by: Hendrik Maus <aidentailor@gmail.com> * Use the fullname template for configmap name Signed-off-by: Hendrik Maus <aidentailor@gmail.com> * Bump chart version 1.6.1 -> 1.7.0 Signed-off-by: Hendrik Maus <aidentailor@gmail.com> * Update changelog Signed-off-by: Hendrik Maus <aidentailor@gmail.com> * Update README Signed-off-by: Hendrik Maus <aidentailor@gmail.com> Co-authored-by: Marko Bevc <marko@scalefactory.com>
This commit is contained in:
parent
dbcd02fd8d
commit
0ce72e3028
7 changed files with 39 additions and 4 deletions
|
@ -3,7 +3,7 @@ appVersion: v1.2.1
|
|||
description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD.
|
||||
name: argocd-notifications
|
||||
type: application
|
||||
version: 1.6.1
|
||||
version: 1.7.0
|
||||
home: https://github.com/argoproj/argo-helm
|
||||
icon: https://argocd-notifications.readthedocs.io/en/stable/assets/logo.png
|
||||
keywords:
|
||||
|
@ -15,4 +15,4 @@ maintainers:
|
|||
- name: andyfeller
|
||||
annotations:
|
||||
artifacthub.io/changes: |
|
||||
- "[Changed]: Update to app version v1.2.1"
|
||||
- "[Added]: Support for dynamic Secret and ConfigMap names"
|
||||
|
|
|
@ -23,6 +23,7 @@ docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:late
|
|||
| affinity | object | `{}` | Assign custom [affinity] rules |
|
||||
| argocdUrl | string | `nil` | ArgoCD dashboard url; used in place of {{.context.argocdUrl}} in templates |
|
||||
| cm.create | bool | `true` | Whether helm chart creates controller config map |
|
||||
| cm.name | string | `""` | The name of the config map to use. |
|
||||
| containerSecurityContext | object | `{}` | Container Security Context |
|
||||
| context | object | `{}` | Define user-defined context |
|
||||
| extraArgs | list | `[]` | Extra arguments to provide to the controller |
|
||||
|
@ -48,6 +49,7 @@ docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:late
|
|||
| secret.annotations | object | `{}` | key:value pairs of annotations to be added to the secret |
|
||||
| secret.create | bool | `true` | Whether helm chart creates controller secret |
|
||||
| secret.items | object | `{}` | Generic key:value pairs to be inserted into the secret |
|
||||
| secret.name | string | `""` | The name of the secret to use. |
|
||||
| securityContext | object | `{"runAsNonRoot":true}` | Pod Security Context |
|
||||
| serviceAccount.annotations | object | `{}` | Annotations applied to created service account |
|
||||
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
|
||||
|
|
|
@ -113,3 +113,26 @@ Create the name of the bot service account to use
|
|||
{{ default "default" .Values.bots.slack.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the secret to use
|
||||
*/}}
|
||||
{{- define "argocd-notifications.secretName" -}}
|
||||
{{- if .Values.secret.create -}}
|
||||
{{ default (printf "%s-secret" (include "argocd-notifications.fullname" .)) .Values.secret.name }}
|
||||
{{- else -}}
|
||||
{{ default "argocd-notifications-secret" .Values.secret.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create the name of the configmap to use
|
||||
*/}}
|
||||
{{- define "argocd-notifications.configMapName" -}}
|
||||
{{- if .Values.cm.create -}}
|
||||
{{ default (printf "%s-cm" (include "argocd-notifications.fullname" .)) .Values.cm.name }}
|
||||
{{- else -}}
|
||||
{{ default "argocd-notifications-cm" .Values.cm.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-notifications-cm
|
||||
name: {{ include "argocd-notifications.configMapName" . }}
|
||||
labels:
|
||||
{{- include "argocd-notifications.labels" . | nindent 4 }}
|
||||
data:
|
||||
|
|
|
@ -45,6 +45,8 @@ spec:
|
|||
{{- if .Values.metrics.enabled }}
|
||||
- --metrics-port={{ .Values.metrics.port }}
|
||||
{{- end }}
|
||||
- --secret-name={{ include "argocd-notifications.secretName" . }}
|
||||
- --config-map-name={{ include "argocd-notifications.configMapName" . }}
|
||||
{{- range .Values.extraArgs }}
|
||||
- {{ . | squote }}
|
||||
{{- end }}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: argocd-notifications-secret
|
||||
name: {{ include "argocd-notifications.secretName" . }}
|
||||
labels:
|
||||
{{- include "argocd-notifications.labels" . | nindent 4 }}
|
||||
{{- if .Values.secret.annotations }}
|
||||
|
|
|
@ -41,6 +41,10 @@ secret:
|
|||
# -- key:value pairs of annotations to be added to the secret
|
||||
annotations: {}
|
||||
|
||||
# -- The name of the secret to use.
|
||||
## If not set and create is true, the default name 'argocd-notifications-secret' is used
|
||||
name: ""
|
||||
|
||||
# -- Generic key:value pairs to be inserted into the secret
|
||||
## Can be used for templates, notification services etc. Some examples given below.
|
||||
## For more information: https://argocd-notifications.readthedocs.io/en/stable/services/overview/
|
||||
|
@ -129,6 +133,10 @@ cm:
|
|||
# -- Whether helm chart creates controller config map
|
||||
create: true
|
||||
|
||||
# -- The name of the config map to use.
|
||||
## If not set and create is true, the default name 'argocd-notifications-cm' is used
|
||||
name: ""
|
||||
|
||||
# -- Contains centrally managed global application subscriptions
|
||||
## For more information: https://argocd-notifications.readthedocs.io/en/stable/subscriptions/
|
||||
subscriptions: {}
|
||||
|
|
Loading…
Reference in a new issue