github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/caasadmission/doc.go (about) 1 // Copyright 2023 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 // Package caasadmission defines the caasadmission worker. This worker is responsible 5 // for establishing a Kubernetes mutating admission webhook 6 // (https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/) 7 // so that Juju can process Kubernetes resource object changes. We currently use 8 // these mutating admission webhooks to watch for resources being created by 9 // charms in the Kubernetes cluster. Every time we detect such a resource, we 10 // annotate the new or updated Kubernetes object with a label indicating which 11 // Juju application was responsible for creating the resource. When the 12 // application is later removed, we use these labels to find associated 13 // resources that need to be removed. 14 package caasadmission