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

Fails to replicate secret despite correct configuration #358

Open
lrdplopes opened this issue Nov 13, 2024 · 0 comments
Open

Fails to replicate secret despite correct configuration #358

lrdplopes opened this issue Nov 13, 2024 · 0 comments
Labels

Comments

@lrdplopes
Copy link

Describe the bug
We are experiencing an issue where kubernetes-replicator does not replicate a secret to a target namespace, even though the configuration appears correct.

To Reproduce

apiVersion: v1
kind: Secret
metadata:
  name: vault-ca
  namespace: kubernetes-replicator
  annotations:
    replicator.v1.mittwald.de/replicate-to-matching: inject-vault-ca=true
  labels:
    argocd.argoproj.io/instance: vault-secret-testenvir
type: Opaque
data:
  ca.crt: LS0...LS0t

The target namespace:

apiVersion: v1
kind: Namespace
metadata:
  name: llopes
  labels:
    inject-vault-ca: "true"

Expected behavior
The namespaces labeled with the inject-vault-ca: "true" get installed/injected the vault-ca.

Environment:

  • Kubernetes version: [e.g. 1.28]
  • kubernetes-replicator version: [e.g. v2.10.0]

Additional context

time="2024-11-13T16:36:44Z" level=info msg="labels of namespace llopes changed, attempting to delete ConfigMaps that no longer match" kind=ConfigMap target=llopes
time="2024-11-13T16:36:44Z" level=info msg="labels of namespace llopes changed, attempting to replicate ConfigMaps" kind=ConfigMap target=llopes
time="2024-11-13T16:36:44Z" level=info msg="Replicated kubernetes-replicator/vault-ca to: llopes" source=kubernetes-replicator/vault-ca
@lrdplopes lrdplopes added the bug label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant