Commit Graph

43 Commits

Author SHA1 Message Date
Adam Reese 1779ad5302
ref(cmd/helm): remove init command
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-26 10:21:52 -07:00
Adam Reese b6fdd8783b
feat(cmd/helm): remove need for helm init command
* allow repository config via cli
* make `helm repo add` create repo config file if it does not exist
* squash a ton of bugs

Signed-off-by: Adam Reese <adam@reese.io>
2019-08-22 23:31:50 -07:00
Matthew Fisher c728611e5a
feat(cli): support XDG base directory specification
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-02 13:15:03 -07:00
Oleg Sidorov ec440d446d Replaced ghodss/yaml with sigs.k8s.io/yaml
This commit replaces usage of github.com/ghodss/yaml with it's forked
version maintained by SIG community. The replaced library has
low-to-none support activity unlike the latter. We believe the new
Helm branch could benefit from using the community-supported version on
a long-term run as yaml parser is a key component of Helm chart rendering
engine.

This commit locks sigs.k8s.io/yaml dependency version on 1.1.0 which
is backwards compatible with ghodss/yaml 1.0.0.

This change also resolves the outdated dependency version lock for
ghodss/yaml (currently 1.0.0) and makes it possible to port changes from
https://github.com/helm/helm/pull/6010 to dev-v3.

Signed-off-by: Oleg Sidorov <oleg.sidorov@booking.com>
2019-07-12 16:52:15 +02:00
Adam Reese 895e9192d4
feat(*): use vanity import helm.sh/helm
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-13 13:43:47 -07:00
roc 212d326a34 ref(pkg/repo): rename RepoFile to File
To resolve the linter warning: name start with package name.

Signed-off-by: Roc <roc@imroc.io>
2018-11-20 19:58:35 +08:00
Adam Reese 4f26b658d8
change copyright to "Copyright The Helm Authors" 2018-08-24 12:03:55 -07:00
Adam Reese b1128abf4f
ref(*): s/tiller/helm/ 2018-05-10 09:41:31 -07:00
Adam Reese 726e3c41be
feat(*): print stacktrace on error with debug enabled 2018-05-10 09:34:41 -07:00
adshmh 1a55161a53 Fix several golint warnings (#3756)
* fix(helm): fix golint warning due to ApiVersionV1 constant name

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm): fix golint warning due to ResolveChartVersionAndGetRepo comment

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm): fix golint warnings on HttpGetter type and SetCredentials method missing a comment

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm):fix golint warning due to comment on FindChartInAuthRepoURL function

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm): fix golint warning due to RepoFile type name

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>

* fix(helm): fix golint warning due to ParseString comment

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-03-27 13:06:04 -07:00
Mitchel Humpherys 7417f09293 feat(repo): Improve error message for missing repositories.yaml
New users to helm don't always run `helm init` (e.g. if their cluster
already has helm installed).  The user's initial interaction with any of
helm's repository commands (e.g. `helm repo list`) will then be an error
message due to a missing repositories.yaml in their local config.

Give the user a little hint about how to fix the error without them having
to hunt through the man/help pages.
2017-12-13 08:37:48 -08:00
Matthew Fisher 9d1db2851e Revert "Write repo file using atomicfile"
This reverts commit 965cb7fd1c.
2017-09-26 14:57:17 -07:00
Raphael Badin 965cb7fd1c Write repo file using atomicfile
This prevents clients from seeing half-written files because
on POSIX systems renaming a file is an atomic operation.

Drive-by: Add test for repo file permission.
2017-05-16 23:25:32 +02:00
Anton Galitsyn f8a261f277 use old naming 2017-01-09 18:25:37 +07:00
Anton Galitsyn 89ab7555db Get http.Client from referenced repository 2016-12-28 22:59:21 +07:00
Anton Galitsyn b0e7a43b5b Construct http.Client for repositories from config, add TLS support 2016-12-28 22:59:11 +07:00
Matt Butcher c616bb5a98
fix(helm): replace repo entry instead of duplicating
Closes #1522
2016-11-14 11:46:17 -07:00
Matt Butcher fcdb79da16 Merge pull request #1402 from technosophos/fix/1328-generate-index
fix(helm): make 'helm repo index' generate the right index
2016-10-18 14:50:41 -06:00
Matt Butcher 911d3224c5 fix(helm): make 'helm repo index' generate the right index
This prevents the index command from recursing through directories.
Behind the scenes, it swaps out the repository logic for the index file
logic.

