Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.21 KB

File metadata and controls

40 lines (31 loc) · 1.21 KB

Development

Prerequisites

Development tools like ko, golangci-lint, and setup-envtest are managed automatically via the Go toolchain (go tool).

Project Structure

  • 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 using envtest and Ginkgo.
  • hack: Scripts and tooling configuration.

Makefile Targets

To see all available targets and their descriptions, run make help.

Local Deployment (kind)

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-dev

Testing Mutation

After deploying the webhook you can check if it works:

  1. Apply the sample resources:
    kubectl apply -f examples/test-identity.yaml
  2. Verify the mutation on the Pod:
    kubectl get pod test-pod -o yaml