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(doc): helm list go sdk doc #1499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ithrael
Copy link

@Ithrael Ithrael commented Aug 28, 2023

related issue: helm/helm#12269

helm sdk simple-example
This document is incorrect, according to this document, helm sdk can't list all charts. I would like to make a modification in the helm project so that helm sdk does not need to invoke client.SetStateMask(), but it is very difficult. Because helm sdk can filter through client.All=True, and can also filter through client.StateMask=129. I can't meet these two situations with very small modifications. In addition, I noticed that in the source code of helm, after setting client.All=True, it also needs to invoke client.SetStateMask(). https://github.com/helm/helm/blob/main/cmd/helm/list.go#L237 So, I decided to modify the documentation and add client.SetStateMask() to the examples provided in the helm sdk documentation.

Signed-off-by: ithrael <wh01096045@gmail.com>
@Ithrael
Copy link
Author

Ithrael commented Aug 29, 2023

@gjenkins8 @yxxhero please review the PR

@Ithrael
Copy link
Author

Ithrael commented Sep 13, 2023

@BigStupideer @angellk please review the PR, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant