Commit graph

1321 commits

Author SHA1 Message Date
Josh Dolitsky
cc5dece910
fix(chartutil): Ensure nested template dir on save (#6177)
If a templates/ dir of a chart contained a subdirectory,
for example "templates/tests/test-db.yaml", an error was
being thrown on export due to missing the "templates/test"
directory prior to saving the template file itself.

Fixes #5757

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-08-08 11:32:03 -05:00
Taylor Thomas
b46d7fd527 fix(kube): Fixes nil panic with stateful set waiting
Sometimes the stateful set `rollingUpdate` field can be nil even when the
strategy is a rolling update

Fixes #6174

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-08-07 11:46:27 -06:00
Taylor Thomas
a749cf4c4e docs(chart): updates APIVersionV2 comment to reflect the proper name
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-08-06 11:14:51 -06:00
Taylor Thomas
4778e2bef5
Merge pull request #6124 from bacongobbler/three-way-merge-patch
ref(client): use three-way merge patch strategy
2019-08-06 11:12:12 -06:00
Martin Hickey
a0f0d8b470
Merge pull request #6117 from hickeyma/upd-linter-v2
feat(chart): Update linting and checking for apiVersion v2
2019-08-06 18:11:09 +01: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
Joe Lanford
45f697b507 pkg/cli/values/options_test.go: re-add MergeValues test with mergeMaps
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
2019-08-05 23:33:39 -04:00
Matthew Fisher
186f6c512f
fix(plugin): add HELM_HOME back
This allows Helm 2 plugins that used HELM_HOME as a scratchpad to continue to work the same in Helm 3.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-02 13:42:21 -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
Matthew Fisher
18ca0dd6c4
ref(client): use three-way merge patch strategy
Co-Signed-by: Taylor Thomas <taylor.thomas@microsoft.com>
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-08-02 09:07:51 -07:00
Martin Hickey
8f8b2c10e5 Remove the chart lock file as its v1 structure
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-08-02 16:01:23 +01:00
Martin Hickey
4d47052395 Update linting and checking for apiVersion v1/v2
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-08-02 15:52:14 +01: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
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
Taylor Thomas
0d8b30f46d
Merge pull request #6085 from thomastaylor312/ref/better_kube_client
ref(*): Refactors kube client to be a bit more friendly
2019-07-31 13:59:08 -06:00
Karuppiah Natarajan
6d02079016
Fix values being ignored when reusing values on upgrade
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>

Co-authored-by: Nandhagopal Ezhilmaran <nandhagr8@gmail.com>
2019-08-01 00:25:15 +05:30
Matthew Fisher
704ace3619
Merge pull request #6122 from ian-howell/fix/6101
fix(pkg/action): Allow name re-use for helm template
2019-07-30 14:05:57 -07:00
Ian Howell
ef46a0c1e7 fix(pkg/action): Allow name re-use for helm template
Signed-off-by: Ian Howell <ian.howell0@gmail.com>
2019-07-30 14:54:23 -05: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
Taylor Thomas
189b5a1229 Fixed object typing for watching Jobs/hooks
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-30 11:51:39 -06:00
Taylor Thomas
f6116a7ca9 Fixes issues with delete
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-30 11:51:39 -06:00
Taylor Thomas
15fc57f8a3 ref(*): Refactors kube client to be a bit more friendly
This changes most of the KubeClient interface to only ever build objects once and
then pass in everything as lists of resources. As a consequence, we needed to refactor
several of the actions. I took the opportunity to refactor out some duplicated
code while I was in the same area

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-30 11:51:39 -06:00
Taylor Thomas
1dac8421ef ref(kube): Renames Result type to ResourceList
`Result` is a misnomer and is going to be repurposed in a future commit for a
common result type for the different kube `Interface` methods

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-30 11:51:39 -06:00
Karuppiah Natarajan
8d660a96a0
Allow missing trailing '/' in --repo url
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>

Co-authored-by: Nandhagopal Ezhilmaran <nandhagr8@gmail.com>
2019-07-30 23:00:39 +05:30
Martin Hickey
5906b9dfee Fix style conformance issue
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-07-30 16:00:18 +01:00
Taylor Thomas
e258418837
Merge pull request #6066 from ian-howell/fix/6044
fix(engine): Fix eating too many colons during template execution
2019-07-29 14:56:37 -06:00
Ian Howell
c92e3351f7 Switch to a more unique delimiter for template execution errors
Signed-off-by: Ian Howell <ian.howell0@gmail.com>
2019-07-29 15:39:44 -05: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
095ba431aa
Merge pull request #6095 from mattfarina/remove-stable
Removing the stable repository
2019-07-29 09:32:00 -04:00
Seb Ospina
1469a78029 Added List mode for Role, ClusterRole and Bindings
Signed-off-by: Seb Ospina <kraige@gmail.com>
2019-07-27 16:19:16 +02: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
hd-rk
7ad1d522b3 test: add test
Signed-off-by: hd-rk <hdn314159@gmail.com>
2019-07-26 19:18:20 +08:00
hd-rk
6d3eb81943 fix: use repo default client to download index
Signed-off-by: hd-rk <hdn314159@gmail.com>
2019-07-26 14:49:53 +08:00
hd-rk
71c2bba69d fix: call chartutil.ProcessDependencies in action.Install
Signed-off-by: hd-rk <hdn314159@gmail.com>
2019-07-25 22:58:30 +08:00
Matthew Fisher
63d7a0c2cf
Merge pull request #6070 from bacongobbler/fix-6059
Use chart version as default tag when saving
2019-07-23 14:41:56 -07:00
Matthew Fisher
2045fab01f
ref(action): remove ParseReferenceWithChartDefaults
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-07-23 14:33:23 -07:00
Matthew Fisher
97e7461e41
Merge pull request #6049 from bacongobbler/helm-template-schema-validation
feat(template): introduce --validate
2019-07-23 09:37:39 -07:00
Ian Howell
31b940a61d fix(engine): Fix eating too many colons during template execution
This fixes #6044, in which error parsing is greedily eating too many
colons, preventing users from using colons in their warning messages to
the `required` function

Signed-off-by: Ian Howell <ian.howell0@gmail.com>
2019-07-23 11:33:03 -05:00
Martin Hickey
7ddd3f482e
Merge pull request #6038 from liuliqiang/dev-v3
Fix paths in the ingress template and values file written by helm create
2019-07-23 14:44:37 +01:00
Liu Liqiang
49120340d3 Fix paths in the ingress template and values file written by helm create
Signed-off-by: Liu Liqiang <liuliqiang@smartx.com>
2019-07-23 17:25:47 +08:00
Matthew Fisher
4f6d002d6c
chore(docs): move docs to helm-www
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-07-22 12:15:35 -07:00
Josh Dolitsky
b3fd254991 Use chart version as default tag when saving
Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-07-22 10:24:52 -05:00
Martin Hickey
712c850ac5
Merge pull request #6047 from Constantin07/add_hpa_to_sorting_order_port_to_v3
Add hpa to sorting order (port to v3)
2019-07-22 10:41:23 +01:00
Constantin Bugneac
512f67de14 Added HorizontalPodAutoscaler to sort order.
Signed-off-by: Constantin Bugneac <constantin.bugneac@worldfirst.com>
2019-07-20 08:13:14 +01:00
Matthew Fisher
7de91248ce
feat(template): introduce --validate
This feature flag allows `helm template` to be used against a live cluster. Some charts need CRDs to be applied to the cluster before calling `helm install`. This allows users to validate their templates will render with those resources set.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-07-19 12:27:14 -07:00
Matthew Fisher
880f4456b3
Merge pull request #6046 from bacongobbler/fix-5654
fix(kube): remove namespace enforcement
2019-07-19 08:48:48 -07:00
Matthew Fisher
b5d555e4ea
fix(kube): remove namespace enforcement
This fixes an issue where resources that hardcode the metadata.namespace parameter cannot be installed.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-07-19 08:07:07 -07:00
Taylor Thomas
2c397b6879
Merge pull request #6011 from thomastaylor312/feat/atomic
feat(*) Adds atomic flag to v3
2019-07-18 10:14:21 -06:00