Skip to content

Commit

Permalink
Remove kind config (#936)
Browse files Browse the repository at this point in the history
We no longer need to enable `ValidatingAdmissionPolicy` since
it is enabled by default in K8s 1.30.
This means we can delete `kind-config.yaml`.

Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola authored Jun 14, 2024
1 parent 126ddc4 commit 27602ad
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ kind-redeploy: generate docker-build kind-load kind-deploy #EXHELP Redeploy newl
.PHONY: kind-cluster
kind-cluster: $(KIND) #EXHELP Standup a kind cluster.
-$(KIND) delete cluster --name $(KIND_CLUSTER_NAME)
# kind-config.yaml can be deleted after upgrading to Kubernetes 1.30
$(KIND) create cluster --name $(KIND_CLUSTER_NAME) --image $(KIND_CLUSTER_IMAGE) --config ./kind-config.yaml
$(KIND) create cluster --name $(KIND_CLUSTER_NAME) --image $(KIND_CLUSTER_IMAGE)
$(KIND) export kubeconfig --name $(KIND_CLUSTER_NAME)

.PHONY: kind-clean
Expand Down
4 changes: 0 additions & 4 deletions dev/podman/kind-with-registry-podman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ fi
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
featureGates:
"ValidatingAdmissionPolicy": true
runtimeConfig:
"admissionregistration.k8s.io/v1beta1": true
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry]
Expand Down
8 changes: 0 additions & 8 deletions kind-config.yaml

This file was deleted.

0 comments on commit 27602ad

Please sign in to comment.