-
Notifications
You must be signed in to change notification settings - Fork 80
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
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
11681e0
Add cluster label to Medusa controllers selectors when listing pods
adejanovski 47678ec
Add e2e test
adejanovski 07ebb38
point to multi arch image for Medusa
adejanovski 28d762d
Update CI
adejanovski 9dfef68
Fix all sorts of issues
adejanovski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
test/testdata/fixtures/single-dc-multi-cluster-medusa/k8ssandra.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
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 | ||
--- | ||
apiVersion: k8ssandra.io/v1alpha1 | ||
kind: K8ssandraCluster | ||
metadata: | ||
name: cluster1 | ||
spec: | ||
cassandra: | ||
serverVersion: 4.0.11 | ||
datacenters: | ||
- metadata: | ||
name: cluster1-dc1 | ||
datacenterName: dc1 | ||
k8sContext: kind-k8ssandra-0 | ||
size: 2 | ||
storageConfig: | ||
cassandraDataVolumeClaimSpec: | ||
storageClassName: standard | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
config: | ||
jvmOptions: | ||
heapSize: 512Mi | ||
--- | ||
apiVersion: k8ssandra.io/v1alpha1 | ||
kind: K8ssandraCluster | ||
metadata: | ||
name: cluster2 | ||
spec: | ||
cassandra: | ||
serverVersion: 4.0.11 | ||
superuserSecretRef: | ||
name: cluster2-superuser | ||
datacenters: | ||
- metadata: | ||
name: cluster2-dc1 | ||
datacenterName: dc1 | ||
k8sContext: kind-k8ssandra-0 | ||
size: 2 | ||
storageConfig: | ||
cassandraDataVolumeClaimSpec: | ||
storageClassName: standard | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
config: | ||
jvmOptions: | ||
heapSize: 512Mi | ||
medusa: | ||
cassandraUserSecretRef: | ||
name: cluster2-medusa | ||
storageProperties: | ||
storageProvider: s3_compatible | ||
bucketName: k8ssandra-medusa | ||
prefix: test | ||
storageSecretRef: | ||
name: medusa-bucket-key | ||
host: minio-service.minio.svc.cluster.local | ||
port: 9000 | ||
secure: false |
4 changes: 4 additions & 0 deletions
4
test/testdata/fixtures/single-dc-multi-cluster-medusa/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- k8ssandra.yaml |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.