Commit graph

1203 commits

Author SHA1 Message Date
Adam Reese
c19253d7cd
Revert "fix(cmd/helm): user friendly error message when repos are not configured"
This reverts commit c4b76f27de.
2019-08-28 09:51:59 -07:00
Adam Reese
c4b76f27de
fix(cmd/helm): user friendly error message when repos are not configured
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-28 09:46:12 -07:00
Marc Khouzam
9df067d9d9 fix(cmd/helm): Remove mention of init from help (#6298)
Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
2019-08-27 22:04:19 +01:00
Akash Shinde
8f3fd753ad Fix: set config dir in repo update cmd (#6292)
Signed-off-by: akashshinde <akashshinde159@gmail.com>
2019-08-27 11:55:44 +01:00
Adam Reese
f76b5f21ad
Merge pull request #6272 from adamreese/feat/initless
feat(cmd/helm): remove need for helm init command
2019-08-26 10:26:11 -07:00
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
Josh Dolitsky
af06037d23
chore(registry): upgrade to oras v0.7.0 (#6285)
Also:
* add --insecure flag to "registry login"
* fix bug parsing correct tag when port number present

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-08-26 11:29:01 -05: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
Matt Farina
fba311ba23
Merge pull request #6243 from technosophos/feat/5871-crds-directory
feat: Add support for a crds/ directory
2019-08-20 11:38:28 -04:00
Taylor Thomas
7466c4ee3b
Merge pull request #6241 from waveywaves/fix/issue-6079
Clone the vals map for every path to avoid mutation
2019-08-20 09:31:34 -06:00
Adam Reese
b2d5e41fc7
ref(*): remove dead code
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-19 10:22:27 -07:00
Vibhav Bobade
9ab927f0bb Test for Linting multiple charts with the same vals instance
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-19 04:25:14 +05:30
Marc Khouzam
bd4ffb5514 Remove mention of 'helm update'
'helm update' is removed in v3.

Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
2019-08-17 20:24:08 -04:00
Matt Butcher
98426d6ad3
feat: Add support for a crds/ directory
Closes #5871

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-08-16 16:26:55 -06:00
Matt Farina
63b751ded7
Merge pull request #6211 from mattfarina/hub-search
Exposing Helm Hub search via the search command
2019-08-13 14:36:04 -04:00
Matt Farina
8595fe6a35
Updating the search language and flags for consistency
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-08-13 14:15:24 -04:00
Matt Farina
90d2bac80c
Breaking up the search command into multiple commands based on type
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-08-13 13:24:07 -04:00
Matt Farina
d30d3f6218
Exposing Helm Hub search via the search command
This retains the ability to search added repositories

Part of #6186

Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-08-12 17:13:36 -04:00
Adam Reese
29d6853659
Merge pull request #6210 from adamreese/ref/debug
ref(cmd/helm): unify log functions
2019-08-12 13:41:23 -07:00
Josh Dolitsky
6095070817
ref(internal/experimental/registry): pkg refactor (#6205)
No more magic separating the metadata from chart tarball - charts are
pushed to registry as a single tarball layer with Chart.yaml in tact.

No more fragile custom symlink chart storage, now following
the OCI Image Layout Specification for chart filesystem cache.

Also:
- Update to ORAS 0.6.0
- Simplify registry client setup with NewClientWithDefaults()
- Remove needless annotations and constants

Fixes #6068
Fixes #6141

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-08-12 15:17:18 -05:00
Adam Reese
df7553970d
ref(cmd/helm): unify log functions
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-12 13:07:35 -07:00
Matthew Fisher
ac43d9faf2
Merge pull request #6202 from waveywaves/fix/6172
Updated upgrade to give more verbose output
2019-08-12 09:38:40 -07:00
Vibhav Bobade
2ff4e20398 Updated upgrade to give more verbose output
Similar to the install command

Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-12 21:47:01 +05:30
Matthew Fisher
c6d6e456d0
Merge pull request #6054 from jlegrone/test-as-hook
Support defining tests as Job resources
2019-08-12 08:45:53 -07:00
Taylor Thomas
c9c95ea148 ref(*): Moves packages to internal
These packages are generally used only for logic inside of Helm and
can later be re-exported as needed

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-08-09 16:02:33 -06:00
Adam Reese
54ef395557
ref(cmd/helm): remove helm home command
This command only displays documentation.  I think we should remove it
in favor of documentation and add a command later if required.

Signed-off-by: Adam Reese <adam@reese.io>
2019-08-09 13:04:18 -07:00
Jacob LeGrone
2bd94bc552
Merge branch 'dev-v3' of https://github.com/helm/helm into test-as-hook 2019-08-09 14:25:15 -04:00
Josh Dolitsky
63813fe7b9
feat(cmd): use alt dest for chart export (#6193)
The adds the -d flag to "helm chart export" to save chart to different
directory.

Also, allow loading with "helm chart save" from both dir and tarball, as
well as make expirimental error more copy-paste friendly.

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-08-09 11:47:43 -05:00
Matthew Fisher
fe952445bd
feat(cmd): put OCI commands behind a feature gate
This adds a new `gates` package used for interacting with feature gates. It also marks the OCI registry work as experimental, signalling to users that it is not a stable feature of Helm.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-08 15:25:17 -07:00
Jacob LeGrone
4f6814afb5
refactor(hooks): replace hook execution Successful bool with HookPhase
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-08-07 14:54:35 -04:00
Taylor Thomas
e2522f9dfc chore(cmd): Updates --wait flag help
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-08-07 10:16:58 -06:00
Martin Hickey
6bf5ef83c6
Merge pull request #6076 from ian-howell/fix/command-line-parsing
Fix a parsing issue with command line arguments
2019-08-07 12:12:59 +01:00
Jacob LeGrone
08b2d8a2dc
Merge branch 'dev-v3' of https://github.com/helm/helm into test-as-hook 2019-08-06 14:01:00 -04:00
Adam Reese
2aee21730d
Merge pull request #6142 from joelanford/decouple-cli-vals
cmd/*,pkg/*: move ValueOptions and decouple from SDK
2019-08-06 09:53:24 -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
Jacob LeGrone
49987975a8
fix(test): wait for pods and record status
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-08-02 00:16:02 -04:00
Joe Lanford
8a4b70b1e3 review: move ValueOptions to SDK
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
2019-08-01 20:00:47 -04:00
Matthew Fisher
d360705c83
Merge pull request #6133 from bacongobbler/fixup-rollback-argument-logic
fix(rollback): fix revision argument not being handled
2019-08-01 10:14:13 -07:00
Joe Lanford
68ee30b48c cmd/*,pkg/*: move ValueOptions to cmd package and decouple from SDK
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
2019-08-01 11:04:36 -04:00
Jacob LeGrone
5ab42504f1
Merge branch 'dev-v3' of https://github.com/helm/helm into test-as-hook 2019-07-31 18:06:08 -04:00
Jacob LeGrone
caa4240a30
refactor(release): track test executions via Hook type
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-07-31 15:33:56 -04:00
Jacob LeGrone
72127c391c
feat(test): define tests as Jobs and allow arbitrary supporting resources
This updates commands install, upgrade, delete, and test to share the
same implementation for hook execution.

BREAKING CHANGES:
- The `test-failure` hook annotation is removed.

Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-07-31 15:33:56 -04:00
Matthew Fisher
d40ed3b5ad
fix(rollback): fix revision argument not being handled
The revision argument that was mandatory to `helm rollback` was being ignored.

The only way to roll back to an older revision was to run `helm rollback RELEASE <insert anything here> --version REVISION`.

This change respects that argument and removes the `--version` flag, which was redundant.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-07-31 11:45:28 -07:00
Taylor Thomas
dd8222d7f2 Removes clientset method from interface in favor of the configuration struct
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-30 11:51:40 -06:00
Martin Hickey
8e7905c7a8
Merge pull request #6106 from hickeyma/upd-scaffold-api-ver
Feat(*): Update scaffold chart to v2 apiVersion
2019-07-29 20:39:13 +01:00
Martin Hickey
5410e7d346 Fix style conformance issues
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-07-29 19:17:35 +01:00
Martin Hickey
149da7c77e Update scaffold chart to v2 apiVersion
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-07-29 19:02:59 +01:00
Matt Farina
670968fb19
Removing the stable repository
The stable repository provides a quick onboarding with a set of
community curated charts. Two problems with the community stable
repository has lead to its need to be removed.

1. The URL is hard coded to a Google Cloud bucket under Google's
   control. This was setup when Helm was part of Kubernetes and
   Kubernetes was a Google project. The bucket cannot be
   transfered to another non-Google controlled project. And,
   the bucket is not accessible in some parts of the world
   (e.g., China).
2. The number of charts in the stable repository has grown
   generally unmaintainable. The repository maintainers cannot
   manage the number of PRs coming it cauing delays in response
   or no response and PRs are automatically closed. This is
   a poor experience.

The alternatice is the Helm Hub that provides a central point of
search for many Helm repositories. Different people and organizations
can maintain their own charts. A central server is not needed as
Helm is setup to be distributed.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-07-26 12:27:18 -04:00
Matt Farina
826985cdbc
Merge pull request #5985 from mentos1386/patch-1-dev-v3
feat(helm:create): allow absolute paths when specifying starter template path [dev-v3]
2019-07-25 15:22:55 -04:00
Ian Howell
4646b22328 Fix a parsing issue with command line arguments
Prior to now, helm has been silently ignoring any errors while parsing
the root Persistent flags. This causes an issue when a global flag comes
later on the command line than a localized flag for a subcommand, in
which the value for that global flag is never set. The solution is to
simply tell the Persistent flagset to ignore any unknown flags, since a
later command will process it

Signed-off-by: Ian Howell <ian.howell0@gmail.com>
2019-07-25 11:38:02 -05:00