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

Fixing allPossibleMigStrategiesAreNone helm chart helper. #675

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

jakubkrzykowski
Copy link
Contributor

configMapName is the empty string "" by default and it breaks allPossibleMigStrategiesAreNone function with default values.

See #670 for details.

Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, these were pendings.

@@ -130,7 +130,7 @@ Check if migStrategy (from all possible configurations) is "none"
{{- if ne .Values.migStrategy "none" -}}
{{- $result = false -}}
{{- end -}}
{{- else if ne (include "nvidia-device-plugin.configMapName" .) "true" -}}
{{- else if ne (include "nvidia-device-plugin.configMapName" .) "" -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Would it not be better to use nvidia-device-plugin.hasConfigMap here?

(Looking at #689 I would assume that that may also need to be updated in some way though).

jakubkrzykowski and others added 2 commits June 4, 2024 14:04
Signed-off-by: Jakub Krzykowski <jakub@krzykowski.it>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the fix-all-mig-strategies-are-none branch from 881e398 to 8e36e36 Compare June 4, 2024 12:05
Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jakubkrzykowski. These look good now.

I rebased and incorporated the changes from #749

@elezar elezar requested a review from tariq1890 June 4, 2024 12:06
@elezar elezar merged commit 974bf79 into NVIDIA:main Jun 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants