Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading documentation regarding ConfigMap/Secret volumes with VirtualMachinePools #848

Open
ravenix opened this issue Oct 26, 2024 · 1 comment
Labels

Comments

@ravenix
Copy link

ravenix commented Oct 26, 2024

What happened:
Documentation states there would be two flags named "AppendPostfixToSecretReferences and AppendPostfixToConfigMapReferences" which would control adding a suffix to mounted configuration, such that virtual machines in the VMPool would be able to receive individual configuration. Actually, there are no such flags in the VMPool Spec, see also: https://github.com/kubevirt/api/blob/main/pool/v1alpha1/types.go

In the original design proposal of the VMPool resource such flag was acknowledged, but actually it was never implemented, nevertheless it found its way into the documentation.

What you expected to happen:
I expected to find a possibility to load individually rendered cloud-config into my VMPool VMs.

How to reproduce it (as minimally and precisely as possible):
There you go: https://kubevirt.io/user-guide/user_workloads/pool/#using-unique-cloudinit-and-configmap-volumes-with-virtualmachinepools

Additional context:
Those flags are not really optional; VMPool is more or less useless without it, because there is no sane way to load individual configuration in the according VMs otherwise. I spent half the day trying to solve this, but even the Hook system does not provide a solution here, because PreCloudInitIso is triggered before OnDefineDomain, so e.g. you can't really map your network devices to the actually assigned devices in certain configurations.

Environment:

  • KubeVirt version (use virtctl version): all - since the beginning of the VMPool docs in March 2023
  • Kubernetes version (use kubectl version): N/A
  • VM or VMI specifications: N/A
  • Cloud provider or hardware configuration: N/A
  • OS (e.g. from /etc/os-release): N/A
  • Kernel (e.g. uname -a): N/A
  • Install tools: N/A
  • Others: N/A
@aburdenthehand
Copy link
Member

/cc @0xFelix Is this something you can help with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants