-
Notifications
You must be signed in to change notification settings - Fork 291
Open
Labels
Description
What happened:
When we try to install the CDI on our AKS, the cdi-operator constantly updates the webhooks (about 10 times a second).
Sometimes it switches the ordering of the match expressions:
What you expected to happen:
Webhooks shoudn't get updated over and over again.
How to reproduce it (as minimally and precisely as possible):
We install the CDI ...
CDI_VERSION="1.62.0"
kubectl apply -f "https://github.com/kubevirt/containerized-data-importer/releases/download/v${CDI_VERSION}/cdi-operator.yaml"
kubectl apply -f "https://github.com/kubevirt/containerized-data-importer/releases/download/v${CDI_VERSION}/cdi-cr.yaml"
... and if we view the logs of the cdi-operator ...
OPERATOR_POD_NAME=$(kubectl get pods -n cdi --no-headers -o custom-columns=":metadata.name" | grep '^cdi-operator' | head -n 1)
kubectl logs -n cdi -f $OPERATOR_POD_NAME
... the following lines repeat over and over again:
{"level":"debug","ts":"2025-07-07T13:09:20Z","logger":"events","msg":"Successfully updated resource *v1.ValidatingWebhookConfiguration cdi-api-datavolume-validate","type":"Normal","object":{"kind":"CDI","name":"cdi","uid":"e3c61a64-19c5-4efb-b15e-293d4372d18c","apiVersion":"cdi.kubevirt.io/v1beta1","resourceVersion":"1130627"},"reason":"UpdateResourceSuccess"}
{"level":"info","ts":"2025-07-07T13:09:20Z","logger":"cdi-operator","msg":"DIFF","Request.Namespace":"","Request.Name":"cdi","obj":{"apiVersion":"admissionregistration.k8s.io/v1","kind":"MutatingWebhookConfiguration","name":"cdi-api-datavolume-mutate"},"patch":"[{\"op\":\"remove\",\"path\":\"/webhooks/0/namespaceSelector/matchExpressions\"}]"}
{"level":"info","ts":"2025-07-07T13:09:20Z","logger":"cdi-operator","msg":"Resource updated","Request.Namespace":"","Request.Name":"cdi","namespace":"","name":"cdi-api-datavolume-mutate","type":"*v1.MutatingWebhookConfiguration"}
We only have this issue on AKS. We can't reproduce this behavior on a local machine.
Additional context:
N/A
Environment:
- CDI version (use
kubectl get deployments cdi-deployment -o yaml
): v1.62.0 - Kubernetes version (use
kubectl version
): v1.32.4 - DV specification: N/A
- Cloud provider or hardware configuration: Azure, AKS
- OS (e.g. from /etc/os-release): N/A
- Kernel (e.g.
uname -a
): N/A - Install tools: N/A
- Others: N/A