DopplerHQ / kubernetes-operator

Apache License 2.0
44 stars 18 forks source link

Add support for syncing secret subsets #52

Closed watsonian closed 9 months ago

watsonian commented 9 months ago

This adds the ability to specify a list of secrets you'd like to have synced from the config to the k8s secret. Prior to this, the only option was to either sync ALL secrets or use the kubernetes.io/tls DopplerSecret type combined with processors.

apiVersion: secrets.doppler.com/v1alpha1
kind: DopplerSecret
metadata:
  name: dopplersecret-test
  namespace: doppler-operator-system
spec:
  tokenSecret:
    name: doppler-token-secret
  secrets:
    - HOSTNAME
    - PORT
  managedSecret:
    name: doppler-test-secret
    namespace: default

Fixes FEA-125