Skip to content

Commit

Permalink
Merge pull request #46 from slashben/main
Browse files Browse the repository at this point in the history
Updating documentation to be in up-to-date with 1.28
  • Loading branch information
slashben authored Sep 19, 2023
2 parents f622bbb + 6558c1d commit 0c10598
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/validating-admission-policies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

[Validating Admission Policies](https://kubernetes.io/docs/reference/access-authn-authz/validating-admission-policy/) have been introduced in Kubernetes 1.26 and they are under feature gate. In order to enable them:
* turn on `ValidatingAdmissionPolicy` feature gate
* turn on `admissionregistration.k8s.io/v1alpha1`
* turn on `admissionregistration.k8s.io/v1alpha1` or `admissionregistration.k8s.io/v1beta1` depending on whether you are using 1.26/1.27 (alpha) or 1.28 (beta)

For minikube users, this is an example of how to enable:

```bash
minikube start --kubernetes-version=1.26.0 --extra-config=apiserver.runtime-config=admissionregistration.k8s.io/v1alpha1 --feature-gates='ValidatingAdmissionPolicy=true'
minikube start --kubernetes-version=v1.28.0-rc.1 --extra-config=apiserver.runtime-config=admissionregistration.k8s.io/v1beta1 --feature-gates='ValidatingAdmissionPolicy=true'
```

## Overview
Expand Down
8 changes: 8 additions & 0 deletions scripts/cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Cluster
name: test-cluster
apiVersion: kind.x-k8s.io/v1alpha4
runtimeConfig:
"admissionregistration.k8s.io/v1beta1": true
nodes:
- role: control-plane
image: kindest/node:v1.28.0

0 comments on commit 0c10598

Please sign in to comment.