-
Notifications
You must be signed in to change notification settings - Fork 305
Description
What happened:
We noticed that CDI copies labels from the original PVC to the prime PVC, which is a temporary object created during the import process. Could you clarify the reasoning behind this behavior?
What you expected to happen:
Prime PVC should not inherit user-defined labels unless necessary for CDI operations.
How to reproduce it (as minimally and precisely as possible):
Steps to reproduce the behavior.
Create a PVC with custom labels (e.g., app=myvm).
Trigger an import using CDI (e.g., DataVolume or VolumeImportSource with source: http://quay.io/nirsof/cirros:0.6.2-1).
Observe that the prime PVC created during the process inherits the labels from the original PVC.
Additional context:
Prime PVC inherits all labels from the original PVC.
- Is this intentional and required for CDI functionality?
- Could this lead to unintended side effects if external controllers interpret these labels?
- Would it make sense to avoid copying user-defined labels?
Environment:
- CDI version (use
kubectl get deployments cdi-deployment -o yaml):image: quay.io/kubevirt/cdi-controller:v1.63.0 - Kubernetes version (use
kubectl version):
# kubectl version
Client Version: v1.34.1
Kustomize Version: v5.7.1
Server Version: v1.34.0
- DV specification: N/A
- Cloud provider or hardware configuration: N/A
- OS (e.g. from /etc/os-release): RHEL9.6
- Kernel (e.g.
uname -a): N/A - Install tools: N/A
- Others: N/A
CC: nirsof@gmail.com