Files
helm-generic-chart/templates/dockerconfig.yaml
Fyodor Doletov 964231c369
All checks were successful
Publish Helm Chart / Build and publish Helm chart (push) Successful in 5s
init
2025-11-11 03:50:36 +03:00

19 lines
455 B
YAML

{{- if .Values.vault }}
{{- if .Values.vault.imagePullSecret }}
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultStaticSecret
metadata:
name: imagepull
spec:
type: kv-v2
mount: {{ .Values.vault.mount }}
path: {{ .Values.vault.imagePullSecret.path }}
destination:
name: {{ .Values.vault.imagePullSecret.name }}
create: true
type: kubernetes.io/dockerconfigjson
refreshAfter: 30s
vaultAuthRef: vault-auth
{{- end }}
{{- end }}