-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cluster label to Medusa controllers selectors when listing pods (#…
- Loading branch information
1 parent
f251394
commit cff6304
Showing
8 changed files
with
115 additions
and
3 deletions.
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 |