feat(argo-cd): add extraContainers to pods besides server (#927)

* feat(argo-cd): add extraContainers to pods besides server

Signed-off-by: mikutas <23391543+mikutas@users.noreply.github.com>

* Apply suggestions from code review

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:
Takumi Sue 2021-09-17 02:59:20 +09:00 committed by GitHub
parent d96cb02a43
commit f10234f340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 38 additions and 11 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 2.1.2 appVersion: 2.1.2
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.17.7 version: 3.18.0
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argoproj.github.io/argo-cd/assets/logo.png icon: https://argoproj.github.io/argo-cd/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: |
- "[Fixed]: global podLabels/podAnnotations object unexpected merge" - "[Added]: extraContainers values were added to pods besides server"

View file

@ -188,6 +188,7 @@ NAME: my-release
| controller.clusterAdminAccess.enabled | Enable RBAC for local cluster deployments. | `true` | | controller.clusterAdminAccess.enabled | Enable RBAC for local cluster deployments. | `true` |
| controller.containerPort | Controller listening port. | `8082` | | controller.containerPort | Controller listening port. | `8082` |
| controller.extraArgs | Additional arguments for the controller. A list of flags | `[]` | | controller.extraArgs | Additional arguments for the controller. A list of flags | `[]` |
| controller.extraContainers | Additional containers for the controller. A list of containers. | `[]` |
| controller.enableStatefulSet | Enable deploying the controller as a StatefulSet instead of a Deployment. Used for HA installations. | `false` | | controller.enableStatefulSet | Enable deploying the controller as a StatefulSet instead of a Deployment. Used for HA installations. | `false` |
| controller.env | Environment variables for the controller. | `[]` | | controller.env | Environment variables for the controller. | `[]` |
| controller.envFrom | `envFrom` to pass to the controller. | `[]` (See [values.yaml](values.yaml)) | | controller.envFrom | `envFrom` to pass to the controller. | `[]` (See [values.yaml](values.yaml)) |
@ -243,6 +244,7 @@ NAME: my-release
| repoServer.autoscaling.targetMemoryUtilizationPercentage | Average memory utilization percentage for the repo server [HPA](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) | `50` | | repoServer.autoscaling.targetMemoryUtilizationPercentage | Average memory utilization percentage for the repo server [HPA](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) | `50` |
| repoServer.containerPort | Repo server port | `8081` | | repoServer.containerPort | Repo server port | `8081` |
| repoServer.extraArgs | Additional arguments for the repo server. A list of flags. | `[]` | | repoServer.extraArgs | Additional arguments for the repo server. A list of flags. | `[]` |
| repoServer.extraContainers | Additional containers for the repo server. A list of containers. | `[]` |
| repoServer.env | Environment variables for the repo server. | `[]` | | repoServer.env | Environment variables for the repo server. | `[]` |
| repoServer.envFrom | `envFrom` to pass to the repo server. | `[]` (See [values.yaml](values.yaml)) | | repoServer.envFrom | `envFrom` to pass to the repo server. | `[]` (See [values.yaml](values.yaml)) |
| repoServer.image.repository | Repository to use for the repo server | `global.image.repository` | | repoServer.image.repository | Repository to use for the repo server | `global.image.repository` |
@ -402,6 +404,7 @@ NAME: my-release
| dex.metrics.serviceMonitor.relabelings | Prometheus [RelabelConfigs](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config) to apply to samples before scraping | `[]` | | dex.metrics.serviceMonitor.relabelings | Prometheus [RelabelConfigs](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config) to apply to samples before scraping | `[]` |
| dex.metrics.serviceMonitor.metricRelabelings | Prometheus [MetricRelabelConfigs](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs) to apply to samples before ingestion | `[]` | | dex.metrics.serviceMonitor.metricRelabelings | Prometheus [MetricRelabelConfigs](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs) to apply to samples before ingestion | `[]` |
| dex.name | Dex name | `"dex-server"` | | dex.name | Dex name | `"dex-server"` |
| dex.extraContainers | Additional containers for the Dex server. A list of containers. | `[]` |
| dex.env | Environment variables for the Dex server. | `[]` | | dex.env | Environment variables for the Dex server. | `[]` |
| dex.envFrom | `envFrom` to pass to the Dex server. | `[]` (See [values.yaml](values.yaml)) | | dex.envFrom | `envFrom` to pass to the Dex server. | `[]` (See [values.yaml](values.yaml)) |
| dex.nodeSelector | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) | `{}` | | dex.nodeSelector | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) | `{}` |
@ -449,6 +452,7 @@ through `xxx.extraArgs`
| redis.image.repository | Redis repository | `"redis"` | | redis.image.repository | Redis repository | `"redis"` |
| redis.image.tag | Redis tag | `"6.2.1-alpine"` | | redis.image.tag | Redis tag | `"6.2.1-alpine"` |
| redis.extraArgs | Additional arguments for the `redis-server`. A list of flags. | `[]` | | redis.extraArgs | Additional arguments for the `redis-server`. A list of flags. | `[]` |
| redis.extraContainers | Additional containers for the redis. A list of containers. | `[]` |
| redis.name | Redis name | `"redis"` | | redis.name | Redis name | `"redis"` |
| redis.env | Environment variables for the Redis server. | `[]` | | redis.env | Environment variables for the Redis server. | `[]` |
| redis.envFrom | `envFrom` to pass to the Redis server. | `[]` (See [values.yaml](values.yaml)) | | redis.envFrom | `envFrom` to pass to the Redis server. | `[]` (See [values.yaml](values.yaml)) |

