Skip to content

Commit

Permalink
fix: apiService validate webhook (kubesphere#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
wansir committed Jun 27, 2023
1 parent 6d77442 commit 4be6d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/extension/apiservice_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (r *APIServiceWebhook) validateAPIService(ctx context.Context, service *ext
for _, apiService := range apiServices.Items {
if apiService.Name != service.Name &&
apiService.Spec.Group == service.Spec.Group &&
apiService.Spec.Version != service.Name {
apiService.Spec.Version == service.Spec.Version {
return fmt.Errorf("APIService %s/%s is already exists", service.Spec.Group, service.Spec.Version)
}
}
Expand Down

0 comments on commit 4be6d06

Please sign in to comment.