diff --git a/cmd/shipperctl/configurator/cluster.go b/cmd/shipperctl/configurator/cluster.go index 4625827c8..2fe3c4f29 100644 --- a/cmd/shipperctl/configurator/cluster.go +++ b/cmd/shipperctl/configurator/cluster.go @@ -432,7 +432,7 @@ func (c *Cluster) CreateOrUpdateValidatingWebhookConfiguration(caBundle []byte, }, Rule: admissionregistrationv1beta1.Rule{ APIGroups: []string{shipper.SchemeGroupVersion.Group}, - APIVersions: []string{shipper.SchemeGroupVersion.Version}, + APIVersions: []string{"*"}, Resources: []string{"*"}, }, }, diff --git a/cmd/shipperctl/configurator/cluster_test.go b/cmd/shipperctl/configurator/cluster_test.go index 84f9c6d70..92744011d 100644 --- a/cmd/shipperctl/configurator/cluster_test.go +++ b/cmd/shipperctl/configurator/cluster_test.go @@ -175,7 +175,7 @@ func (f *fixture) newValidatingWebhookConfiguration(caBundle []byte, namespace s Operations: operations, Rule: admissionregistrationv1beta1.Rule{ APIGroups: []string{shipper.SchemeGroupVersion.Group}, - APIVersions: []string{shipper.SchemeGroupVersion.Version}, + APIVersions: []string{"*"}, Resources: []string{"*"}, }, },