Commit graph

4882 commits

Author SHA1 Message Date
Matthew Fisher
402fce389a
fix(chartutil): restore .Release.Revision
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-17 11:04:45 -07:00
Matthew Fisher
b42967ff51
Merge pull request #6681 from bacongobbler/fix-6642
fix(kube): replace rather than delete/create on `helm install --force`
2019-10-17 09:40:11 -07:00
Matthew Fisher
4d5a62303e
fix(kube): replace rather than delete/create
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-17 09:36:25 -07:00
Matthew Fisher
feff367160
Merge pull request #6661 from karuppiah7890/fix-install-storing-computed-values
fix install storing computed values in release
2019-10-17 08:53:38 -07:00
Karuppiah Natarajan
dfed8ab5e3
fix install storing computed values in release
this was partially fixed in #6430 but the fix only
worked for values without nesting. this PR fixes it.
this is done by doing a deep copy of values rather
than a top level keys copy. deep copy ensures
values are not mutated during coalesce()
execution which leads to bugs like #6659

the deep copy code has been copied from:

https://gist.github.com/soroushjp/0ec92102641ddfc3ad5515ca76405f4d

which is in turn inspired by this stackoverflow answer:
http://stackoverflow.com/a/28579297/1366283

Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-10-17 16:37:19 +05:30
Matthew Fisher
e7413bd61c
Merge pull request #6678 from sidharthsurana/fix-nil-pointer-load
Fix the ordering of the APIVersion check to avoid nil pointer
2019-10-16 11:39:19 -07:00
Sidharth Surana
31d41d3fd1 Add unit test for this specific case of loading from V1 archive
Added a tgz "frobnitz.v1.tgz" of the testdata folder frobnitz.v1
Verified that without the fix the unit test fails and re-produces
the issue.

Signed-off-by: Sidharth Surana <ssurana@vmware.com>
2019-10-16 11:36:53 -07:00
Matthew Fisher
40572311ab
Merge pull request #6488 from bacongobbler/port-6258
fix(downloader): bypass index cache when repository URL defined
2019-10-16 09:10:06 -07:00
Matthew Fisher
0c9374e122
Merge pull request #6656 from VilledeMontreal/fix/onlySubcommands
v3: 'helm show' -> 'helm show all' and 'helm get' -> 'helm get all'
2019-10-16 08:10:34 -07:00
Matthew Fisher
3cb7f5298d
Merge pull request #6672 from kenperkins/no-error-recursion
[v3] Introducing tests for chartutils/errors.go
2019-10-16 07:50:37 -07:00
Sidharth Surana
8f833fed25 Fix the ordering of the APIVersion check to avoid nil pointer
Signed-off-by: Sidharth Surana <ssurana@vmware.com>
2019-10-15 22:43:33 -07:00
Ken Perkins
060def3b88 Fix chartutils/errors.go stack overflow
- Changes to use a struct with string property
- Changes references in chartutil/values.go

Signed-off-by: Ken Perkins <ken.perkins@rackspace.com>
2019-10-15 15:03:36 -07:00
Ken Perkins
01ea487582 Introducing an tests for chartutils/errors.go
- Should panic on string recursion error

Signed-off-by: Ken Perkins <ken.perkins@rackspace.com>
2019-10-15 13:14:03 -07:00
Taylor Thomas
3edad39e08
Merge pull request #6660 from aaronmell/Kubeconfig_scope_fix
Modified the scope of Kubeconfig so it could be set outside an env va…
2019-10-14 13:07:36 -06:00
Aaron Mell
6a98d1f1d2 Code Review Changes
Signed-off-by: Aaron Mell <amell@lumindigital.com>
2019-10-14 13:14:14 -05:00
Aaron Mell
4eca26e4e1 Modified the scope of Kubeconfig so it could be set outside an env variable.
Signed-off-by: Aaron Mell <amell@lumindigital.com>
2019-10-14 13:14:14 -05:00
Taylor Thomas
81b92e8c21
Merge pull request #6657 from jonasrutishauser/fix/special-plugin-args
Remove all known arguments in plugin invocations
2019-10-14 11:31:14 -06:00
Jonas Rutishauser
0650d6953d
Remove all known arguments in plugin invocations
Consistenly remove all arguments which are passed as environment
variables.

