Skip to content

Commit

Permalink
feat(helm): update cluster-secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
isac322 committed Dec 18, 2023
1 parent 011a94f commit b8f60af
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/cluster-secrets/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Create ClusterSecretStore

type: application

version: 0.2.0
version: 0.3.0

home: https://github.com/isac322/homelab
sources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{{- if .Values.clusterExternalSecret.cloudflareCAAPIKey.enabled }}
{{- if .Values.clusterExternalSecret.cloudflare.enabled }}
apiVersion: external-secrets.io/v1beta1
kind: ClusterExternalSecret
metadata:
name: {{ include "cluster-secrets.fullname" . }}-{{ required "A valid .Values.clusterExternalSecret.cloudflareCAAPIKey.secretName entry required!" .Values.clusterExternalSecret.cloudflareCAAPIKey.secret.name }}
name: {{ include "cluster-secrets.fullname" . }}-{{ required "A valid .Values.clusterExternalSecret.cloudflareOriginCAKey.secretName entry required!" .Values.clusterExternalSecret.cloudflareOriginCAKey.secret.name }}
labels:
{{- include "cluster-secrets.labels" . | nindent 4 }}
spec:
# The name to be used on the ExternalSecrets
externalSecretName: {{ .Values.clusterExternalSecret.cloudflareCAAPIKey.secret.name }}
externalSecretName: {{ .Values.clusterExternalSecret.cloudflareOriginCAKey.secret.name }}

# This is a basic label selector to select the namespaces to deploy ExternalSecrets to.
# you can read more about them here https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#resources-that-support-set-based-requirements
Expand All @@ -28,11 +28,11 @@ spec:

refreshInterval: "1h"
target:
name: {{ .Values.clusterExternalSecret.cloudflareCAAPIKey.secret.name }}
name: {{ .Values.clusterExternalSecret.cloudflareOriginCAKey.secret.name }}
creationPolicy: Owner
deletionPolicy: Delete
data:
- secretKey: {{ .Values.clusterExternalSecret.cloudflareCAAPIKey.secret.key }}
- secretKey: {{ .Values.clusterExternalSecret.cloudflareOriginCAKey.secret.key }}
remoteRef:
key: {{ .Values.clusterExternalSecret.cloudflareCAAPIKey.externalKeyName }}
key: {{ .Values.clusterExternalSecret.cloudflareOriginCAKey.externalKeyName }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/cluster-secrets/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ clusterSecretStore:
# name: ""

clusterExternalSecret:
cloudflareCAAPIKey:
cloudflareOriginCAKey:
enabled: true
externalKeyName: ""
secret:
Expand Down
2 changes: 1 addition & 1 deletion values/cluster-secrets/backbone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ clusterSecretStore:
namespace: kube-system

clusterExternalSecret:
cloudflareCAAPIKey:
cloudflareOriginCAKey:
externalKeyName: /homelab/shared/cloudflare/token/origin-ca
2 changes: 1 addition & 1 deletion values/cluster-secrets/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ clusterSecretStore:
namespace: kube-system

clusterExternalSecret:
cloudflareCAAPIKey:
cloudflareOriginCAKey:
externalKeyName: /homelab/shared/cloudflare/token/origin-ca

0 comments on commit b8f60af

Please sign in to comment.