Skip to content

Commit

Permalink
webhook test logic with temporary structure until kubeconfig PR gets …
Browse files Browse the repository at this point in the history
…merged
  • Loading branch information
mihaialexandrescu committed Aug 3, 2023
1 parent eb441d8 commit c272723
Show file tree
Hide file tree
Showing 6 changed files with 377 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/webhooks/kafkatopic_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (s *KafkaTopicValidator) checkExistingKafkaTopicCRs(ctx context.Context,
}
}
if foundKafkaTopic != nil {
logMsg := fmt.Sprintf("kafkaTopic CR '%s' in namesapce '%s' is already referencing to Kafka topic '%s'",
logMsg := fmt.Sprintf("kafkaTopic CR '%s' in namespace '%s' is already referencing to Kafka topic '%s'",
foundKafkaTopic.Name, foundKafkaTopic.Namespace, foundKafkaTopic.Spec.Name)
return field.Invalid(field.NewPath("spec").Child("name"), foundKafkaTopic.Spec.Name, logMsg), nil
}
Expand Down
3 changes: 3 additions & 0 deletions tests/e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ require (
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Shopify/sarama v1.36.0 // indirect
github.com/banzaicloud/istio-client-go v0.0.17 // indirect
github.com/banzaicloud/k8s-objectmatcher v1.8.0 // indirect
github.com/banzaicloud/koperator/properties v0.4.1 // indirect
github.com/banzaicloud/operator-tools v0.28.0 // indirect
github.com/briandowns/spinner v1.12.0 // indirect
Expand Down Expand Up @@ -54,7 +55,9 @@ require (
github.com/twmb/franz-go/pkg/kmsg v1.4.0 // indirect
github.com/wayneashleyberry/terminal-dimensions v1.0.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/exp v0.0.0-20220827204233-334a2380cb91 // indirect
sigs.k8s.io/controller-runtime v0.14.6 // indirect
sigs.k8s.io/gateway-api v0.6.0 // indirect
)

require (
Expand Down
Loading

0 comments on commit c272723

Please sign in to comment.