Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow replication of only certain keys #248

Open
slimm609 opened this issue Jan 4, 2023 · 0 comments
Open

Allow replication of only certain keys #248

slimm609 opened this issue Jan 4, 2023 · 0 comments

Comments

@slimm609
Copy link
Contributor

slimm609 commented Jan 4, 2023

Is your feature request related to a problem? Please describe.
When replicating secrets, you may not want to allow the replication of all objects in the secret and instead only a subset of fields

Describe the solution you'd like

apiVersion: v1
kind: Secret
metadata:
  annotations:
    replicator.v1.mittwald.de/replication-allowed: "true"
    replicator.v1.mittwald.de/replication-allowed-namespaces: "*"
    replicator.v1.mittwald.de/replication-allowed-keys: "ca.crt,tls.crt"
data:
  ca.crt: <value1>
  tls.key: <value2>
  tls.crt: <value>
apiVersion: v1
kind: Secret
metadata:
  name: tls-secret-replica
  annotations:
    replicator.v1.mittwald.de/replicate-from: default/some-tls-secret
type: kubernetes.io/tls
data:
  tls.key: ""
  tls.crt: ""
  ca.crt: ""

the replicated secret would leave tls.key as an empty field and populate only the 2 other fields populated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant