Files
helm-gitea/templates/gpg-secret.yaml
Markus Pesch 6a2a93c780 refac(structure): remove leading gitea directory
The following pull request removes the `gitea` directory. With regard to
maintaining act_runners in a separate git repository or helm chart, this
additional directory becomes redundant.
2025-09-30 21:17:52 +02:00

18 lines
622 B
YAML

{{- if .Values.signing.enabled -}}
{{- if and (empty .Values.signing.privateKey) (empty .Values.signing.existingSecret) -}}
{{- fail "Either specify `signing.privateKey` or `signing.existingSecret`" -}}
{{- end }}
{{- if and (not (empty .Values.signing.privateKey)) (empty .Values.signing.existingSecret) -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "gitea.gpg-key-secret-name" . }}
namespace: {{ .Values.namespace | default .Release.Namespace }}
labels:
{{- include "gitea.labels" . | nindent 4 }}
type: Opaque
data:
privateKey: {{ .Values.signing.privateKey | b64enc }}
{{- end }}
{{- end }}