View file

@ -105,7 +105,10 @@ spec:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
resources: resources:
{{- toYaml .Values.controller.resources | nindent 10 }} {{- toYaml .Values.controller.resources | nindent 10 }}
{{- with .Values.controller.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.controller.nodeSelector }} {{- if .Values.controller.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml .Values.controller.nodeSelector | nindent 8 }} {{- toYaml .Values.controller.nodeSelector | nindent 8 }}

View file

@ -113,7 +113,10 @@ spec:
successThreshold: {{ .Values.repoServer.readinessProbe.successThreshold }} successThreshold: {{ .Values.repoServer.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.repoServer.readinessProbe.failureThreshold }} failureThreshold: {{ .Values.repoServer.readinessProbe.failureThreshold }}
resources: resources:
{{- toYaml .Values.repoServer.resources | nindent 10 }} {{- toYaml .Values.repoServer.resources | nindent 10 }}
{{- with .Values.controller.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.repoServer.nodeSelector }} {{- if .Values.repoServer.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml .Values.repoServer.nodeSelector | nindent 8 }} {{- toYaml .Values.repoServer.nodeSelector | nindent 8 }}

View file

@ -120,13 +120,13 @@ spec:
successThreshold: {{ .Values.server.readinessProbe.successThreshold }} successThreshold: {{ .Values.server.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.server.readinessProbe.failureThreshold }} failureThreshold: {{ .Values.server.readinessProbe.failureThreshold }}
resources: resources:
{{- toYaml .Values.server.resources | nindent 10 }} {{- toYaml .Values.server.resources | nindent 10 }}
{{- if .Values.server.lifecycle }} {{- if .Values.server.lifecycle }}
lifecycle: lifecycle:
{{- toYaml .Values.server.lifecycle | nindent 10 }} {{- toYaml .Values.server.lifecycle | nindent 10 }}
{{- end }} {{- end }}
{{- if .Values.server.extraContainers }} {{- with .Values.server.extraContainers }}
{{- toYaml .Values.server.extraContainers | nindent 6 }} {{- toYaml . | nindent 6 }}
{{- end }} {{- end }}
{{- if .Values.server.nodeSelector }} {{- if .Values.server.nodeSelector }}
nodeSelector: nodeSelector:

View file

@ -99,7 +99,10 @@ spec:
{{- toYaml .Values.dex.volumeMounts | nindent 8 }} {{- toYaml .Values.dex.volumeMounts | nindent 8 }}
{{- end }} {{- end }}
resources: resources:
{{- toYaml .Values.dex.resources | nindent 10 }} {{- toYaml .Values.dex.resources | nindent 10 }}
{{- with .Values.dex.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.dex.nodeSelector }} {{- if .Values.dex.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml .Values.dex.nodeSelector | nindent 8 }} {{- toYaml .Values.dex.nodeSelector | nindent 8 }}

View file

@ -64,6 +64,9 @@ spec:
{{- end }} {{- end }}
resources: resources:
{{- toYaml .Values.redis.resources | nindent 10 }} {{- toYaml .Values.redis.resources | nindent 10 }}
{{- with .Values.redis.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.redis.nodeSelector }} {{- if .Values.redis.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml .Values.redis.nodeSelector | nindent 8 }} {{- toYaml .Values.redis.nodeSelector | nindent 8 }}

View file

@ -220,6 +220,8 @@ controller:
enabled: false enabled: false
rules: [] rules: []
## Additional containers to be added to the controller pod.
extraContainers: []
## Dex ## Dex
dex: dex:
@ -339,6 +341,9 @@ dex:
# cpu: 10m # cpu: 10m
# memory: 32Mi # memory: 32Mi
## Additional containers to be added to the dex pod.
extraContainers: []
## Redis ## Redis
redis: redis:
enabled: true enabled: true
@ -419,6 +424,9 @@ redis:
volumeMounts: [] volumeMounts: []
volumes: [] volumes: []
## Additional containers to be added to the redis pod.
extraContainers: []
# This key configures Redis-HA subchart and when enabled (redis-ha.enabled=true) # This key configures Redis-HA subchart and when enabled (redis-ha.enabled=true)
# the custom redis deployment is omitted # the custom redis deployment is omitted
redis-ha: redis-ha:
@ -992,6 +1000,9 @@ repoServer:
## Automount API credentials for the Service Account ## Automount API credentials for the Service Account
automountServiceAccountToken: true automountServiceAccountToken: true
## Additional containers to be added to the repo server pod.
extraContainers: []
## Repo server rbac rules ## Repo server rbac rules
# rbac: # rbac:
# - apiGroups: # - apiGroups: