Merge branch 'master' into feat-namespaced-argo-events

This commit is contained in:
Marco Kilchhofer 2021-05-29 12:22:26 +02:00 committed by GitHub
commit ab731e4fe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 47 additions and 28 deletions

View file

@ -4,7 +4,7 @@
/charts/ @mkilchhofer /charts/ @mkilchhofer
# Argo Workflows # Argo Workflows
/charts/argo @stefansedich @paguos @vladlosev @yann-soubeyrand @oliverbaehler /charts/argo-workflows/ @stefansedich @paguos @vladlosev @yann-soubeyrand @oliverbaehler
# Argo CD # Argo CD
/charts/argo-cd @seanson @davidkarlsen @mr-sour @yann-soubeyrand @oliverbaehler /charts/argo-cd @seanson @davidkarlsen @mr-sour @yann-soubeyrand @oliverbaehler

View file

@ -1,8 +1,8 @@
apiVersion: v2 apiVersion: v2
appVersion: 2.0.1 appVersion: 2.0.3
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 3.6.1 version: 3.6.3
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
keywords: keywords:

View file

@ -23,5 +23,5 @@ spec:
issuerRef: issuerRef:
kind: {{ .Values.server.certificate.issuer.kind | quote }} kind: {{ .Values.server.certificate.issuer.kind | quote }}
name: {{ .Values.server.certificate.issuer.name | quote }} name: {{ .Values.server.certificate.issuer.name | quote }}
secretName: argocd-secret secretName: argocd-tls-certificate
{{- end }} {{- end }}

View file

@ -11,7 +11,7 @@ installCRDs: true
global: global:
image: image:
repository: quay.io/argoproj/argocd repository: quay.io/argoproj/argocd
tag: v2.0.1 tag: v2.0.3
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
securityContext: {} securityContext: {}
# runAsUser: 999 # runAsUser: 999
@ -561,7 +561,7 @@ server:
# servicePort: use-annotation # servicePort: use-annotation
tls: tls:
[] []
# - secretName: argocd-example-tls # - secretName: argocd-tls-certificate
# hosts: # hosts:
# - argocd.example.com # - argocd.example.com
https: false https: false
@ -590,7 +590,7 @@ server:
# servicePort: use-annotation # servicePort: use-annotation
tls: tls:
[] []
# - secretName: argocd-example-tls # - secretName: argocd-tls-certificate
# hosts: # hosts:
# - argocd.example.com # - argocd.example.com
https: false https: false

View file

@ -5,7 +5,11 @@ kind: ServiceAccount
metadata: metadata:
name: {{ .Values.serviceAccount }} name: {{ .Values.serviceAccount }}
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- with .Values.serviceAccountAnnotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.additionalSaNamespaces }} {{- if .Values.additionalSaNamespaces }}
{{ $annotations := .Values.serviceAccountAnnotations }}
{{ $sa := .Values.serviceAccount }} {{ $sa := .Values.serviceAccount }}
{{- range $namespace := .Values.additionalSaNamespaces }} {{- range $namespace := .Values.additionalSaNamespaces }}
--- ---
@ -14,5 +18,8 @@ kind: ServiceAccount
metadata: metadata:
name: {{ $sa }} name: {{ $sa }}
namespace: {{ $namespace }} namespace: {{ $namespace }}
{{- with $annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

@ -56,6 +56,7 @@ spec:
port: 8081 port: 8081
initialDelaySeconds: 3 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 3
resources: {{- toYaml .Values.eventbusController.resources | nindent 12 }}
{{- with .Values.eventbusController.priorityClassName }} {{- with .Values.eventbusController.priorityClassName }}
priorityClassName: {{ . | quote }} priorityClassName: {{ . | quote }}
{{- end }} {{- end }}

View file

@ -54,6 +54,7 @@ spec:
port: 8081 port: 8081
initialDelaySeconds: 3 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 3
resources: {{- toYaml .Values.eventsourceController.resources | nindent 12 }}
{{- with .Values.eventsourceController.priorityClassName }} {{- with .Values.eventsourceController.priorityClassName }}
priorityClassName: {{ . | quote }} priorityClassName: {{ . | quote }}
{{- end }} {{- end }}

View file

@ -54,6 +54,7 @@ spec:
port: 8081 port: 8081
initialDelaySeconds: 3 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 3
resources: {{- toYaml .Values.sensorController.resources | nindent 12 }}
{{- with .Values.sensorController.priorityClassName }} {{- with .Values.sensorController.priorityClassName }}
priorityClassName: {{ . | quote }} priorityClassName: {{ . | quote }}
{{- end }} {{- end }}

View file

@ -14,6 +14,9 @@ installCRD: true
# ServiceAccount to use for running controller. # ServiceAccount to use for running controller.
serviceAccount: argo-events-sa serviceAccount: argo-events-sa
# serviceAccountAnnotations can be used to enable GKE workload identity, or other use-cases
serviceAccountAnnotations: {}
# Create service accounts in additional namespaces specified # Create service accounts in additional namespaces specified
# The SA will always be created in the release namespaces # The SA will always be created in the release namespaces
additionalSaNamespaces: [] additionalSaNamespaces: []
@ -54,6 +57,7 @@ sensorController:
priorityClassName: "" priorityClassName: ""
tolerations: [] tolerations: []
affinity: {} affinity: {}
resources: {}
eventsourceController: eventsourceController:
name: eventsource-controller name: eventsource-controller
@ -67,6 +71,7 @@ eventsourceController:
priorityClassName: "" priorityClassName: ""
tolerations: [] tolerations: []
affinity: {} affinity: {}
resources: {}
eventbusController: eventbusController:
name: eventbus-controller name: eventbus-controller
@ -79,6 +84,7 @@ eventbusController:
priorityClassName: "" priorityClassName: ""
tolerations: [] tolerations: []
affinity: {} affinity: {}
resources: {}
natsStreamingImage: nats-streaming:0.17.0 natsStreamingImage: nats-streaming:0.17.0
natsMetricsExporterImage: synadia/prometheus-nats-exporter:0.6.2 natsMetricsExporterImage: synadia/prometheus-nats-exporter:0.6.2

View file

@ -2,7 +2,7 @@ apiVersion: v2
name: argo-workflows name: argo-workflows
description: A Helm chart for Argo Workflows description: A Helm chart for Argo Workflows
type: application type: application
version: 0.1.3 version: 0.1.5
appVersion: "v3.0.2" appVersion: "v3.0.2"
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm

View file

@ -1,6 +1,6 @@
1. Get Argo Server external IP/domain by running: 1. Get Argo Server external IP/domain by running:
kubectl --namespace {{ .Release.Namespace }} get services -o wide | grep {{ .Release.Name }}-{{ .Values.server.name }} kubectl --namespace {{ .Release.Namespace }} get services -o wide | grep {{ template "argo-workflows.server.fullname" . }}
2. Submit the hello-world workflow by running: 2. Submit the hello-world workflow by running:

View file

@ -65,7 +65,7 @@ Create the name of the server service account to use
*/}} */}}
{{- define "argo-workflows.serverServiceAccountName" -}} {{- define "argo-workflows.serverServiceAccountName" -}}
{{- if .Values.server.serviceAccount.create -}} {{- if .Values.server.serviceAccount.create -}}
{{ default (include "argo-workflows.fullname" .) .Values.server.serviceAccount.name }} {{ default (include "argo-workflows.server.fullname" .) .Values.server.serviceAccount.name }}
{{- else -}} {{- else -}}
{{ default "default" .Values.server.serviceAccount.name }} {{ default "default" .Values.server.serviceAccount.name }}
{{- end -}} {{- end -}}
@ -76,7 +76,7 @@ Create the name of the controller service account to use
*/}} */}}
{{- define "argo-workflows.controllerServiceAccountName" -}} {{- define "argo-workflows.controllerServiceAccountName" -}}
{{- if .Values.controller.serviceAccount.create -}} {{- if .Values.controller.serviceAccount.create -}}
{{ default (include "argo-workflows.fullname" .) .Values.controller.serviceAccount.name }} {{ default (include "argo-workflows.controller.fullname" .) .Values.controller.serviceAccount.name }}
{{- else -}} {{- else -}}
{{ default "default" .Values.controller.serviceAccount.name }} {{ default "default" .Values.controller.serviceAccount.name }}
{{- end -}} {{- end -}}

