Skip to content

Commit cfbbd75

Browse files
authored
Merge pull request #913 from Ladicle/fix-adm-const-val
🐛 Fix swapped constant value in webhook envtest
2 parents 2f1eb81 + 8781a5c commit cfbbd75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/envtest/webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ func readWebhooks(path string) ([]runtime.Object, []runtime.Object, error) {
376376
}
377377

378378
const (
379-
admissionregv1 = "admissionregistration.k8s.io/v1beta1"
380-
admissionregv1beta1 = "admissionregistration.k8s.io/v1"
379+
admissionregv1 = "admissionregistration.k8s.io/v1"
380+
admissionregv1beta1 = "admissionregistration.k8s.io/v1beta1"
381381
)
382382
switch {
383383
case generic.Kind == "MutatingWebhookConfiguration":

0 commit comments

Comments
 (0)