Development tools like ko, golangci-lint, and setup-envtest are managed automatically via the Go toolchain (go tool).
cmd/stackit-pod-identity-webhook: Entry point for the webhook manager.pkg/webhook: Core mutation logic and admission handler.charts/stackit-pod-identity-webhook: Helm chart for deployment.test/integration: Integration tests usingenvtestand Ginkgo.hack: Scripts and tooling configuration.
To see all available targets and their descriptions, run make help.
The easiest way to deploy locally is using the provided Makefile targets, which automatically manage the cluster and install cert-manager and the webhook:
make kind-up
make skaffold-devAfter deploying the webhook you can check if it works:
- Apply the sample resources:
kubectl apply -f examples/test-identity.yaml
- Verify the mutation on the Pod:
kubectl get pod test-pod -o yaml