View file

@ -2,10 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
annotations: name: {{ template "argo-workflows.fullname" . }}-view
helm.sh/hook: pre-install
helm.sh/hook-delete-policy: before-hook-creation
name: argo-workflows-aggregate-to-view
labels: labels:
rbac.authorization.k8s.io/aggregate-to-view: "true" rbac.authorization.k8s.io/aggregate-to-view: "true"
rules: rules:
@ -30,10 +27,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
annotations: name: {{ template "argo-workflows.fullname" . }}-edit
helm.sh/hook: pre-install
helm.sh/hook-delete-policy: before-hook-creation
name: argo-workflows-aggregate-to-edit
labels: labels:
rbac.authorization.k8s.io/aggregate-to-edit: "true" rbac.authorization.k8s.io/aggregate-to-edit: "true"
rules: rules:
@ -63,10 +57,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
annotations: name: {{ template "argo-workflows.fullname" . }}-admin
helm.sh/hook: pre-install
helm.sh/hook-delete-policy: before-hook-creation
name: argo-workflows-aggregate-to-admin
labels: labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true" rbac.authorization.k8s.io/aggregate-to-admin: "true"
rules: rules:

View file

@ -135,7 +135,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: {{ .Release.Name }}-{{ .Values.controller.name }}-cluster-template name: {{ template "argo-workflows.controller.fullname" . }}-cluster-template
rules: rules:
- apiGroups: - apiGroups:
- argoproj.io - argoproj.io

View file

@ -21,7 +21,7 @@ spec:
{{- end }} {{- end }}
{{- with .Values.server.podAnnotations }} {{- with .Values.server.podAnnotations }}
annotations: annotations:
{{- toYaml .Values.server.podAnnotations | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
spec: spec:
serviceAccountName: {{ template "argo-workflows.serverServiceAccountName" . }} serviceAccountName: {{ template "argo-workflows.serverServiceAccountName" . }}

View file

@ -93,7 +93,7 @@ controller:
additionalLabels: {} additionalLabels: {}
serviceAccount: serviceAccount:
create: true create: true
name: argo name: ""
# Annotations applied to created service account # Annotations applied to created service account
annotations: {} annotations: {}
name: workflow-controller name: workflow-controller
@ -190,7 +190,7 @@ server:
# servicePortName: http # servicePortName: http
serviceAccount: serviceAccount:
create: true create: true
name: argo-server name: ""
annotations: {} annotations: {}
# Annotations to be applied to the UI Service # Annotations to be applied to the UI Service
serviceAnnotations: {} serviceAnnotations: {}

View file

@ -3,7 +3,7 @@ appVersion: 1.1.1
description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD. description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD.
name: argocd-notifications name: argocd-notifications
type: application type: application
version: 1.3.1 version: 1.3.2
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
keywords: keywords:

View file

@ -5,4 +5,8 @@ metadata:
name: {{ include "argocd-notifications.bots.slack.serviceAccountName" . }} name: {{ include "argocd-notifications.bots.slack.serviceAccountName" . }}
labels: labels:
{{- include "argocd-notifications.bots.slack.labels" . | nindent 4 }} {{- include "argocd-notifications.bots.slack.labels" . | nindent 4 }}
{{- with .Values.bots.slack.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{ end }}
{{ end }} {{ end }}

View file

@ -5,4 +5,8 @@ metadata:
name: {{ include "argocd-notifications.serviceAccountName" . }} name: {{ include "argocd-notifications.serviceAccountName" . }}
labels: labels:
{{- include "argocd-notifications.labels" . | nindent 4 }} {{- include "argocd-notifications.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }} {{- end }}

View file

@ -93,6 +93,8 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: argocd-notifications-controller name: argocd-notifications-controller
annotations: {}
cm: cm:
# Whether helm chart creates controller config map # Whether helm chart creates controller config map
create: true create: true
@ -371,6 +373,8 @@ bots:
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: argocd-notifications-bot name: argocd-notifications-bot
annotations: {}
resources: {} resources: {}
# limits: # limits:
# cpu: 100m # cpu: 100m