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

feat(cli): Charttool #367

Merged
merged 5 commits into from
Sep 1, 2020
Merged

feat(cli): Charttool #367

merged 5 commits into from
Sep 1, 2020

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Sep 1, 2020

Adds a new tk tool charts command, which enables declarative
management of vendored Helm charts.

As proposed by
https://docs.google.com/document/d/171F0cm_VliMStmHe6oy5pAbuXihr-7Cb5yD-vmwqpP8,
Helm Charts should be vendored by the individual library that consumes
them.

To simplify this process, tk tool charts provides a declarative config
file to automate helm pull.

The rest of above document will be implemented in subsequent pull requests

Renames the helmraiser package to helm, because its scope is going to be
extended in the following.

It will not only cover helmraiser functionality going on, but also house
declarative chart management code
Adds a new `tk tool charts` command, which enables declarative
management of vendored Helm charts.

As proposed by
https://docs.google.com/document/d/171F0cm_VliMStmHe6oy5pAbuXihr-7Cb5yD-vmwqpP8,
Helm Charts should be vendored by the individual library that consumes
them.

To simplify this process, `tk tool charts` provides a declarative config
file to automate `helm pull`.

The rest of above document will be implemented in subsequent pull requests
@sh0rez sh0rez added kind/feature Something new should be added component/cli Command Line Interface labels Sep 1, 2020
@sh0rez sh0rez marked this pull request as ready for review September 1, 2020 15:12
return err
}

fmt.Print(string(data))
Copy link
Contributor

Choose a reason for hiding this comment

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

could we colourise this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not easily. The only yaml highlighter library I am aware of (alecthomas/chroma) doesn't handle yaml well, especially not on light schemed terminals.

We actually removed it from the project for that exact reason some time ago (were coloring diff using it)

We could look into writing a custom yaml highlighter some day

pkg/helm/charts.go Outdated Show resolved Hide resolved
pkg/helm/charts.go Show resolved Hide resolved
Version: Version,
Repositories: []Repo{{
Name: "stable",
URL: "https://kubernetes-charts.storage.googleapis.com",
Copy link
Contributor

Choose a reason for hiding this comment

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

do we want this? Being deprecated soon?

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently it's the primary source of truth. Soon is not yet deprecated :)

We will remove as soon as deprecated

@sh0rez sh0rez merged commit 735375d into master Sep 1, 2020
@sh0rez sh0rez deleted the charttool branch September 1, 2020 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cli Command Line Interface kind/feature Something new should be added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants