Skip to content

nais/mutilator

Repository files navigation

Mutilator

A mutating admission controller for Kubernetes that will enforce certain fields in resources belonging to the Aiven Operator.

Things to mutate

  • projectVpcId
  • terminationProtection: true
  • cloudName: google-{{ .Values.location }}
  • tags: (environment, tenant, team)

Building Docker image w/Earthly

Mutilator can use earthly for building. If you don't have earthly installed, you can use the wrapper at ./earthlyw, which downloads the latest version for you.

  • earthly ls to list targets
  • earthly +docker to build primary target

Building Docker Image w/Nix

  1. Use nix build .#docker to build docker image
  2. Load docker image into Docker Daemon w/docker load < result