feat(argo-cd): Adding applicationSet.enable and notifications.enable (#1181)
* feat(argo-cd) Adding applicationSet.enable and notifications.enable to allow to disable them Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Fixing Chart version and redudant ifs Signed-off-by: Eric Durand eric_p_durand@yahoo.com Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Detail the change Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Drop one more redundant if Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
48bf6d4a38
commit
3a2858aa98
19 changed files with 34 additions and 10 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
appVersion: v2.3.1
|
appVersion: v2.3.1
|
||||||
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: 4.1.0
|
version: 4.2.0
|
||||||
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
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -21,4 +21,4 @@ dependencies:
|
||||||
condition: redis-ha.enabled
|
condition: redis-ha.enabled
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Changed]: added notifications.metrics.serviceMonitor.selector value"
|
- "[Added]: added applicationSet.enabled and notifications.enabled to allow to disable them"
|
||||||
|
|
|
@ -658,6 +658,7 @@ NAME: my-release
|
||||||
| applicationSet.args.metricsAddr | string | `":8080"` | The default metric address |
|
| applicationSet.args.metricsAddr | string | `":8080"` | The default metric address |
|
||||||
| applicationSet.args.policy | string | `"sync"` | How application is synced between the generator and the cluster |
|
| applicationSet.args.policy | string | `"sync"` | How application is synced between the generator and the cluster |
|
||||||
| applicationSet.args.probeBindAddr | string | `":8081"` | The default health check port |
|
| applicationSet.args.probeBindAddr | string | `":8081"` | The default health check port |
|
||||||
|
| applicationSet.enabled | bool | `true` | Enable Application Set controller |
|
||||||
| applicationSet.extraArgs | list | `[]` | List of extra cli args to add |
|
| applicationSet.extraArgs | list | `[]` | List of extra cli args to add |
|
||||||
| applicationSet.extraContainers | list | `[]` | Additional containers to be added to the applicationset controller pod |
|
| applicationSet.extraContainers | list | `[]` | Additional containers to be added to the applicationset controller pod |
|
||||||
| applicationSet.extraEnv | list | `[]` | Environment variables to pass to the controller |
|
| applicationSet.extraEnv | list | `[]` | Environment variables to pass to the controller |
|
||||||
|
@ -734,6 +735,7 @@ NAME: my-release
|
||||||
| notifications.cm.name | string | `""` | The name of the config map to use. |
|
| notifications.cm.name | string | `""` | The name of the config map to use. |
|
||||||
| notifications.containerSecurityContext | object | `{}` | Container Security Context |
|
| notifications.containerSecurityContext | object | `{}` | Container Security Context |
|
||||||
| notifications.context | object | `{}` | Define user-defined context |
|
| notifications.context | object | `{}` | Define user-defined context |
|
||||||
|
| notifications.enabled | bool | `true` | Enable Notifications controller |
|
||||||
| notifications.extraArgs | list | `[]` | Extra arguments to provide to the controller |
|
| notifications.extraArgs | list | `[]` | Extra arguments to provide to the controller |
|
||||||
| notifications.extraEnv | list | `[]` | Additional container environment variables |
|
| notifications.extraEnv | list | `[]` | Additional container environment variables |
|
||||||
| notifications.extraVolumeMounts | list | `[]` | List of extra mounts to add (normally used with extraVolumes) |
|
| notifications.extraVolumeMounts | list | `[]` | List of extra mounts to add (normally used with extraVolumes) |
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.applicationSet.enabled }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -124,3 +125,4 @@ spec:
|
||||||
{{- with .Values.applicationSet.priorityClassName }}
|
{{- with .Values.applicationSet.priorityClassName }}
|
||||||
priorityClassName: {{ . }}
|
priorityClassName: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if .Values.applicationSet.metrics.enabled }}
|
{{- if and .Values.applicationSet.enabled .Values.applicationSet.metrics.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.applicationSet.enabled }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -81,3 +82,4 @@ rules:
|
||||||
- patch
|
- patch
|
||||||
- update
|
- update
|
||||||
- watch
|
- watch
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.applicationSet.enabled }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -12,3 +13,4 @@ subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ template "argo-cd.applicationSetServiceAccountName" . }}
|
name: {{ template "argo-cd.applicationSetServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.applicationSet.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -17,3 +18,4 @@ spec:
|
||||||
targetPort: {{ .Values.applicationSet.containerPort }}
|
targetPort: {{ .Values.applicationSet.containerPort }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.applicationSet.name) | nindent 4 }}
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.applicationSet.name) | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if .Values.applicationSet.serviceAccount.create }}
|
{{- if and .Values.applicationSet.enabled .Values.applicationSet.serviceAccount.create }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
automountServiceAccountToken: {{ .Values.applicationSet.serviceAccount.automountServiceAccountToken }}
|
automountServiceAccountToken: {{ .Values.applicationSet.serviceAccount.automountServiceAccountToken }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.applicationSet.enabled }}
|
||||||
{{- if and .Values.applicationSet.metrics.enabled .Values.applicationSet.metrics.serviceMonitor.enabled }}
|
{{- if and .Values.applicationSet.metrics.enabled .Values.applicationSet.metrics.serviceMonitor.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
|
@ -36,3 +37,4 @@ spec:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "argo-cd.selectorLabels" (dict "context" . "component" .Values.applicationSet.name "name" "metrics") | nindent 6 }}
|
{{- include "argo-cd.selectorLabels" (dict "context" . "component" .Values.applicationSet.name "name" "metrics") | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if .Values.applicationSet.webhook.ingress.enabled -}}
|
{{- if and .Values.applicationSet.enabled .Values.applicationSet.webhook.ingress.enabled -}}
|
||||||
{{- $serviceName := include "argo-cd.applicationSet.fullname" . -}}
|
{{- $serviceName := include "argo-cd.applicationSet.fullname" . -}}
|
||||||
{{- $servicePort := .Values.applicationSet.service.portName -}}
|
{{- $servicePort := .Values.applicationSet.service.portName -}}
|
||||||
{{- $paths := .Values.applicationSet.webhook.ingress.paths -}}
|
{{- $paths := .Values.applicationSet.webhook.ingress.paths -}}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{ if .Values.notifications.cm.create }}
|
{{- if and .Values.notifications.enabled .Values.notifications.cm.create }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.notifications.enabled }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -104,3 +105,4 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.notifications.enabled }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -40,3 +41,4 @@ rules:
|
||||||
- secrets
|
- secrets
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if .Values.notifications.enabled }}
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -12,3 +13,4 @@ subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ template "argo-cd.notificationsServiceAccountName" . }}
|
name: {{ template "argo-cd.notificationsServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{ if .Values.notifications.secret.create }}
|
{{- if and .Values.notifications.enabled .Values.notifications.secret.create }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if .Values.notifications.metrics.enabled }}
|
{{- if and .Values.notifications.enabled .Values.notifications.metrics.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if .Values.notifications.serviceAccount.create }}
|
{{- if and .Values.notifications.enabled .Values.notifications.serviceAccount.create }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
automountServiceAccountToken: {{ .Values.notifications.serviceAccount.automountServiceAccountToken }}
|
automountServiceAccountToken: {{ .Values.notifications.serviceAccount.automountServiceAccountToken }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if and .Values.notifications.metrics.enabled .Values.notifications.metrics.serviceMonitor.enabled }}
|
{{- if and .Values.notifications.enabled .Values.notifications.metrics.enabled .Values.notifications.metrics.serviceMonitor.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -1862,6 +1862,9 @@ openshift:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
applicationSet:
|
applicationSet:
|
||||||
|
# -- Enable Application Set controller
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# -- Application Set controller name string
|
# -- Application Set controller name string
|
||||||
name: applicationset-controller
|
name: applicationset-controller
|
||||||
|
|
||||||
|
@ -2062,6 +2065,9 @@ applicationSet:
|
||||||
# - argocd-applicationset.example.com
|
# - argocd-applicationset.example.com
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
# -- Enable Notifications controller
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# -- Notifications controller name string
|
# -- Notifications controller name string
|
||||||
name: notifications-controller
|
name: notifications-controller
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue