Merge branch 'main' into main

Signed-off-by: shlomi tubul <33376277+shlomitubul@users.noreply.github.com>
This commit is contained in:
shlomi tubul 2024-02-13 22:46:08 +02:00 committed by GitHub
commit 999ebd3d8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 18 additions and 18 deletions

View file

@ -22,7 +22,7 @@ spec:
metadata: metadata:
annotations: annotations:
checksum/cmd-params: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | sha256sum }} checksum/cmd-params: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | sha256sum }}
{{- if (hasKey .Values.server "configEnabled") | ternary .Values.server.configEnabled .Values.configs.cm.create }} {{- if .Values.configs.cm.create }}
checksum/cm: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | sha256sum }} checksum/cm: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | sha256sum }}
{{- end }} {{- end }}
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.controller.podAnnotations) }} {{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.controller.podAnnotations) }}

View file

@ -1,4 +1,4 @@
{{- if .Values.createClusterRoles }} {{- if and .Values.createClusterRoles .Values.repoServer.clusterRoleRules.enabled }}
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
@ -6,8 +6,8 @@ metadata:
labels: labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 4 }} {{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 4 }}
rules: rules:
{{- if .Values.repoServer.clusterRoleRules.enabled }} {{- with .Values.repoServer.clusterRoleRules.rules }}
{{- toYaml .Values.repoServer.clusterRoleRules.rules | nindent 2 }} {{- toYaml . | nindent 2 }}
{{- else }} {{- else }}
- apiGroups: - apiGroups:
- '*' - '*'

View file

@ -1,4 +1,4 @@
{{- if .Values.createClusterRoles }} {{- if and .Values.createClusterRoles .Values.repoServer.clusterRoleRules.enabled }}
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:

View file

@ -30,7 +30,7 @@ spec:
{{- if .Values.repoServer.certificateSecret.enabled }} {{- if .Values.repoServer.certificateSecret.enabled }}
checksum/repo-server-tls: {{ include (print $.Template.BasePath "/argocd-configs/argocd-repo-server-tls-secret.yaml") . | sha256sum }} checksum/repo-server-tls: {{ include (print $.Template.BasePath "/argocd-configs/argocd-repo-server-tls-secret.yaml") . | sha256sum }}
{{- end }} {{- end }}
{{- if (hasKey .Values.server "configEnabled") | ternary .Values.server.configEnabled .Values.configs.cm.create }} {{- if .Values.configs.cm.create }}
checksum/cm: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | sha256sum }} checksum/cm: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cm.yaml") . | sha256sum }}
{{- end }} {{- end }}
{{- if .Values.configs.cmp.create }} {{- if .Values.configs.cmp.create }}

View file

@ -13,7 +13,7 @@ metadata:
{{- end }} {{- end }}
labels: labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 4 }} {{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 4 }}
{{- range $key, $value := .Values.repoServer.serviceAccount.labels }} {{- with .Values.repoServer.serviceAccount.labels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

@ -42,7 +42,7 @@ rules:
verbs: verbs:
- create - create
- list - list
{{- if eq (toString (index (coalesce .Values.server.config .Values.configs.cm) "exec.enabled")) "true" }} {{- if eq (toString (index .Values.configs.cm "exec.enabled")) "true" }}
- apiGroups: - apiGroups:
- "" - ""
resources: resources:

View file

@ -2967,7 +2967,7 @@ notifications:
extraVolumes: [] extraVolumes: []
# -- 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://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/templates/#defining-user-defined-context
context: {} context: {}
# region: east # region: east
# environmentName: staging # environmentName: staging
@ -2984,19 +2984,19 @@ notifications:
# -- Generic key:value pairs to be inserted into the secret # -- Generic key:value pairs to be inserted into the secret
## Can be used for templates, notification services etc. Some examples given below. ## Can be used for templates, notification services etc. Some examples given below.
## For more information: https://argocd-notifications.readthedocs.io/en/stable/services/overview/ ## For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/services/overview/
items: {} items: {}
# slack-token: # slack-token:
# # For more information: https://argocd-notifications.readthedocs.io/en/stable/services/slack/ # # For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/services/slack/
# grafana-apiKey: # grafana-apiKey:
# # For more information: https://argocd-notifications.readthedocs.io/en/stable/services/grafana/ # # For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/services/grafana/
# webhooks-github-token: # webhooks-github-token:
# email-username: # email-username:
# email-password: # email-password:
# For more information: https://argocd-notifications.readthedocs.io/en/stable/services/email/ # For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/services/email/
metrics: metrics:
# -- Enables prometheus metrics server # -- Enables prometheus metrics server
@ -3038,7 +3038,7 @@ notifications:
# -- Configures notification services such as slack, email or custom webhook # -- Configures notification services such as slack, email or custom webhook
# @default -- See [values.yaml] # @default -- See [values.yaml]
## For more information: https://argocd-notifications.readthedocs.io/en/stable/services/overview/ ## For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/services/overview/
notifiers: {} notifiers: {}
# service.slack: | # service.slack: |
# token: $slack-token # token: $slack-token
@ -3138,7 +3138,7 @@ notifications:
rules: [] rules: []
# -- Contains centrally managed global application subscriptions # -- Contains centrally managed global application subscriptions
## For more information: https://argocd-notifications.readthedocs.io/en/stable/subscriptions/ ## For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/subscriptions/
subscriptions: [] subscriptions: []
# # subscription for on-sync-status-unknown trigger notifications # # subscription for on-sync-status-unknown trigger notifications
# - recipients: # - recipients:
@ -3154,7 +3154,7 @@ notifications:
# - on-sync-status-unknown # - on-sync-status-unknown
# -- The notification template is used to generate the notification content # -- The notification template is used to generate the notification content
## For more information: https://argocd-notifications.readthedocs.io/en/stable/templates/ ## For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/templates/
templates: {} templates: {}
# template.app-deployed: | # template.app-deployed: |
# email: # email:
@ -3371,7 +3371,7 @@ notifications:
# }] # }]
# -- The trigger defines the condition when the notification should be sent # -- The trigger defines the condition when the notification should be sent
## For more information: https://argocd-notifications.readthedocs.io/en/stable/triggers/ ## For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/triggers/
triggers: {} triggers: {}
# trigger.on-deployed: | # trigger.on-deployed: |
# - description: Application is synced and healthy. Triggered once per commit. # - description: Application is synced and healthy. Triggered once per commit.
@ -3405,6 +3405,6 @@ notifications:
# - app-sync-succeeded # - app-sync-succeeded
# when: app.status.operationState.phase in ['Succeeded'] # when: app.status.operationState.phase in ['Succeeded']
# #
# For more information: https://argocd-notifications.readthedocs.io/en/stable/triggers/#default-triggers # For more information: https://argo-cd.readthedocs.io/en/stable/operator-manual/notifications/triggers/#default-triggers
# defaultTriggers: | # defaultTriggers: |
# - on-sync-status-unknown # - on-sync-status-unknown