Skip to content

Commit

Permalink
Fix envtests
Browse files Browse the repository at this point in the history
  • Loading branch information
olim7t committed Jun 1, 2024
1 parent 5b3ba0b commit 6ea0820
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions controllers/k8ssandra/add_dc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ func addDcSetupForSingleDc(ctx context.Context, t *testing.T, f *framework.Frame
require := require.New(t)
kc := &api.K8ssandraCluster{
ObjectMeta: metav1.ObjectMeta{
Namespace: namespace,
Name: "add-dc-test",
Namespace: namespace,
Name: "add-dc-test",
Annotations: map[string]string{api.AutomatedUpdateAnnotation: string(api.AllowUpdateAlways)},
},
Spec: api.K8ssandraClusterSpec{
Cassandra: &api.CassandraClusterTemplate{
Expand Down Expand Up @@ -119,8 +120,9 @@ func addDcSetupForMultiDc(ctx context.Context, t *testing.T, f *framework.Framew
require := require.New(t)
kc := &api.K8ssandraCluster{
ObjectMeta: metav1.ObjectMeta{
Namespace: namespace,
Name: "add-dc-test",
Namespace: namespace,
Name: "add-dc-test",
Annotations: map[string]string{api.AutomatedUpdateAnnotation: string(api.AllowUpdateAlways)},
},
Spec: api.K8ssandraClusterSpec{
Cassandra: &api.CassandraClusterTemplate{
Expand Down
5 changes: 3 additions & 2 deletions controllers/k8ssandra/stop_dc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ func stopDcTestSetup(t *testing.T, f *framework.Framework, ctx context.Context,

kc := &api.K8ssandraCluster{
ObjectMeta: metav1.ObjectMeta{
Namespace: namespace,
Name: "stop-dc-test",
Namespace: namespace,
Name: "stop-dc-test",
Annotations: map[string]string{api.AutomatedUpdateAnnotation: string(api.AllowUpdateAlways)},
},
Spec: api.K8ssandraClusterSpec{
Cassandra: &api.CassandraClusterTemplate{
Expand Down

0 comments on commit 6ea0820

Please sign in to comment.