A Kubernetes operator to sync secrets using a custom SecretSync resource.
137
This is a Kubernetes operator that will sync secrets from a defined source namespace to any number of destination namespaces.
GitHub Source
Key features:
SecretSync in your destination namespace.SecretSync resource in a tenant namespace and syncs them from a source namespace - configured in the controller deployment env spec SOURCE_NAMESPACE.
SOURCE_NAMESPACE is set to default. It can be updated in the manager deploymentSecretSync object will also delete the secrets it owns.SecretSync.spec.secrets list only, when:
SecretSync object (i.e. a user manually update or deletes a secret owned by the SecretSync object)SecretSync object (removing a secret from the list will force a delete of the secret in the destination namespace and vice versa)Below example will setup a sync for secret1 and secret2 in the namespace team-1, assuming the controller has been configured with a source namespace default, the controller will reconcile the secrets into the team-1 namespace (copying from the default namespace).
Any changes to the secrets will trigger a sync/reconile to keep the secrets in sync with the default namespace.
kubectl apply -f - <<EOF
apiVersion: sync.samir.io/v1
kind: SecretSync
metadata:
name: secretsync-sample
namespace: team-1
spec:
secrets:
- secret1
- secret2
EOF
Content type
Image
Digest
sha256:7dbce1895…
Size
23.1 MB
Last updated
over 2 years ago
docker pull samirtahir91076/secret-sync-operator:main