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

add cloud-provider to k8s_get #784

Closed
wants to merge 1 commit into from
Closed

Conversation

eaudetcobello
Copy link
Contributor

@eaudetcobello eaudetcobello commented Nov 8, 2024

Depends on: canonical/k8s-snap-api#17

cloud-provider config was not available through k8s get cloud-provider

@eaudetcobello eaudetcobello requested a review from a team as a code owner November 8, 2024 22:08
Comment on lines +118 to +119
case "cloud-provider":
output = config.GetCloudProvider()
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if it's unset? I guess that's okay -- it doesn't panic by de referencing nil or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

util.Deref(c.CloudProvider) in the k8s-snap-api dereferences in a safe way. If it's not set, it won't print anything.

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.

2 participants