unit libvirt-metal should be dependent on unit ingress-nginx
Summary
During a libvirt-metal install, a race condition occured.
Installation of libvirt-metal HelmRelease sometimes fails when ingress-nginx controller is not yet ready.
Type Reason Age From Message
---- ------ ---- ---- -------
Normal HelmChartCreated 16m helm-controller Created HelmChart/sylva-system/sylva-system-libvirt-metal with SourceRef 'GitRepository/sylva-system/libvirt-metal'
Warning InstallFailed 16m helm-controller Helm install failed for release sylva-system/libvirt-metal with chart libvirt-metal@0.1.0+9fd6bd889b95: 1 error occurred:
* Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": failed to call webhook: Post "https://rke2-ingress-nginx-controller-admission.kube-system.svc:443/networking/v1/ingresses?timeout=10s": dial tcp 100.96.1.211:443: connect: connection refused
During some deployment, ingress-nginx controller pod can take up to 3 minutes to start, in the meanwhile the libvirt-metal install fails
Possible fixes
add a dependency on ingress-nginx unit