Mount to correct server

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
Oliver Bähler 2021-04-22 10:00:05 +02:00
parent 8df16c69aa
commit 3df1a0e5a8
No known key found for this signature in database
GPG key ID: 7AE0B2618ECDC1B6
5 changed files with 15 additions and 14 deletions

View file

@ -167,6 +167,6 @@ Merge Argo Configuration with Preset Configuration
*/}} */}}
{{- define "argo-cd.config" -}} {{- define "argo-cd.config" -}}
{{- if .Values.server.configEnabled -}} {{- if .Values.server.configEnabled -}}
{{- toYaml (mergeOverwrite .Values.server.config (default dict (fromYaml (include "argo-cd.config.presets" $)))) }} {{- toYaml (mergeOverwrite (default dict (fromYaml (include "argo-cd.config.presets" $))) .Values.server.config) }}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View file

@ -2,7 +2,7 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ template "argo-cd.repoServer.fullname" . }}-styles-cm name: argocd-custom-styles
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 }}
data: data:

View file

@ -73,11 +73,6 @@ spec:
{{- end }} {{- end }}
- mountPath: /app/config/gpg/keys - mountPath: /app/config/gpg/keys
name: gpg-keyring name: gpg-keyring
{{- if .Values.configs.styles }}
- mountPath: /shared/app/custom
subPath: "custom.styles.css"
name: custom-styles
{{- end }}
{{- if .Values.configs.knownHosts }} {{- if .Values.configs.knownHosts }}
- mountPath: /app/config/ssh - mountPath: /app/config/ssh
name: ssh-known-hosts name: ssh-known-hosts
@ -136,11 +131,6 @@ spec:
{{- if .Values.repoServer.volumes }} {{- if .Values.repoServer.volumes }}
{{- toYaml .Values.repoServer.volumes | nindent 6}} {{- toYaml .Values.repoServer.volumes | nindent 6}}
{{- end }} {{- end }}
{{- if .Values.configs.styles }}
- configMap:
name: {{ template "argo-cd.repoServer.fullname" . }}-styles-cm
name: custom-styles
{{- end }}
- emptyDir: {} - emptyDir: {}
name: gpg-keyring name: gpg-keyring
{{- if .Values.configs.knownHosts }} {{- if .Values.configs.knownHosts }}

View file

@ -80,6 +80,11 @@ spec:
- mountPath: /app/config/tls - mountPath: /app/config/tls
name: tls-certs name: tls-certs
{{- end }} {{- end }}
{{- if .Values.configs.styles }}
- mountPath: "/shared/app/custom/custom.styles.css"
subPath: "custom.styles.css"
name: custom-styles
{{- end }}
ports: ports:
- name: {{ .Values.server.name }} - name: {{ .Values.server.name }}
containerPort: {{ .Values.server.containerPort }} containerPort: {{ .Values.server.containerPort }}
@ -139,6 +144,11 @@ spec:
{{- end }} {{- end }}
- emptyDir: {} - emptyDir: {}
name: static-files name: static-files
{{- if .Values.configs.styles }}
- configMap:
name: argocd-custom-styles
name: custom-styles
{{- end }}
{{- if .Values.configs.knownHosts }} {{- if .Values.configs.knownHosts }}
- configMap: - configMap:
name: argocd-ssh-known-hosts-cm name: argocd-ssh-known-hosts-cm

View file

@ -876,10 +876,11 @@ repoServer:
configs: configs:
## Custom CSS Styles ## Custom CSS Styles
## Reference: https://argo-cd.readthedocs.io/en/stable/operator-manual/custom-styles/ ## Reference: https://argo-cd.readthedocs.io/en/stable/operator-manual/custom-styles/
#styles: | # styles: |
# .nav-bar { # .nav-bar {
# background: linear-gradient(to bottom, #999, #777, #333, #222, #111); # background: linear-gradient(to bottom, #999, #777, #333, #222, #111);
# } # }
## External Cluster Credentials ## External Cluster Credentials
## reference: ## reference:
## - https://argoproj.github.io/argo-cd/operator-manual/declarative-setup/#clusters ## - https://argoproj.github.io/argo-cd/operator-manual/declarative-setup/#clusters
@ -1006,7 +1007,7 @@ configs:
# Argo expects the password in the secret to be bcrypt hashed. You can create this hash with # Argo expects the password in the secret to be bcrypt hashed. You can create this hash with
# `htpasswd -nbBC 10 "" $ARGO_PWD | tr -d ':\n' | sed 's/$2y/$2a/'` # `htpasswd -nbBC 10 "" $ARGO_PWD | tr -d ':\n' | sed 's/$2y/$2a/'`
# argocdServerAdminPassword: # argocdServerAdminPassword: ""
# Password modification time defaults to current time if not set # Password modification time defaults to current time if not set
# argocdServerAdminPasswordMtime: "2006-01-02T15:04:05Z" # argocdServerAdminPasswordMtime: "2006-01-02T15:04:05Z"