Skip to content

Commit

Permalink
Ensure labels are added to the ReplicatedSecret.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Apr 5, 2024
1 parent 7f7b6a4 commit cebad56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/k8ssandra/medusa_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/adutra/goalesce"
"github.com/go-logr/logr"
api "github.com/k8ssandra/k8ssandra-operator/apis/k8ssandra/v1alpha1"
k8ssandraapi "github.com/k8ssandra/k8ssandra-operator/apis/k8ssandra/v1alpha1"
medusaapi "github.com/k8ssandra/k8ssandra-operator/apis/medusa/v1alpha1"
replication "github.com/k8ssandra/k8ssandra-operator/apis/replication/v1alpha1"
cassandra "github.com/k8ssandra/k8ssandra-operator/pkg/cassandra"
Expand Down Expand Up @@ -325,6 +326,10 @@ func (r *K8ssandraClusterReconciler) reconcileRemoteBucketSecretsDeprecated(
ObjectMeta: metav1.ObjectMeta{
Name: kc.GetClusterIdHash(8) + "-" + medusaConfig.Spec.StorageProperties.StorageSecretRef.Name,
Namespace: medusaConfigNamespace,
Labels: map[string]string{
k8ssandraapi.K8ssandraClusterNameLabel: kc.Name,
k8ssandraapi.K8ssandraClusterNamespaceLabel: kc.Namespace,
},
},
Spec: replication.ReplicatedSecretSpec{
Selector: &metav1.LabelSelector{
Expand Down

0 comments on commit cebad56

Please sign in to comment.