AlexRogalskiy/java-patterns

View on GitHub
charts/templates/secret-recv.yaml

Summary

Maintainability
Test Coverage
{{- if .Values.secrets.enabled }}
{{- $fullName := include "backend-java-patterns.fullname" . -}}
apiVersion: v1
kind: Secret
metadata:
  name: {{ $fullName }}-recv
  namespace: {{ .Release.Namespace | quote }}
  labels:
    {{- include "backend-java-patterns.labels" . | nindent 4 }}
  {{- if .Values.secrets.labels }}
  {{- with .Values.secrets.labels }}
    {{- toYaml . | nindent 4 }}
  {{- end }}
  {{- end }}
  {{- if .Values.secrets.annotations }}
  {{- with .Values.secrets.annotations }}
  annotations:
    {{- toYaml . | indent 4 }}
  {{- end }}
  {{- end }}
type: Opaque
data:
  GITHUB_KEY: {{ required "A valid .Values.secrets.data.githubKey is required" .Values.secrets.data.githubKey | b64enc | quote }}
{{- end }}