Skip to content

Commit

Permalink
[DO-1974] migrate sandbox dapp to external-secrets-operator (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
duje-begonja-rdx authored Nov 6, 2023
1 parent 26dfadf commit e13d2ee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
26 changes: 17 additions & 9 deletions deploy/helm/sandbox/sandbox/templates/docker-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
apiVersion: kubernetes-client.io/v1
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: docker-hub-dev
# name of ExternalSecret under CRD section
name: dockerhub-dev
spec:
backendType: secretsManager
region: {{ .Values.docker.secrets.region }}
template:
type: kubernetes.io/dockerconfigjson
refreshInterval: 1h
secretStoreRef:
name: main
kind: ClusterSecretStore
target:
# name of actual secret under Config/Secrets, not required will use .metadata.name
creationPolicy: Owner
template:
type: kubernetes.io/dockerconfigjson
data:
- key: {{ .Values.docker.secrets.name }}
name: .dockerconfigjson
property: dockerconfigjson
- secretKey: .dockerconfigjson
remoteRef:
key: {{ .Values.docker.secrets.name }}
version: "AWSCURRENT"
property: dockerconfigjson
3 changes: 1 addition & 2 deletions deploy/helm/sandbox/sandbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ project: sandbox

docker:
secrets:
region: eu-west-1
name: docker.io/radixdlt

replicaCount: 1
Expand All @@ -13,7 +12,7 @@ image:
tag: ""

imagePullSecrets:
- name: docker-hub-dev
- name: dockerhub-dev

nameOverride: "sandbox"
fullnameOverride: "sandbox"
Expand Down

0 comments on commit e13d2ee

Please sign in to comment.