youtube image
From YouTube: Developer Experience Office Hours: Kubernetes Admission Webhooks

Description

Kubernetes Admission Webhooks are under appreciated or not well understood. The ability to mutate requests with a simple HTTP webhook is an easy way to extend Kubernetes. In this session, Carlos Santana from IBM talks about the Kubernetes Admission Webhook he built for OpenShift to deal with a large set of Argo CD repo URLs.

The problem this webhooks solves is that when you are working with a parent Argo CD Application that deploys a child Argo CD Application, you might need to change something in the child Argo CD Application using a forked repo. You can't edit the child Argo CD Application CR on the cluster because the parent App will revert your edit back to what's in git.

You can avoid this by adding an ignoreDifference in the Argo CD config but when you are dealing with multiple nested Argo CD Applications; the management becomes hard. First, to find the correct Argo CD corresponding to your git repo, this webhook allows you to create a simple mapping (configMap) to make sure that any ArgoCD Application points to the appropriate forked repos. This avoids the forked repos being polluted with your git URLs and keeping the upstream URLs.

Twitch: https://red.ht/twitch