
GPG feature has breaking changes Co-authored-by: robv89r <robv8r@noreply.gitea.io> Co-authored-by: justusbunsi <justusbunsi@noreply.gitea.io> Co-authored-by: Michael Kriese <michael.kriese@visualon.de> Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/47
16 lines
553 B
YAML
16 lines
553 B
YAML
{{- if .Values.signing.enabled -}}
|
|
{{- if and (empty .Values.signing.privateKey) (empty .Values.signing.existingSecret) -}}
|
|
{{- fail "Either specify `signing.privateKey` or `signing.existingKey`" -}}
|
|
{{- end }}
|
|
{{- if and (not (empty .Values.signing.privateKey)) (empty .Values.signing.existingSecret) -}}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "gitea.gpg-key-secret-name" . }}
|
|
labels:
|
|
{{- include "gitea.labels" . | nindent 4 }}
|
|
type: Opaque
|
|
data:
|
|
privateKey: {{ .Values.signing.privateKey | b64enc }}
|
|
{{- end }}
|
|
{{- end }}
|