@@ -24,7 +24,7 @@ import (
2424 "k8s.io/utils/ptr"
2525)
2626
27- func testWebhookKafkaTopic (kafkaCluster types. NamespacedName ) {
27+ func testWebhookKafkaTopic () {
2828 // temporary section; to be refactored after kubeconfig injection PR
2929 var kubectlOptions k8s.KubectlOptions
3030 var err error
@@ -33,7 +33,8 @@ func testWebhookKafkaTopic(kafkaCluster types.NamespacedName) {
3333 GinkgoT ().Fail ()
3434 }
3535
36- kubectlOptions .Namespace = kafkaCluster .Namespace
36+ kubectlOptions .Namespace = koperatorLocalHelmDescriptor .Namespace
37+ kafkaCluster := types.NamespacedName {Name : kafkaClusterName , Namespace : koperatorLocalHelmDescriptor .Namespace }
3738
3839 testWebhookCreateKafkaTopic (kubectlOptions , kafkaCluster )
3940 testWebhookUpdateKafkaTopic (kubectlOptions , kafkaCluster )
@@ -152,7 +153,7 @@ func testWebhookCreateKafkaTopic(kubectlOptions k8s.KubectlOptions, kafkaCluster
152153 Name : kafkaCluster .Name ,
153154 Namespace : kafkaCluster .Namespace ,
154155 },
155- Name : overlappingTopicName + "different-cr-name" , // Note: This information is relevant to this particular test case.
156+ Name : overlappingTopicName + "- different-cr-name" , // Note: This information is relevant to this particular test case.
156157 Namespace : kubectlOptions .Namespace ,
157158 Partitions : ptr .To (int32 (2 )),
158159 ReplicationFactor : ptr .To (int32 (2 )),
@@ -180,7 +181,7 @@ func testWebhookCreateKafkaTopic(kubectlOptions k8s.KubectlOptions, kafkaCluster
180181 Name : kafkaCluster .Name ,
181182 Namespace : kafkaCluster .Namespace ,
182183 },
183- Name : overlappingTopicName + "different-cr-name" , // Note: This information is relevant to this particular test case.
184+ Name : overlappingTopicName + "- different-cr-name" , // Note: This information is relevant to this particular test case.
184185 Namespace : kubectlOptions .Namespace ,
185186 Partitions : ptr .To (int32 (2 )),
186187 ReplicationFactor : ptr .To (int32 (2 )),
0 commit comments