Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Extend WebhookConfigurations to any apiVersion (#401)
Browse files Browse the repository at this point in the history
We'd rather fail close on validation that an object unvalidated reach the cluster.
  • Loading branch information
Titouan BION authored Nov 26, 2021
1 parent 033806d commit ae30deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/shipperctl/configurator/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{"*"},
},
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/shipperctl/configurator/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{"*"},
},
},
Expand Down

0 comments on commit ae30deb

Please sign in to comment.