* [charts/argo-cd] Update to 1.3, some chart cleanup * Bumps the version of ArgoCD to 1.3 and the chart version to 1.2 due to a CRD change. Restored conditional CRDs to correct #27. Additionally, some value defaults were added so Helm strict linting could pass. * This adds some examples to the values.yaml on how to use the new Helm repo chart types. Add helmignore to help with development.
76 lines
2.7 KiB
YAML
76 lines
2.7 KiB
YAML
{{- if .Values.dex.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "argo-cd.dex.fullname" . }}
|
|
labels:
|
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.dex.name }}
|
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
app.kubernetes.io/part-of: argocd
|
|
app.kubernetes.io/component: {{ .Values.dex.name }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.dex.name }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.dex.name }}
|
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
app.kubernetes.io/part-of: argocd
|
|
app.kubernetes.io/component: {{ .Values.dex.name }}
|
|
spec:
|
|
initContainers:
|
|
- name: copyutil
|
|
image: {{ default .Values.global.image.repository .Values.dex.initImage.repository }}:{{ default .Values.global.image.tag .Values.dex.initImage.tag }}
|
|
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy .Values.dex.initImage.imagePullPolicy }}
|
|
command:
|
|
- cp
|
|
- /usr/local/bin/argocd-util
|
|
- /shared
|
|
volumeMounts:
|
|
- mountPath: /shared
|
|
name: static-files
|
|
containers:
|
|
- name: {{ .Values.dex.name }}
|
|
image: {{ .Values.dex.image.repository }}:{{ .Values.dex.image.tag }}
|
|
imagePullPolicy: {{ .Values.dex.image.imagePullPolicy }}
|
|
command:
|
|
- /shared/argocd-util
|
|
- rundex
|
|
ports:
|
|
- name: http
|
|
containerPort: {{ .Values.dex.containerPortHttp }}
|
|
protocol: TCP
|
|
- name: grpc
|
|
containerPort: {{ .Values.dex.containerPortGrpc }}
|
|
protocol: TCP
|
|
{{- if .Values.dex.volumeMounts }}
|
|
volumeMounts:
|
|
{{- toYaml .Values.dex.volumeMounts | nindent 10 }}
|
|
{{- end }}
|
|
resources:
|
|
{{- toYaml .Values.dex.resources | nindent 10 }}
|
|
{{- if .Values.dex.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml .Values.dex.nodeSelector | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.dex.tolerations }}
|
|
tolerations:
|
|
{{- toYaml .Values.dex.tolerations | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.dex.affinity }}
|
|
affinity:
|
|
{{- toYaml .Values.dex.affinity | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ template "argo-cd.dexServiceAccountName" . }}
|
|
{{- if .Values.dex.volumes }}
|
|
volumes:
|
|
{{- toYaml .Values.dex.volumes | nindent 8}}
|
|
{{- end }}
|
|
{{- end }}
|