diff --git a/flux/cluster/apps/test/kustomization.yaml b/flux/cluster/apps/test/kustomization.yaml index 4a5e31e..b178dd0 100644 --- a/flux/cluster/apps/test/kustomization.yaml +++ b/flux/cluster/apps/test/kustomization.yaml @@ -5,3 +5,4 @@ resources: - ingress.yaml - service.yaml - registry-creds.yaml + - test-secret.yaml diff --git a/flux/cluster/apps/test/registry-creds.yaml b/flux/cluster/apps/test/registry-creds.yaml index 5d3fec1..58e18c5 100644 --- a/flux/cluster/apps/test/registry-creds.yaml +++ b/flux/cluster/apps/test/registry-creds.yaml @@ -15,5 +15,5 @@ spec: data: - secretKey: .dockerconfigjson remoteRef: - key: registry-creds + key: k8s/registry-creds property: dockerconfigjson \ No newline at end of file diff --git a/flux/cluster/apps/test/test-secret.yaml b/flux/cluster/apps/test/test-secret.yaml new file mode 100644 index 0000000..e161110 --- /dev/null +++ b/flux/cluster/apps/test/test-secret.yaml @@ -0,0 +1,16 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: vault-example +spec: + refreshInterval: "15s" + secretStoreRef: + name: vault + kind: ClusterSecretStore + target: + name: example-sync + data: + - secretKey: foobar + remoteRef: + key: k8s/foo + property: my-value \ No newline at end of file diff --git a/flux/cluster/base/flux-system/registry-creds.yaml b/flux/cluster/base/flux-system/registry-creds.yaml index 0e4a695..3b42242 100644 --- a/flux/cluster/base/flux-system/registry-creds.yaml +++ b/flux/cluster/base/flux-system/registry-creds.yaml @@ -15,5 +15,5 @@ spec: data: - secretKey: .dockerconfigjson remoteRef: - key: registry-creds + key: k8s/registry-creds property: dockerconfigjson \ No newline at end of file