Closes #1328
2016-10-18 14:19:03 -06:00
Nic Roland 16436b565d feat(helm): update repo by default, added `--no-update` flag 2016-10-14 14:20:56 +01:00
Matt Butcher 25c7e6dc21 fix(helm): allow entries to be merged into index
Between Alpha.4 and Alpha.5 there was a change in the indexing logic.
This prevent indices from being appended to (because those index files
were often broken). This change allows the user to explicitly merge an
existing index and a generated index.

Closes #1334
2016-10-13 16:01:51 -06:00
Matt Butcher 4f09b05613 feat(helm): implement new index format
This implements a new index file format for repository indices. It also
implements a new format for requirements.yaml.

Breaking change: This will break all previous versions of Helm, and will
impact helm search, repo, serve, and fetch functions.

Closes #1197
2016-10-04 13:54:14 -06:00
Matt Butcher 593718d749 feat(helm): add 'helm dependency' commands
This also refactors significant portions of the CLI, moving much of the
shared code into a library.

Also in this release, a testing repository server has been added.
2016-09-23 16:24:22 -06:00
Brandon Philips 440e548901 feat(repo): use OCI style digest identifiers
Use the same format as the Open Container Initiative for a digest
string. https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests-and-verification

Fixes #1166
2016-09-14 20:20:12 -07:00
Yusuke Kuoka c0de9b4ada Check for the tgz extension while collecting chart paths 2016-08-04 09:45:12 +09:00
Michelle Noorali 80a7339e2f Merge pull request #947 from ngtuna/master
Fix #872: index function should handle deleted charts correctly
2016-07-18 14:38:48 -06:00
ngtuna a2d6817b9b go idiom typo 2016-07-17 00:54:25 +07:00
ngtuna 03e59fd6c0 bypass gofmt 2016-07-12 14:09:11 +07:00
Adam Reese a14e76a65c chore(*): add canonical import path annotation
https://golang.org/doc/go1.4#canonicalimports
2016-07-11 22:59:55 -06:00
ngtuna bfce033cc0 fix(helm): helm repo index should not delete entry, instead it should update removed=true 2016-07-12 11:30:06 +07:00
Adnan Abdulhussein f273510c97 fix(lint): fix golint errors 2016-07-01 15:20:13 -07:00
Matt Butcher e757b24aed fix(*): add license header 2016-06-22 12:28:45 -06:00
Matt Butcher 5a2174231b fix(helm): fix repo package to use chartutil 2016-06-06 21:40:20 -06:00
Adam Reese 818c878700 chore(*): use k8s.io as the import path 2016-06-06 17:17:04 -07:00
Miguel Martinez a0c1125a39 fix(repo) Malformed URL 2016-06-06 11:24:46 -07:00
Adam Reese a19875adcc fix(style): cleanup coding style on error returns 2016-05-25 00:02:52 -07:00
Michelle Noorali b4844383aa ref(helm): digest -> checksum in index file 2016-05-20 17:36:23 -04:00
Michelle Noorali 447ce5a2dd ref(helm): fix chart url in index file 2016-05-20 17:30:07 -04:00
Michelle Noorali 2234dc8927 feat(helm): handle update case on index function 2016-05-20 14:34:03 -04:00
Michelle Noorali 7bd739c27e feat(helm): populate Digest & Created in index func 2016-05-20 14:34:03 -04:00
Michelle Noorali 7e2964c549 feat(helm): add chart url to index file entries 2016-05-20 14:34:03 -04:00
Michelle Noorali 4bb36c89ab feat(helm): generate index file for repository 2016-05-20 14:34:03 -04:00
Michelle Noorali e250328e22 feat(helm): add helm repo add command 2016-04-27 15:25:53 -06:00