fix(argo-applicationset): Allow to select with volumes to mount
Signed-off-by: Matteo Ruina <matteo.ruina@gmail.com>
This commit is contained in:
parent
6081842867
commit
b265952521
3 changed files with 25 additions and 0 deletions
|
@ -46,6 +46,10 @@ Users of Helm v3 should set the `installCRDs` value to `false` to avoid warnings
|
||||||
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
|
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
|
||||||
| imagePullSecrets | list | `[]` | If defined, uses a Secret to pull an image from a private Docker registry or repository. |
|
| imagePullSecrets | list | `[]` | If defined, uses a Secret to pull an image from a private Docker registry or repository. |
|
||||||
| installCRDs | bool | `true` | Install Custom Resource Definition |
|
| installCRDs | bool | `true` | Install Custom Resource Definition |
|
||||||
|
| mountSSHKnownHostsVolume | bool | `true` | Mount the `argocd-ssh-known-hosts-cm` volume |
|
||||||
|
| mountTLSCertsVolume | bool | `true` | Mount the `argocd-tls-certs-cm` volume |
|
||||||
|
| mountGPGKeysVolume | bool | `false` | Mount the `argocd-gpg-keys-cm` volume |
|
||||||
|
| mountGPGKeyringVolume | bool | `true` | Mount an emptyDir volume for `gpg-keyring` |
|
||||||
| nameOverride | string | `""` | Provide a name in place of `argo-applicationset` |
|
| nameOverride | string | `""` | Provide a name in place of `argo-applicationset` |
|
||||||
| nodeSelector | object | `{}` | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) |
|
| nodeSelector | object | `{}` | [Node selector](https://kubernetes.io/docs/user-guide/node-selection/) |
|
||||||
| podAnnotations | object | `{}` | Annotations for the controller pods |
|
| podAnnotations | object | `{}` | Annotations for the controller pods |
|
||||||
|
|
|
@ -50,26 +50,42 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{{- if .Values.mountSSHKnownHostsVolume }}
|
||||||
- mountPath: /app/config/ssh
|
- mountPath: /app/config/ssh
|
||||||
name: ssh-known-hosts
|
name: ssh-known-hosts
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mountTLSCertsVolume }}
|
||||||
- mountPath: /app/config/tls
|
- mountPath: /app/config/tls
|
||||||
name: tls-certs
|
name: tls-certs
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mountGPGKeysVolume }}
|
||||||
- mountPath: /app/config/gpg/source
|
- mountPath: /app/config/gpg/source
|
||||||
name: gpg-keys
|
name: gpg-keys
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mountGPGKeyringVolume }}
|
||||||
- mountPath: /app/config/gpg/keys
|
- mountPath: /app/config/gpg/keys
|
||||||
name: gpg-keyring
|
name: gpg-keyring
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
|
{{- if .Values.mountSSHKnownHostsVolume }}
|
||||||
- configMap:
|
- configMap:
|
||||||
name: argocd-ssh-known-hosts-cm
|
name: argocd-ssh-known-hosts-cm
|
||||||
name: ssh-known-hosts
|
name: ssh-known-hosts
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mountTLSCertsVolume }}
|
||||||
- configMap:
|
- configMap:
|
||||||
name: argocd-tls-certs-cm
|
name: argocd-tls-certs-cm
|
||||||
name: tls-certs
|
name: tls-certs
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mountGPGKeysVolume }}
|
||||||
- configMap:
|
- configMap:
|
||||||
name: argocd-gpg-keys-cm
|
name: argocd-gpg-keys-cm
|
||||||
name: gpg-keys
|
name: gpg-keys
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mountGPGKeyringVolume }}
|
||||||
- emptyDir: {}
|
- emptyDir: {}
|
||||||
name: gpg-keyring
|
name: gpg-keyring
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|
|
@ -70,3 +70,8 @@ nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
mountSSHKnownHostsVolume: true
|
||||||
|
mountTLSCertsVolume: true
|
||||||
|
mountGPGKeysVolume: false
|
||||||
|
mountGPGKeyringVolume: true
|
Loading…
Reference in a new issue