Start playground with kind.version set to 1.29.12 under the Playground Parameters section above.
Once the playground fully starts, you control the deployment of the Gatekeeper environement by using make targets under the home directory of the playground.
Running Make Targets
Ensure you are in the home directory of the playground and run the following make targets in this order:
Deploy Gatekeeper version 3.15.1.
make deploy-gk-3-15-1
Apply all Gatekeeper policies (mutation and validation).
make apply-policy
Apply all example resources.
make apply-example-resources
Review the running gatekeeper instances and their configured operations.
The gatekeeper mutation webhook is configured with only mutation-webhook operation.
The gatekeeper validating webhook is configured with only webhook operation.
The gatekeeper audit webhook is configured with audit, status, mutation-status operations.
Start the playground with kind.version set to 1.32.3 under the Playground Parameters section above.
Once the playground fully starts, you control the deployment of the Gatekeeper environement by using make targets under the home directory of the playground.
Running Make Targets
Ensure you are in the home directory of the playground and run the following make targets in this order:
Deploy Gatekeeper version 3.18.3:
make deploy-gk-3-18-3
The gatekeeper-mutating-controller-manager will fail to start due to Gatekeeper issue #3928.
A potential workaround is to add the operation=webhook to the gatekeeper-mutating-controller-manager deployment manifest.
Update the deployment manifest by running the following command:
sed -i '/- --operation=mutation-webhook/ a\ - --operation=webhook' deployment/mutating-gatekeeper-3-18-3.yaml
Re-run the make deploy-gk-3-18-3 target command
Apply all Gatekeeper policies (mutation and validation):
make apply-policy
Apply all example resources:
make apply-example-resources
Review the running gatekeeper instances and their configured operations.
The gatekeeper mutation webhook is configured with the potential workaround of mutation-webhook and webhook operations.
The gatekeeper validating webhook is configured with only webhook operation.
The gatekeeper audit webhook is configured with audit, status, mutation-status, generate operations.