From 7c77c331805e40d7a2f4a15436f06540d06be37d Mon Sep 17 00:00:00 2001 From: Daishan Date: Fri, 16 Oct 2020 09:10:17 -0700 Subject: [PATCH] Add v1beta1 to admissionReview for 1.16 compatibility --- pkg/admission/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/admission/server.go b/pkg/admission/server.go index 965fa7ddd..2ec209705 100644 --- a/pkg/admission/server.go +++ b/pkg/admission/server.go @@ -98,7 +98,7 @@ func listenAndServe(ctx context.Context, cfg *rest.Config, handler http.Handler) }, FailurePolicy: &failPolicyIgnore, SideEffects: &sideEffect, - AdmissionReviewVersions: []string{"v1"}, + AdmissionReviewVersions: []string{"v1", "v1beta1"}, }, { Name: "rancherauth.cattle.io", @@ -164,7 +164,7 @@ func listenAndServe(ctx context.Context, cfg *rest.Config, handler http.Handler) }, FailurePolicy: &failPolicyFail, SideEffects: &sideEffect, - AdmissionReviewVersions: []string{"v1"}, + AdmissionReviewVersions: []string{"v1", "v1beta1"}, }, }, })