Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Use helm to pull helm charts #360

Merged
merged 5 commits into from
Aug 16, 2018
Merged

Use helm to pull helm charts #360

merged 5 commits into from
Aug 16, 2018

Conversation

laverya
Copy link
Member

@laverya laverya commented Aug 16, 2018

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 and helm 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 the helm asset, which fetches charts in the same way the helm fetch command would.

Picture of a Boat (not required but encouraged)

image

@laverya laverya requested review from dexhorthy and ebramanti August 16, 2018 02:12
@@ -0,0 +1,19 @@
# nginx helm chart rendering example, using k8s.io/helm/docs/examples/nginx
Copy link
Member

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

Copy link
Member Author

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
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

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

helm fetch?

Copy link
Member Author

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

Copy link
Member

@dexhorthy dexhorthy left a 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

@laverya laverya merged commit af081d2 into replicatedhq:master Aug 16, 2018
@laverya laverya deleted the use-helm-to-pull-helm-charts branch August 16, 2018 17:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants