celo-org / image-annotator-webhook

Kubernetes mutation webhook to expose container images as annotations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image-annotator-webhook

Chart

Chart available at celo-org/charts

How to test locally

Prerequisites

Steps

  1. Create a local Kubernetes cluster using Kind
make cluster
  1. Deploy the image-annotator-webhook to the cluster
make push
  1. Deploy webhook
make deploy-webhook

And wait some seconds for the webhook to be ready (also you can run make push-deploy to do both steps at once)

  1. Deploy the manifests for testing (add any other manifests you want to test)
make deploy-testing
  1. Check the logs
make logs-webhok
  1. Confim that the webhook is working
kubectl get <pod/deployment/statefulset/job/cronjob> -o yaml ...
  1. Delete the cluster
make delete-cluster

About

Kubernetes mutation webhook to expose container images as annotations

License:Apache License 2.0


Languages

Language:Go 88.9%Language:Makefile 8.8%Language:Dockerfile 2.2%