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

Replicate bucket key secrets to namespaces hosting clusters that reference the MedusaConfiguration #1159

Closed
1 task done
Tracked by #1156
adejanovski opened this issue Jan 5, 2024 · 0 comments · Fixed by #1202
Closed
1 task done
Tracked by #1156
Assignees
Labels
done Issues in the state 'done'

Comments

@adejanovski
Copy link
Contributor

adejanovski commented Jan 5, 2024

As the K8ssandraCluster gets created, if there’s a provided medusaConfigurationRef and it is in a different namespace than the K8ssandraCluster, the referenced secret must be duplicated in the K8ssandraCluster namespace with a new name: <cluster-name>-<secret-name>, and the following labels:

      k8ssandra.io/cluster-name: test
      k8ssandra.io/cluster-namespace: k8ssandra-operator
      k8ssandra.io/replicated-by: k8ssandracluster-controller

Labels should be placed on the copied secret using labels.SetReplicatedBy().
This will allow the ReplicatedSecret controller to cleanup any created secret upon deletion.

This secret will then be replicated to all the contexts/namespaces as part of the ReplicatedSecret workflow that’s already implemented in the operator.

Image

Definition of Done

Preview Give feedback
@adejanovski adejanovski moved this to Ready in K8ssandra Jan 5, 2024
@adejanovski adejanovski added the ready Issues in the state 'ready' label Jan 5, 2024
@rzvoncek rzvoncek self-assigned this Feb 7, 2024
@rzvoncek rzvoncek moved this from Ready to In Progress in K8ssandra Feb 7, 2024
@adejanovski adejanovski added in-progress Issues in the state 'in-progress' and removed ready Issues in the state 'ready' labels Feb 7, 2024
@rzvoncek rzvoncek moved this from In Progress to Ready For Review in K8ssandra Feb 8, 2024
@adejanovski adejanovski added ready-for-review Issues in the state 'ready-for-review' and removed in-progress Issues in the state 'in-progress' labels Feb 8, 2024
@burmanm burmanm moved this from Ready For Review to Review in K8ssandra Feb 12, 2024
@adejanovski adejanovski added review Issues in the state 'review' and removed ready-for-review Issues in the state 'ready-for-review' labels Feb 12, 2024
@github-project-automation github-project-automation bot moved this from Review to Done in K8ssandra Feb 20, 2024
@adejanovski adejanovski added done Issues in the state 'done' and removed review Issues in the state 'review' labels Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Issues in the state 'done'
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants