-
Notifications
You must be signed in to change notification settings - Fork 70
Use helm to pull helm charts #360
Use helm to pull helm charts #360
Conversation
@@ -0,0 +1,19 @@ | |||
# nginx helm chart rendering example, using k8s.io/helm/docs/examples/nginx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably doesn't matter, but this comment is off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix it
@@ -0,0 +1,2 @@ | |||
this exists to create the charts directory | |||
it should be removed when that bug is resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this. Can this explain better or link to a full description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It really is a bug - #373
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I'm editing the text to include a link to the github issue)
pkg/api/asset.go
Outdated
@@ -79,7 +79,9 @@ type HelmAsset struct { | |||
Values map[string]interface{} `json:"values" yaml:"values" hcl:"values"` | |||
HelmOpts []string `json:"helm_opts" yaml:"helm_opts" hcl:"helm_opts"` | |||
// GitHub references a github asset from which to pull the chart | |||
GitHub *GitHubAsset `json:"github" yaml:"github" hcl:"github"` | |||
GitHub *GitHubAsset `json:"github,omitempty" yaml:"github,omitempty" hcl:"github,omitempty"` | |||
// HelmRef pulls a chart as Helm would |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
helm fetch
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds like a good name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple tiny things that can probably be ignored. Overall looks great
What I Did
Added a way for you to pull helm charts the same way that
helm fetch
would. Also relates to #292 (by importing a number of helm files rather than forking)How I Did it
Duplicated the
helm init
andhelm fetch
command line functionality as exported functions and used those within the helm asset.How to verify it
Look at the
helm-fetch
integration test.Description for the Changelog
Added
helm_fetch
to thehelm
asset, which fetches charts in the same way thehelm fetch
command would.Picture of a Boat (not required but encouraged)