digitalis-io / vals-operator

Kubernetes Operator to sync secrets between different secret backends and Kubernetes
Apache License 2.0
156 stars 8 forks source link

Refactoring to add templates #55

Closed digiserg closed 1 year ago

digiserg commented 1 year ago

Refactored to use templates instead of the weird format we had before. This make a lot more sense.

apiVersion: digitalis.io/v1beta1
kind: DbSecret
metadata:
  name: db-secret
spec:
  vault:
    mount: cass000
    role: reaonly
  template:
    CASSANDRA_USERNAME: "{{ .username }}"
    CASSANDRA_PASSWORD: "{{ .password }}"