Skip to content

Commit

Permalink
feat: SSO secret helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlokshin-czi committed Nov 6, 2024
1 parent fd759ee commit 4b40fe0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sso-secret/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
name: sso-secret
description: A Helm chart to create an SSO secret

type: application

version: 0.0.1

appVersion: "0.0.1"
19 changes: 19 additions & 0 deletions sso-secret/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: {{ .Values.secretName }}
spec:
refreshInterval: 1m
secretStoreRef:
name: aws-secretsmanager
kind: ClusterSecretStore
target:
name: {{ .Values.secretName }}
creationPolicy: Owner
data:
- secretKey: client-id
remoteRef:
key: {{ .Values.clusterName }}/{{ .Values.applicationName }}/oauth/client-id
- secretKey: client-secret
remoteRef:
key: {{ .Values.clusterName }}/{{ .Values.applicationName }}/oauth/client-secret
3 changes: 3 additions & 0 deletions sso-secret/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
clusterName: my-cluster
secretName: my-sso-secret
applicationName: my-app

0 comments on commit 4b40fe0

Please sign in to comment.