Be sure to check out solutions to common issues.
If the KRM function fails to look up the image digest, you can increase the
logging verbosity by using the DEBUG
environment variable:
export DEBUG=true
kpt fn [...]
The webhook fails open because the
failurePolicy
on the MutatingWebhookConfiguration
is set to Ignore
. This means that if
there is an error calling the webhook, the API server allows the request to
continue.
If the webhook fails to look up the image digest, you can enable development mode logging and increase the logging verbosity.
-
Set the
DEBUG
environment variable totrue
in the webhook Deployment manifest and redeploy the webhook:kpt fn eval manifests --image gcr.io/kpt-fn/apply-setters:v0.2 -- debug=true kpt live apply manifests
-
Tail the webhook logs:
kubectl logs --follow deployment/digester-controller-manager \ --namespace digester-system --all-containers=true