Skip to content

Commit 6d4ca80

Browse files
committed
pkg/server/options: add a TODO removal notice for admissionregistration.k8s.io/v1alpha1 override
On-behalf-of: SAP [email protected] Signed-off-by: Robert Vasek <[email protected]>
1 parent 2d619fe commit 6d4ca80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/server/options/options.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ func NewOptions(rootDir string) *Options {
131131
// turn on the watch cache
132132
o.GenericControlPlane.Etcd.EnableWatchCache = true
133133

134+
// TODO(gman0): remove this admissionregistration.k8s.io/v1alpha1 override once
135+
// we reach Kubernetes v1.33. VAP will be removed from that API version then:
136+
// https://github.com/kubernetes/kubernetes/pull/129207
137+
// ValidatingAdmissionPolicy is GA, in admissionregistration.k8s.io/v1.
138+
//
134139
// Turn on admissionregistration for validating admission policy
135140
if err := o.GenericControlPlane.APIEnablement.RuntimeConfig.Set("admissionregistration.k8s.io/v1alpha1=true"); err != nil {
136141
panic(fmt.Errorf("error setting APIEnablement: %w", err))

0 commit comments

Comments
 (0)