2019-11-05 00:17:25 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: {{ template "argo-cd.repoServer.fullname" . }}
|
|
|
|
labels:
|
2021-03-22 20:15:37 +00:00
|
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 4 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2021-03-22 20:15:37 +00:00
|
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.repoServer.name) | nindent 6 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
revisionHistoryLimit: 5
|
2020-02-17 00:14:39 +00:00
|
|
|
{{- if (ne .Values.repoServer.autoscaling.enabled true) }}
|
2020-02-05 20:32:17 +00:00
|
|
|
replicas: {{ .Values.repoServer.replicas }}
|
2020-02-17 00:14:39 +00:00
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2022-09-21 11:48:37 +00:00
|
|
|
checksum/cmd-params: {{ include (print $.Template.BasePath "/argocd-configs/argocd-cmd-params-cm.yaml") . | sha256sum }}
|
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.repoServer.podAnnotations) }}
|
2022-01-31 19:26:04 +00:00
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
labels:
|
2021-03-22 20:15:37 +00:00
|
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 8 }}
|
2021-09-15 10:30:54 +00:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.global.podLabels) .Values.repoServer.podLabels) }}
|
2021-08-24 12:48:03 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
{{- end }}
|
|
|
|
spec:
|
2022-06-02 12:26:08 +00:00
|
|
|
{{- with .Values.repoServer.imagePullSecrets | default .Values.global.imagePullSecrets }}
|
2020-03-06 10:26:18 +00:00
|
|
|
imagePullSecrets:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2022-09-04 08:48:13 +00:00
|
|
|
automountServiceAccountToken: {{ .Values.repoServer.serviceAccount.automountServiceAccountToken }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.global.securityContext }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
2019-12-16 02:55:09 +00:00
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
containers:
|
|
|
|
- name: {{ .Values.repoServer.name }}
|
2021-10-21 20:55:34 +00:00
|
|
|
image: {{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.repoServer.image.tag }}
|
2019-11-05 00:17:25 +00:00
|
|
|
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy .Values.repoServer.image.imagePullPolicy }}
|
2022-03-06 12:07:49 +00:00
|
|
|
command:
|
|
|
|
- entrypoint.sh
|
2021-08-23 12:13:41 +00:00
|
|
|
args:
|
2020-04-28 15:05:11 +00:00
|
|
|
- argocd-repo-server
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.repoServer.logFormat }}
|
2020-10-02 03:12:35 +00:00
|
|
|
- --logformat
|
2022-09-21 11:48:37 +00:00
|
|
|
- {{ . | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.repoServer.logLevel }}
|
2019-11-05 00:17:25 +00:00
|
|
|
- --loglevel
|
2022-09-21 11:48:37 +00:00
|
|
|
- {{ . | quote }}
|
|
|
|
{{- end }}
|
feat: extraArgs allows same flag multiple times (#265)
* feat: extraArgs allows same flag multiple times
Superseeds #244 (I messed up the rebase :facepalm:)
Relates to #232
This change allows ArgoCD chart to render multiple times the same flag with different values
Mainly, if not only, used to specify multiple Redis Sentinel addresses
https://github.com/argoproj/argo-cd/blob/5ec5aeb002cfc9167dba0fb77e7a08a2dc0932cf/manifests/ha/base/overlays/argocd-application-controller-deployment.yaml#L16
https://github.com/argoproj/argo-cd/blob/aeb48b0a69be764f381511f7749d1e094fc79225/util/cache/cache.go#L33
```
--sentinel
```
using this syntax
```
controller:
extraArgs:
- --sentinel
- argocd-redis-ha-announce-0
- --sentinel
- argocd-redis-ha-announce-1
- --sentinel
- argocd-redis-ha-announce-2
```
instead of
```
controller:
extraArgs:
sentinel=argocd-redis-ha-announce-0:
sentinel=argocd-redis-ha-announce-1:
sentinel=argocd-redis-ha-announce-2:
```
Basically same syntax as the flags documentation
```
docker run --rm argoproj/argocd:v1.4.2 argocd-server help
...
Flags:
--app-state-cache-expiration duration Cache expiration for app state (default 1h0m0s)
--as string Username to impersonate for the operation
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--basehref string Value for base href in index.html. Used if Argo CD is running behind reverse proxy under subpath different from / (default "/")
--certificate-authority string Path to a cert file for the certificate authority
--client-certificate string Path to a client certificate file for TLS
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--connection-status-cache-expiration duration Cache expiration for cluster/repo connection status (default 1h0m0s)
--context string The name of the kubeconfig context to use
--default-cache-expiration duration Cache expiration default (default 24h0m0s)
--dex-server string Dex server address (default "http://argocd-dex-server:5556")
--disable-auth Disable client authentication
--gloglevel int Set the glog logging level
-h, --help help for argocd-server
--insecure Run server without TLS
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kubeconfig string Path to a kube config. Only required if out-of-cluster
--loglevel string Set the logging level. One of: debug|info|warn|error (default "info")
--metrics-port int Start metrics on given port (default 8083)
-n, --namespace string If present, the namespace scope for this CLI request
--oidc-cache-expiration duration Cache expiration for OIDC state (default 3m0s)
--password string Password for basic authentication to the API server
--port int Listen on given port (default 8080)
--redis string Redis server hostname and port (e.g. argocd-redis:6379).
--redisdb int Redis database.
--repo-server string Repo server address (default "argocd-repo-server:8081")
--repo-server-timeout-seconds int Repo server RPC call timeout seconds. (default 60)
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
--sentinel stringArray Redis sentinel hostname and port (e.g. argocd-redis-ha-announce-0:6379).
--sentinelmaster string Redis sentinel master group name. (default "master")
--server string The address and port of the Kubernetes API server
--staticassets string Static assets directory path
--tlsmaxversion string The maximum SSL/TLS version that is acceptable (one of: 1.0|1.1|1.2)
--tlsminversion string The minimum SSL/TLS version that is acceptable (one of: 1.0|1.1|1.2)
--token string Bearer token for authentication to the API server
--user string The name of the kubeconfig user to use
--username string Username for basic authentication to the API server
--x-frame-options value Set X-Frame-Options header in HTTP responses to value. To disable, set to "". (default "sameorigin")
```
Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com>
* fix: bump up chart version
2020-03-19 18:55:16 +00:00
|
|
|
{{- with .Values.repoServer.extraArgs }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.repoServer.containerSecurityContext }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml . | nindent 10 }}
|
2020-02-17 00:14:39 +00:00
|
|
|
{{- end }}
|
2019-12-05 23:50:47 +00:00
|
|
|
env:
|
2022-03-31 12:18:54 +00:00
|
|
|
{{- with .Values.repoServer.env }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 10 }}
|
2022-03-31 12:18:54 +00:00
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- if .Values.openshift.enabled }}
|
|
|
|
- name: USER_NAME
|
|
|
|
value: argocd
|
|
|
|
{{- end }}
|
|
|
|
- name: ARGOCD_RECONCILIATION_TIMEOUT
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cm
|
|
|
|
key: timeout.reconciliation
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_LOGFORMAT
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.log.format
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_LOGLEVEL
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.log.level
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_PARALLELISM_LIMIT
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.parallelism.limit
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_DISABLE_TLS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.disable.tls
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_TLS_MIN_VERSION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.tls.minversion
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_TLS_MAX_VERSION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.tls.maxversion
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_TLS_CIPHERS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.tls.ciphers
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_CACHE_EXPIRATION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.repo.cache.expiration
|
|
|
|
optional: true
|
|
|
|
- name: REDIS_SERVER
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: redis.server
|
|
|
|
optional: true
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: REDIS_COMPRESSION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: redis.compression
|
|
|
|
optional: true
|
2022-09-21 11:48:37 +00:00
|
|
|
- name: REDISDB
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: redis.db
|
|
|
|
optional: true
|
|
|
|
- name: REDIS_USERNAME
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: {{ default (include "argo-cd.redis.fullname" .) .Values.externalRedis.existingSecret }}
|
|
|
|
key: redis-username
|
|
|
|
optional: true
|
|
|
|
- name: REDIS_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: {{ default (include "argo-cd.redis.fullname" .) .Values.externalRedis.existingSecret }}
|
|
|
|
key: redis-password
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_DEFAULT_CACHE_EXPIRATION
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.default.cache.expiration
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_OTLP_ADDRESS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: otlp.address
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_MAX_COMBINED_DIRECTORY_MANIFESTS_SIZE
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.max.combined.directory.manifests.size
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_PLUGIN_TAR_EXCLUSIONS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
key: reposerver.plugin.tar.exclusions
|
|
|
|
optional: true
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: ARGOCD_REPO_SERVER_ALLOW_OUT_OF_BOUNDS_SYMLINKS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: reposerver.allow.oob.symlinks
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_STREAMED_MANIFEST_MAX_TAR_SIZE
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: reposerver.streamed.manifest.max.tar.size
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_REPO_SERVER_STREAMED_MANIFEST_MAX_EXTRACTED_SIZE
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: reposerver.streamed.manifest.max.extracted.size
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
optional: true
|
|
|
|
- name: ARGOCD_GIT_MODULES_ENABLED
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
key: reposerver.enable.git.submodule
|
|
|
|
name: argocd-cmd-params-cm
|
|
|
|
optional: true
|
2022-09-21 11:48:37 +00:00
|
|
|
- name: HELM_CACHE_HOME
|
|
|
|
value: /helm-working-dir
|
|
|
|
- name: HELM_CONFIG_HOME
|
|
|
|
value: /helm-working-dir
|
|
|
|
- name: HELM_DATA_HOME
|
|
|
|
value: /helm-working-dir
|
2021-05-24 19:20:33 +00:00
|
|
|
{{- with .Values.repoServer.envFrom }}
|
2022-09-21 11:48:37 +00:00
|
|
|
envFrom:
|
|
|
|
{{- toYaml . | nindent 10 }}
|
2021-05-21 16:43:24 +00:00
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
volumeMounts:
|
|
|
|
{{- if .Values.repoServer.volumeMounts }}
|
2021-07-05 09:41:55 +00:00
|
|
|
{{- toYaml .Values.repoServer.volumeMounts | nindent 8 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
{{- end }}
|
|
|
|
- mountPath: /app/config/ssh
|
|
|
|
name: ssh-known-hosts
|
|
|
|
- mountPath: /app/config/tls
|
|
|
|
name: tls-certs
|
2022-10-25 21:22:22 +00:00
|
|
|
- mountPath: /app/config/gpg/source
|
|
|
|
name: gpg-keys
|
|
|
|
- mountPath: /app/config/gpg/keys
|
|
|
|
name: gpg-keyring
|
2021-04-24 10:50:25 +00:00
|
|
|
- mountPath: /app/config/reposerver/tls
|
|
|
|
name: argocd-repo-server-tls
|
2022-01-27 10:15:05 +00:00
|
|
|
- mountPath: /helm-working-dir
|
|
|
|
name: helm-working-dir
|
2021-12-15 10:15:02 +00:00
|
|
|
- mountPath: /home/argocd/cmp-server/plugins
|
|
|
|
name: plugins
|
2022-10-25 21:22:22 +00:00
|
|
|
- mountPath: /tmp
|
|
|
|
name: tmp
|
2019-11-05 00:17:25 +00:00
|
|
|
ports:
|
|
|
|
- name: repo-server
|
|
|
|
containerPort: {{ .Values.repoServer.containerPort }}
|
|
|
|
protocol: TCP
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 8084
|
|
|
|
protocol: TCP
|
|
|
|
livenessProbe:
|
2022-10-25 21:22:22 +00:00
|
|
|
httpGet:
|
|
|
|
path: /healthz?full=true
|
|
|
|
port: metrics
|
2019-11-05 00:17:25 +00:00
|
|
|
initialDelaySeconds: {{ .Values.repoServer.livenessProbe.initialDelaySeconds }}
|
|
|
|
periodSeconds: {{ .Values.repoServer.livenessProbe.periodSeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.repoServer.livenessProbe.timeoutSeconds }}
|
|
|
|
successThreshold: {{ .Values.repoServer.livenessProbe.successThreshold }}
|
|
|
|
failureThreshold: {{ .Values.repoServer.livenessProbe.failureThreshold }}
|
|
|
|
readinessProbe:
|
2022-10-25 21:22:22 +00:00
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: metrics
|
2019-11-05 00:17:25 +00:00
|
|
|
initialDelaySeconds: {{ .Values.repoServer.readinessProbe.initialDelaySeconds }}
|
|
|
|
periodSeconds: {{ .Values.repoServer.readinessProbe.periodSeconds }}
|
|
|
|
timeoutSeconds: {{ .Values.repoServer.readinessProbe.timeoutSeconds }}
|
|
|
|
successThreshold: {{ .Values.repoServer.readinessProbe.successThreshold }}
|
|
|
|
failureThreshold: {{ .Values.repoServer.readinessProbe.failureThreshold }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.repoServer.resources }}
|
2019-11-05 00:17:25 +00:00
|
|
|
resources:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
2021-09-29 09:07:01 +00:00
|
|
|
{{- with .Values.repoServer.extraContainers }}
|
2021-09-16 17:59:20 +00:00
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.repoServer.nodeSelector }}
|
2019-11-05 00:17:25 +00:00
|
|
|
nodeSelector:
|
2022-09-22 08:52:41 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.repoServer.tolerations }}
|
2019-11-05 00:17:25 +00:00
|
|
|
tolerations:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.repoServer.affinity }}
|
2019-11-05 00:17:25 +00:00
|
|
|
affinity:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.repoServer.topologySpreadConstraints }}
|
2021-09-17 13:57:26 +00:00
|
|
|
topologySpreadConstraints:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- range $constraint := . }}
|
2021-09-17 13:57:26 +00:00
|
|
|
- {{ toYaml $constraint | nindent 8 | trim }}
|
|
|
|
{{- if not $constraint.labelSelector }}
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
{{- include "argo-cd.selectorLabels" (dict "context" $ "name" $.Values.repoServer.name) | nindent 12 }}
|
|
|
|
{{- end }}
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- end }}
|
2021-09-17 13:57:26 +00:00
|
|
|
{{- end }}
|
2019-11-19 23:27:12 +00:00
|
|
|
serviceAccountName: {{ template "argo-cd.repoServerServiceAccountName" . }}
|
2021-09-27 10:04:14 +00:00
|
|
|
{{- with .Values.global.hostAliases }}
|
2020-03-27 13:49:47 +00:00
|
|
|
hostAliases:
|
2021-09-27 10:04:14 +00:00
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
2019-11-05 00:17:25 +00:00
|
|
|
volumes:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.repoServer.volumes }}
|
|
|
|
{{- toYaml . | nindent 6 }}
|
2019-11-05 00:17:25 +00:00
|
|
|
{{- end }}
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: helm-working-dir
|
|
|
|
emptyDir: {}
|
|
|
|
- name: plugins
|
|
|
|
emptyDir: {}
|
|
|
|
- name: var-files
|
|
|
|
emptyDir: {}
|
|
|
|
- name: tmp
|
|
|
|
emptyDir: {}
|
|
|
|
- name: ssh-known-hosts
|
2021-07-05 09:41:55 +00:00
|
|
|
configMap:
|
2019-11-05 00:17:25 +00:00
|
|
|
name: argocd-ssh-known-hosts-cm
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: tls-certs
|
|
|
|
configMap:
|
2019-11-05 00:17:25 +00:00
|
|
|
name: argocd-tls-certs-cm
|
2022-10-25 21:22:22 +00:00
|
|
|
- name: gpg-keys
|
|
|
|
configMap:
|
|
|
|
name: argocd-gpg-keys-cm
|
|
|
|
- name: gpg-keyring
|
2022-01-27 10:15:05 +00:00
|
|
|
emptyDir: {}
|
2021-04-24 10:50:25 +00:00
|
|
|
- name: argocd-repo-server-tls
|
|
|
|
secret:
|
2022-10-25 21:22:22 +00:00
|
|
|
secretName: argocd-repo-server-tls
|
|
|
|
optional: true
|
2021-04-24 10:50:25 +00:00
|
|
|
items:
|
|
|
|
- key: tls.crt
|
|
|
|
path: tls.crt
|
|
|
|
- key: tls.key
|
|
|
|
path: tls.key
|
|
|
|
- key: ca.crt
|
|
|
|
path: ca.crt
|
2019-12-09 00:22:51 +00:00
|
|
|
initContainers:
|
2021-12-17 18:39:07 +00:00
|
|
|
- command:
|
|
|
|
- cp
|
|
|
|
- -n
|
|
|
|
- /usr/local/bin/argocd
|
|
|
|
- /var/run/argocd/argocd-cmp-server
|
|
|
|
image: {{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.repoServer.image.tag }}
|
2022-04-19 11:01:45 +00:00
|
|
|
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy .Values.repoServer.image.imagePullPolicy }}
|
2021-12-17 18:39:07 +00:00
|
|
|
name: copyutil
|
2022-10-11 14:11:15 +00:00
|
|
|
{{- with .Values.repoServer.resources }}
|
2022-01-19 19:25:58 +00:00
|
|
|
resources:
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.repoServer.containerSecurityContext }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml . | nindent 10 }}
|
2022-02-26 20:06:59 +00:00
|
|
|
{{- end }}
|
2021-12-17 18:39:07 +00:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/run/argocd
|
|
|
|
name: var-files
|
2022-09-21 11:48:37 +00:00
|
|
|
{{- with .Values.repoServer.initContainers }}
|
|
|
|
{{- toYaml . | nindent 6 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.repoServer.priorityClassName }}
|
|
|
|
priorityClassName: {{ . }}
|
2019-12-09 00:22:51 +00:00
|
|
|
{{- end }}
|