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

Fix the --set-as-default-runtime deprecation warning #270

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

Damowerko
Copy link
Contributor

@Damowerko Damowerko commented Mar 21, 2024

Fixes #269.

I believe the previously intended behavior was to check if the two flags are different, but the default value of --set-as-default-runtime was None, so the if statement on line 210 evaluated to True by default. Changed it the warning is written whenever the old flag is set to any value, regardless of the new flag.

Thank you for making MicroK8s better

Please reference the issue this PR is fixing, or provide a description of the problem addressed.

Also verify you have:

Copy link
Contributor

@neoaggelos neoaggelos left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot @Damowerko!

@berkayoz
Copy link
Member

@neoaggelos This should fix #272 as well since the default value for set-as-default-runtime seems to be False which overrides the default True of gpu-operator-set-as-default-runtime flag within this if clause.

@neoaggelos
Copy link
Contributor

Thank you @Damowerko, could you also make sure to create a Launchpad account and sign the CLA? Then we can merge this PR.

@beliaev-maksim
Copy link
Member

You don't need a Launchpad account to sign CLA

@louiseschmidtgen louiseschmidtgen merged commit d7640bb into canonical:main Apr 26, 2024
4 of 8 checks passed
louiseschmidtgen pushed a commit that referenced this pull request Apr 26, 2024
louiseschmidtgen added a commit that referenced this pull request Apr 26, 2024
@Damowerko
Copy link
Contributor Author

I hope the CLA wasn't a problem. I signed it but for some reason the tests weren't passing.

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.

nvidia addon deprecation warning with default arguments
5 participants