Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating documentation to be in up-to-date with 1.28 #46

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

slashben
Copy link
Collaborator

No description provided.

Copy link

@kranurag7 kranurag7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slashben How about adding config for kind users as well?

cat <<EOF > cluster.yaml
kind: Cluster
name: test-cluster
apiVersion: kind.x-k8s.io/v1alpha4
featureGates:
  "ValidatingAdmissionPolicy": true
runtimeConfig:
  "admissionregistration.k8s.io/v1alpha1": true
nodes:
- role: control-plane
  image: kindest/node:v1.27.3 # change this if required
EOF
kind create cluster --config=cluster.yaml

@slashben
Copy link
Collaborator Author

@kranurag7 do you have an example for 1.28?

@kranurag7
Copy link

Yes, for 1.28 I changed the version of the image and updated v1beta1 in admissionregistration api. Beta features are enabled to default so removed featureGates field from the above manifest.

cat <<EOF > cluster.yaml
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
EOF

kind create cluster --config=cluster.yaml

@slashben
Copy link
Collaborator Author

Yes, for 1.28 I changed the version of the image and updated v1beta1 in admissionregistration api. Beta features are enabled to default so removed featureGates field from the above manifest.

cat <<EOF > cluster.yaml
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
EOF

kind create cluster --config=cluster.yaml

Sorry for the very late reply, added it, thanks!!

@slashben slashben merged commit 0c10598 into kubescape:main Sep 19, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants