19e9b07e6e
This reverts d5ce1a47ea
and therefore adds the GPG feature back into main.
As it is a breaking change, this PR now also contains the required upgrade notes.
Closes #107 again.
Co-authored-by: justusbunsi <sk.bunsenbrenner@gmail.com>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/374
Reviewed-by: pat-s <pat-s@noreply.gitea.io>
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
17 lines
553 B
YAML
17 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 }}
|