chore(argo-cd): Remove invalid options from notification controller (#1530)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com> Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
fbaa2ef19b
commit
d0381671fa
4 changed files with 11 additions and 17 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
appVersion: v2.4.14
|
appVersion: v2.4.14
|
||||||
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 5.5.15
|
version: 5.5.16
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -22,4 +22,5 @@ dependencies:
|
||||||
condition: redis-ha.enabled
|
condition: redis-ha.enabled
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Added]: Make labels for repoServer and notification service accounts configurable"
|
- "[Fixed]: Notification controller strategy must be always Recreate"
|
||||||
|
- "[Removed]: Notification controller securityContext in favor of global.securityContext"
|
||||||
|
|
|
@ -981,7 +981,6 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
|
||||||
| notifications.secret.annotations | object | `{}` | key:value pairs of annotations to be added to the secret |
|
| notifications.secret.annotations | object | `{}` | key:value pairs of annotations to be added to the secret |
|
||||||
| notifications.secret.create | bool | `true` | Whether helm chart creates controller secret |
|
| notifications.secret.create | bool | `true` | Whether helm chart creates controller secret |
|
||||||
| notifications.secret.items | object | `{}` | Generic key:value pairs to be inserted into the secret |
|
| notifications.secret.items | object | `{}` | Generic key:value pairs to be inserted into the secret |
|
||||||
| notifications.securityContext | object | `{"runAsNonRoot":true}` | Pod Security Context |
|
|
||||||
| notifications.serviceAccount.annotations | object | `{}` | Annotations applied to created service account |
|
| notifications.serviceAccount.annotations | object | `{}` | Annotations applied to created service account |
|
||||||
| notifications.serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
|
| notifications.serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
|
||||||
| notifications.serviceAccount.labels | object | `{}` | Labels applied to created service account |
|
| notifications.serviceAccount.labels | object | `{}` | Labels applied to created service account |
|
||||||
|
@ -990,7 +989,6 @@ If you want to use an existing Redis (eg. a managed service from a cloud provide
|
||||||
| notifications.templates | object | `{}` | The notification template is used to generate the notification content |
|
| notifications.templates | object | `{}` | The notification template is used to generate the notification content |
|
||||||
| notifications.tolerations | list | `[]` | [Tolerations] for use with node taints |
|
| notifications.tolerations | list | `[]` | [Tolerations] for use with node taints |
|
||||||
| notifications.triggers | object | `{}` | The trigger defines the condition when the notification should be sent |
|
| notifications.triggers | object | `{}` | The trigger defines the condition when the notification should be sent |
|
||||||
| notifications.updateStrategy | object | `{"type":"Recreate"}` | The deployment strategy to use to replace existing pods with new ones |
|
|
||||||
|
|
||||||
### Using AWS ALB Ingress Controller With GRPC
|
### Using AWS ALB Ingress Controller With GRPC
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "argo-cd.notifications.fullname" . }}
|
name: {{ include "argo-cd.notifications.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
strategy:
|
strategy:
|
||||||
{{- .Values.notifications.updateStrategy | toYaml | nindent 4 }}
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.notifications.name) | nindent 6 }}
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.notifications.name) | nindent 6 }}
|
||||||
|
@ -25,12 +25,15 @@ spec:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.notifications.imagePullSecrets | default .Values.global.imagePullSecrets }}
|
{{- with .Values.notifications.imagePullSecrets | default .Values.global.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.global.securityContext }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: {{ include "argo-cd.notificationsServiceAccountName" . }}
|
serviceAccountName: {{ include "argo-cd.notificationsServiceAccountName" . }}
|
||||||
securityContext: {{- toYaml (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.notifications.securityContext) | nindent 8 }}
|
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Values.notifications.name }}
|
- name: {{ .Values.notifications.name }}
|
||||||
image: {{ default .Values.global.image.repository .Values.notifications.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.notifications.image.tag }}
|
image: {{ default .Values.global.image.repository .Values.notifications.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.notifications.image.tag }}
|
||||||
|
|
|
@ -2231,10 +2231,6 @@ notifications:
|
||||||
# -- [Node selector]
|
# -- [Node selector]
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
# -- The deployment strategy to use to replace existing pods with new ones
|
|
||||||
updateStrategy:
|
|
||||||
type: Recreate
|
|
||||||
|
|
||||||
# -- Define user-defined context
|
# -- Define user-defined context
|
||||||
## For more information: https://argocd-notifications.readthedocs.io/en/stable/templates/#defining-user-defined-context
|
## For more information: https://argocd-notifications.readthedocs.io/en/stable/templates/#defining-user-defined-context
|
||||||
context: {}
|
context: {}
|
||||||
|
@ -2336,10 +2332,6 @@ notifications:
|
||||||
# -- Labels to be applied to the controller Pods
|
# -- Labels to be applied to the controller Pods
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
|
|
||||||
# -- Pod Security Context
|
|
||||||
securityContext:
|
|
||||||
runAsNonRoot: true
|
|
||||||
|
|
||||||
# -- Container Security Context
|
# -- Container Security Context
|
||||||
containerSecurityContext: {}
|
containerSecurityContext: {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue