secret-claims.yaml 911 B

1234567891011121314151617181920212223242526272829
  1. {{- if .Values.controller.secretClaims -}}
  2. {{- $r := .Release -}}
  3. {{- $v := .Values -}}
  4. {{- $chart := printf "%s-%s" .Chart.Name .Chart.Version -}}
  5. {{- $namespace := include "jenkins.namespace" . -}}
  6. {{- $serviceName := include "jenkins.fullname" . -}}
  7. {{ range .Values.controller.secretClaims }}
  8. ---
  9. kind: SecretClaim
  10. apiVersion: vaultproject.io/v1
  11. metadata:
  12. name: {{ $serviceName }}-{{ .name | default .path | lower }}
  13. namespace: {{ $namespace }}
  14. labels:
  15. "app.kubernetes.io/name": '{{ $serviceName }}'
  16. {{- if $v.renderHelmLabels }}
  17. "helm.sh/chart": "{{ $chart }}"
  18. {{- end }}
  19. "app.kubernetes.io/managed-by": "{{ $r.Service }}"
  20. "app.kubernetes.io/instance": "{{ $r.Name }}"
  21. "app.kubernetes.io/component": "{{ $v.controller.componentName }}"
  22. spec:
  23. type: {{ .type | default "Opaque" }}
  24. path: {{ .path }}
  25. {{- if .renew }}
  26. renew: {{ .renew }}
  27. {{- end }}
  28. {{- end }}
  29. {{- end }}