Open fraenkel opened 2 weeks ago
The helm chart helper nvidia-device-plugin.hasConfigMap attempts to return true/false but an include will always return a string.
nvidia-device-plugin.hasConfigMap
include
Some places handled this properly by comparing to true while other places used the string as a guard.
true
https://github.com/NVIDIA/k8s-device-plugin/blob/main/deployments/helm/nvidia-device-plugin/templates/role.yml#L1 https://github.com/NVIDIA/k8s-device-plugin/blob/main/deployments/helm/nvidia-device-plugin/templates/service-account.yml#L1 https://github.com/NVIDIA/k8s-device-plugin/blob/main/deployments/helm/nvidia-device-plugin/templates/role-binding.yml#L1
2. Issue or feature description
The helm chart helper
nvidia-device-plugin.hasConfigMap
attempts to return true/false but aninclude
will always return a string.Some places handled this properly by comparing to
true
while other places used the string as a guard.3. Information to attach
https://github.com/NVIDIA/k8s-device-plugin/blob/main/deployments/helm/nvidia-device-plugin/templates/role.yml#L1 https://github.com/NVIDIA/k8s-device-plugin/blob/main/deployments/helm/nvidia-device-plugin/templates/service-account.yml#L1 https://github.com/NVIDIA/k8s-device-plugin/blob/main/deployments/helm/nvidia-device-plugin/templates/role-binding.yml#L1