Get all arguments from environment variables passed to plugins.

Signed-off-by: Jonas Rutishauser <jonas.rutishauser@alumni.ethz.ch>
2019-10-12 21:50:42 +02:00
Marc Khouzam
1d017e3793 feat(cmd): Replace 'helm get' with 'helm get all'
As part of #6552

The is a break in compatibility because 'helm get' is no longer a
valid command on its own; what it used to do is now achieved with
'helm get all'.

This change avoids confusion between release name and subcommands.
It also allows dynamic shell comnpletion to work for 'helm get all'.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-10-12 11:38:30 -04:00
Marc Khouzam
ac732523b1 feat(cmd): Replace 'helm show' with 'helm show all'
As part of #6552

The is a break in compatibility because 'helm show' is no longer a
valid command on its own; what it used to do is now achieved with
'helm show all'.

This change avoids confusion between chart reference and subcommands.
It also opens the door to dynamic shell comnpletion.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-10-11 18:47:16 -04:00
Taylor Thomas
34b930cb9d
Merge pull request #6653 from thomastaylor312/fix/action_config
fix(action): Fixes ordering of variable binding
2019-10-11 15:05:04 -06:00
Taylor Thomas
01e593fbcd fix(action): Fixes ordering of variable binding
The recent init action config switched the order of how variables get bound
and where. This led to the namespace variable not being propagated down into
the calls to kubernetes.

