-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use a normal k8s secret by default
- Loading branch information
1 parent
0baffe1
commit ee4b083
Showing
4 changed files
with
59 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{- if .Values.secret.externalSecretKey }} | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: {{ include "music-notifications.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "music-notifications.labels" . | nindent 4 }} | ||
spec: | ||
refreshInterval: 1h | ||
secretStoreRef: | ||
name: cluster | ||
kind: ClusterSecretStore | ||
target: | ||
name: {{ include "music-notifications.fullname" . }} | ||
template: | ||
engineVersion: v2 | ||
metadata: | ||
labels: | ||
{{- include "music-notifications.labels" . | nindent 10 }} | ||
{{- with .Values.secret.annotations }} | ||
annotations: | ||
{{ toYaml . }} | ||
{{- end }} | ||
creationPolicy: Owner | ||
deletionPolicy: Delete | ||
dataFrom: | ||
- extract: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: {{ .Values.secret.externalSecretKey | quote }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
{{- if .Values.secret.externalSecretKey }} | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
{{- if not .Values.secret.externalSecretKey }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "music-notifications.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "music-notifications.labels" . | nindent 4 }} | ||
spec: | ||
refreshInterval: 1h | ||
secretStoreRef: | ||
name: cluster | ||
kind: ClusterSecretStore | ||
target: | ||
name: {{ include "music-notifications.fullname" . }} | ||
template: | ||
engineVersion: v2 | ||
metadata: | ||
labels: | ||
{{- include "music-notifications.labels" . | nindent 10 }} | ||
{{- with .Values.secret.annotations }} | ||
annotations: | ||
{{ toYaml . }} | ||
{{- end }} | ||
creationPolicy: Owner | ||
deletionPolicy: Delete | ||
dataFrom: | ||
- extract: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: {{ .Values.secret.externalSecretKey | quote }} | ||
type: Opaque | ||
{{- with .Values.secret.data }} | ||
data: | ||
{{ toYaml . }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters