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

Add cluster label to Medusa controllers selectors when listing pods #1133

Merged
merged 5 commits into from
Dec 20, 2023

Conversation

adejanovski
Copy link
Contributor

What this PR does:
Properly filters Cassandra pods using both the cluster and dc labels.

Which issue(s) this PR fixes:
Fixes #1132

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@adejanovski adejanovski force-pushed the fix-backup-job-cluster-mismatch branch from 19a4cbd to 0755b57 Compare December 15, 2023 14:21
@adejanovski adejanovski marked this pull request as ready for review December 20, 2023 08:22
@adejanovski adejanovski requested a review from a team as a code owner December 20, 2023 08:22
Comment on lines +1 to +17
apiVersion: v1
kind: Secret
metadata:
name: cluster2-medusa
data:
password: MjdrdU5adHQ3Q1YxYjJCWlZuN2c=
username: Y2x1c3RlcjItbWVkdXNh
type: Opaque
---
apiVersion: v1
kind: Secret
metadata:
name: cluster2-superuser
data:
password: dGVzdGVycw==
username: dGVzdDJAdGVzdC5jb20=
type: Opaque
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to create those secrets because using default secrets seems to create a race condition where they will be deleted upon deletion of the K8ssandraCluster objects before the cassdc objects are deleted, but then cass-operator complains that the secrets are missing and cannot run its finalizers.

@adejanovski adejanovski force-pushed the fix-backup-job-cluster-mismatch branch from aab13fd to 9dfef68 Compare December 20, 2023 09:43
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@adejanovski adejanovski merged commit cff6304 into main Dec 20, 2023
56 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backup aren't executed if multiple DCs with the same name exist in a namespace
2 participants