Co-authored-by: Matthew Fisher <matt.fisher@microsoft.com>
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-11 11:41:57 -06:00
Taylor Thomas
da72944611
Merge pull request #6640 from thomastaylor312/feat/parse_pre_release
feat(lint): Ports v2 functionality for linting pre-release charts
2019-10-11 10:42:48 -06:00
Taylor Thomas
0dc9aca2e1
Merge pull request #6652 from thomastaylor312/fix/broken_env_vars
fix(cli): Fixes incorrect variable reference
2019-10-11 10:26:39 -06:00
Taylor Thomas
1123e5ca1f fix(cli): Fixes incorrect variable reference
Because these were additions, git didn't pick up that the recent refactor of
env settings had changed some of the variables. This fixes those small changes

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-11 10:21:49 -06:00
Matthew Fisher
ed90425ebb
Merge pull request #6632 from mumoshu/add-plugin-envvars
v3: Propagate --kube-context, --kubeconfig and --namespace values to plugins
2019-10-11 09:05:43 -07:00
Matthew Fisher
36e30472d7
Merge pull request #6639 from jlegrone/set-default-hook-delete-policy
Set default hook deletion policy to before-hook-creation
2019-10-11 09:03:32 -07:00
Matthew Fisher
74e8dd03c8
Merge pull request #6634 from mumoshu/bring-back-template-execute
fix(v3): Bring back the missing `helm template [-x|--execute] PATH/TO/SINGLE/TEMPLATE`
2019-10-11 09:02:43 -07:00
Matthew Fisher
0f26eeb8fd
Merge pull request #6519 from SimonAlling/dev-v3
fix(pkg/chartutil): include values.schema.json in packaged chart
2019-10-11 09:02:01 -07:00
Taylor Thomas
38d4f33a0f
Merge pull request #6641 from VilledeMontreal/feat/refactorOutput
ref(cmd): Use method to list formats
2019-10-11 09:59:07 -06:00
Martin Hickey
1cc2ad0061
Port #5298 to Helm v3 (#6613)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-10-11 16:19:26 +01:00
Matthew Fisher
9e9f317cbf
Merge pull request #6608 from bacongobbler/refactor-switch-statement
ref(wait): consolidate switch cases
2019-10-11 08:03:46 -07:00
Martin Hickey
dd1a440026
Add support to scaffold chart for ingress prior to k8s 1.14 (#6651)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-10-11 15:33:30 +01:00
John Howard
7a22cb88d9 Drop dependency on k8s.io/kubernetes (#6609)
* Drop dependency on k8s.io/kubernetes

https://github.com/helm/helm/issues/6606

Depending on k8s.io/kubernetes is not recommended by Kubernetes, and
forces dependencies of Helm to also depend on them. We are only using
this dependency in one relatively isolated occurance, which can be
easily copied over rather than depending on the entire Kubernetes.

Copying this code is not very desirable, so if we don't want to have
this duplication we can at least use this PR as a PoC and see if we can
get Kubernetes to publish the controller package as a separate Go module
(see
https://github.com/kubernetes/kubernetes/issues/79384#issuecomment-538740756)

Signed-off-by: John Howard <howardjohn@google.com>

* Move to internal

Signed-off-by: John Howard <howardjohn@google.com>

* Exclude third_party from validate-license.sh

Signed-off-by: John Howard <howardjohn@google.com>
2019-10-11 14:13:25 +01:00
Yusuke Kuoka
69adc5a218 v3: Propagate --kube-context, --kubeconfig and --namespace values to plugins
Closes #6631

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2019-10-11 21:06:17 +09:00
Simon Alling
2a462aef2d fix(pkg/chartutil): add tests according to feedback
The seemingly redundant `return filename, err` line is related to how
the name `err` is used throughout the function: there is a "global" (to
the function) `err` variable, as well as several locally block-scoped
ones. It took me hours to understand why my code did not work without
that line, but I decided not to clean up the `err` code in this commit.

Signed-off-by: Simon Alling <alling.simon@gmail.com>
2019-10-11 10:49:43 +02:00
Martin Hickey
f12be4c4b6
Port #4078 to Helm v3 (#6619)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-10-11 09:03:36 +01:00
Yusuke Kuoka
74a2adf6c5 fixup! fix(v3): Bring back the missing helm template [-x|--execute] PATH/TO/SINGLE/TEMPLATE
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2019-10-11 15:06:42 +09:00
Marc Khouzam
483904656b ref(cmd): Use string method to list formats
This greatly simplifies how to obtain the list of output.Format.
It no longer provides a way to list all output.Format, but focuses
on providing a list of string representation of output.Format, as this
is what is actually needed.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-10-10 22:39:18 -04:00
Marc Khouzam
7fd384c8fb ref(cmd): Use method to list formats
This isolates the listing of the different formats to the output.go
file.  It is more future-proof if another format is added.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-10-10 21:38:38 -04:00
Taylor Thomas
0ba959af0d feat(lint): Ports v2 functionality for linting pre-release charts
This is a port of #5177

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-10 16:58:47 -06:00
Jacob LeGrone
2d983f27e7
feat(hooks): never delete CustomResourceDefinitions
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-10-10 18:30:57 -04:00
Jacob LeGrone
34d685f8bf
feat(hooks): set default deletion policy to before-hook-creation
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-10-10 18:30:57 -04:00
Matthew Fisher
0227ade173
Merge pull request #6363 from jlegrone/refactor-test-command
Remove run test subcommand and --cleanup flag, print test status
2019-10-10 15:24:14 -07:00
Matthew Fisher
d618e327ae
Merge pull request #6341 from aaronmell/Action_Init
Moving initActionConfig to pkg
2019-10-10 14:56:13 -07:00
Aaron Mell
8b8ffcdb21 Moved config and configOnce to struct
Signed-off-by: Aaron Mell <amell@lumindigital.com>
2019-10-10 16:51:59 -05:00
Jacob LeGrone
0645b92c1b
Print test status
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-10-10 17:50:26 -04:00
Jacob LeGrone
6f18519957
Remove test --cleanup flag
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-10-10 15:11:53 -04:00
Jacob LeGrone
a6f4bc1bc0
Remove "run" test subcommand
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-10-10 15:10:58 -04:00
Aaron Mell
00249a3235 Moved namespace and kubeconfig variable back to original place.
Signed-off-by: Aaron Mell <amell@lumindigital.com>
2019-10-10 14:01:28 -05:00