Commit graph

4722 commits

Author SHA1 Message Date
Martin Hickey
caa26c4bb2
Change release storage name to use helm storage type as prefix (#6500)
* Change release storage name to prefix helm storage type

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Add comments about the Kubernetes storage object type field content

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-09-26 17:46:19 +01:00
Adam Reese
fef60966f6
Merge pull request #6400 from adamreese/ref/envvars
ref(pkg/cli): refactor environment variable setup
2019-09-25 20:15:48 -07:00
Adam Reese
d3805a1d54
ref(pkg/cli): refactor environment variable setup
This change sets proper defaults based on environment variables for
global settings and plugin environments.

Signed-off-by: Adam Reese <adam@reese.io>
2019-09-25 14:00:43 -07:00
Taylor Thomas
85572df378
Merge pull request #6494 from thomastaylor312/feat/set_file
feat(*): Ports `--set-file` flag to v3
2019-09-25 10:20:11 -06:00
Matthew Fisher
7928803ace
Merge pull request #6492 from bacongobbler/port-5678
fix(cmd): lock repository file during `helm repo add`
2019-09-25 09:17:22 -07:00
Matthew Fisher
3fa07d572f
fix(cmd): lock repository file during helm repo add
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-25 08:50:25 -07:00
Matthew Fisher
261e5b00ac
Merge pull request #6491 from bacongobbler/port-5700
fix(action): typo
2019-09-24 21:32:14 -07:00
Matthew Fisher
7817fe2a2f
Merge pull request #6493 from bacongobbler/port-5496
feat(cmd): implement `helm get --template`
2019-09-24 21:29:41 -07:00
Matthew Fisher
e7f81f204a
Merge pull request #6495 from bacongobbler/port-5192
ref(CONTRIBUTING): port over changes from Helm 2
2019-09-24 21:29:20 -07:00
Taylor Thomas
1b9cc69da5
Merge pull request #6496 from thomastaylor312/fix/digest_err
fix(provenance): Ports error check for `Digest` to v3
2019-09-24 15:15:39 -06:00
Taylor Thomas
9b87721c1f fix(provenance): Ports error check for Digest to v3
This is a port of #5672

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-24 13:59:14 -06:00
Matthew Fisher
56f27547c4
ref(CONTRIBUTING): port over changes from Helm 2
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-24 12:18:31 -07:00
Taylor Thomas
7599c5d489 feat(*): Ports --set-file flag to v3
I made a few modifications from the original code to fit in with the new
code layout and to clarify a few things. This is a port of #3758

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-24 12:43:43 -06:00
Matthew Fisher
05d93b2c7a
feat(cmd): implement helm get --template
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-24 11:41:31 -07:00
Matthew Fisher
faa9048580
Merge pull request #6486 from bacongobbler/fix-6452
fix(action): invalidate discovery client cache on startup
2019-09-24 11:29:28 -07:00
Matthew Fisher
9742c8c5a2
fix(action): typo
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-24 10:57:35 -07:00
Taylor Thomas
6419ff6961
Merge pull request #6480 from thomastaylor312/feat/cleanup_on_fail
feat(*): Ports `--cleanup-on-fail` to v3
2019-09-24 10:42:10 -06:00
Matthew Fisher
1b0b843d6a
fix(action): invalidate discovery client cache on startup
we want to force a cache invalidation to ensure that the Capabilities object always has the latest information from the server (Kubernetes server version, available API versions, etc). `kubectl version` forces a cache invalidation every time it's invoked, so this seems like a safe change that is identical to kubectl's behaviour.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-24 09:14:29 -07:00
Matthew Fisher
3e891dbde9
Merge pull request #6425 from AndiDog/helm-template-no-reachability-check
Fix reachability check which must be disabled for `helm template` (unless `--validate` is specified)
2019-09-24 08:36:53 -07:00
Matt Farina
22a84078f5
Merge pull request #6472 from VilledeMontreal/feat-v3/dynCompDifferentHelm
v3: Dynamic completion to handle env with both helm2 and helm3
2019-09-24 11:22:38 -04:00
Marc Khouzam
2db09189f4 Simplify logic
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-09-23 21:55:00 -04:00
Marc Khouzam
d50e2a3134 Merge branch 'dev-v3' into feat-v3/dynCompDifferentHelm 2019-09-23 21:12:31 -04:00
Matthew Fisher
64521d00da
Merge pull request #6479 from bacongobbler/fix-6356
fix(list): scrub list returned from .List()
2019-09-23 15:30:41 -07:00
Taylor Thomas
17854e83af feat(*): Ports --cleanup-on-fail to v3
This ports the functionality of cleanup on fail to v3 as introduced in #4871. This has been tested manually
and would be a good candidate for a new acceptance test.

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-23 16:13:02 -06:00
Matthew Fisher
4971ed5077
fix(list): scrub list returned from .List()
This way only the latest release is displayed with `helm list`.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-23 15:00:16 -07:00
Taylor Thomas
d95a6246a4
Merge pull request #6430 from karuppiah7890/fix-install-storing-computed-values
fix install storing computed values in release instead of user supplied values
2019-09-23 11:49:03 -06:00
Matt Farina
4ee8db2208
Merge pull request #6470 from VilledeMontreal/fix/dynCompStderr
v3: fix(completion): Redirect stderr must be before pipes
2019-09-23 12:50:07 -04:00
Marc Khouzam
a46694c8d6 Dynamic completion to use same binary as main call
The binary of Helm to use for dynamic completion should be the same
as the actual Helm binary being used.  For example, if PATH points
to a version of helm v2, but the user calls bin/helm to use a local
v3 version, then dynamic completion should also use bin/helm.
If not, in this example, the dynamic completion will use the
information returned by helm v2.

This improvement is particularly useful for users that will run both
helm v2 and helm v3 at the same time.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-09-21 19:52:17 -04:00
Marc Khouzam
e0a119c662 fix(completion): Redirect stderr must be before pipes
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-09-20 19:51:03 -04:00
Matt Farina
e38b414bc8
Merge pull request #6408 from VilledeMontreal/feat-v3/dynCompGlobalFlags
feat-v3(cli): Dynamic completion for global flags
2019-09-20 12:12:19 -04:00
Taylor Thomas
249221191e
Merge pull request #6463 from thomastaylor312/chore/deprecate_recreate_pods
chore(cmd): Deprecates --recreate-pods flag
2019-09-20 10:12:09 -06:00
Taylor Thomas
45e27d4571 chore(cmd): Deprecates --recreate-pods flag
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-19 13:21:24 -06:00
Matt Farina
9a592e5379
Merge pull request #6448 from oneilcin/fix-ingress-extensions
handle ingress apiVersion change for kubernete versions
2019-09-18 15:24:03 -04:00
Cindy O'Neill
41e9359716 handle ingress apiVersion change for kubernete versions
Signed-off-by: Cindy O'Neill <cubiedoo2@gmail.com>
2019-09-18 11:11:34 -06:00
Matt Farina
68baa494b1
Merge pull request #6455 from mattfarina/update-v3-contributing
Moving from CLA to DCO in contribution guide
2019-09-18 12:58:07 -04:00
Matt Farina
4eae3bb3fc
Moving from CLA to DCO in contribution guide
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-09-18 10:25:05 -04:00
Reinhard Nägele
38e41e12c9 ref(*): Improve and fix scaffold chart and API versions (#6426)
* Use `apps/v1` for Deployment
* Reformat comments
* Consistently use `nindent` and indent properly
* Introduce named template for selector labels
* Fix label selector in `NOTES.txt`

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2019-09-18 12:24:03 +01:00
Andreas Sommer
3a843df1ff Fix reachability check which must be disabled for helm template (unless --validate is specified)
Signed-off-by: Andreas Sommer <andreas.sommer87@googlemail.com>
2019-09-16 13:13:05 +02:00
Karuppiah Natarajan
25324ca8db
fix install storing computed values in release instead of user supplied values
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-09-14 20:34:48 +05:30
Reinhard Nägele
1f6c80ca59 Set history-max to 10 by default (#6421)
It makes sense to limit the history by default. Setting
it to 10 aligns with the default for a ReplicaSet's
`revisionHistoryLimit`.

Fixes: #5157
Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2019-09-14 14:19:17 +02:00
Matt Farina
2c87d89a80
Merge pull request #6392 from karuppiah7890/update-go
update go to v1.13
2019-09-11 15:57:10 -04:00
Matt Farina
a86eecede4
Merge pull request #6387 from VilledeMontreal/feat-v3/compFuncName
v3: Fix debug printouts for zsh completion
2019-09-11 15:16:22 -04:00
Marc Khouzam
8de22efd88 feat(cli): Dynamic completion for global flags
Inspired greatly from kubectl code.
Completion is provided for:
--kube-context - where the available contexts are listed
--namespace    - where the namespaces of the cluster are listed

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-09-10 22:59:16 -04:00
Karuppiah Natarajan
a402253671
update go to v1.13
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-09-08 21:47:17 +05:30
Marc Khouzam
251a4235a6 fix(completion): --flag=val breaks zsh completion
This is a bug I ran into when working on Helm completion.
I was surprised that it didn't happen when I was using
kubectl, so I investigated and found a PR that fixed this
bug in kubectl:
https://github.com/kubernetes/kubernetes/pull/48553

I duplicated the code in this commit which:

Removes __helm_declare, which is safe to do since
`declare -F` is already replaced to `whence -w` by
__helm_convert_bash_to_zsh().

The problem was that calling "declare" from inside a function
scopes the declaration to that function only.  So "declare"
should not be called through __helm_declare() but instead
directly.

To reproduce:
1- setup helm completion in zsh
2- helm --kubeconfig=$HOME/.kube/config statu<TAB>

you will get the error:
__helm_handle_flag:27: bad math expression: operand expected at end of string

Co-authored-by: Kazuki Suda <kazuki.suda@gmail.com>
Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
2019-09-07 20:31:56 -04:00
Marc Khouzam
c689351507 Fix debug printouts for zsh completion
Cobra provides some out-of-the-box debugging for bash completion.
To use it, one must set the variable BASH_COMP_DEBUG_FILE to
some file where the debug output will be written.  Many of the
debug printouts indicate the current method name; they do so
by using bash's ${FUNCNAME[0]} variable. This variable is
different in zsh. To obtain the current method name in zsh
we must use ${funcstack[0]}.

This commit adds the proper sed modification to convert from
bash to zsh.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2019-09-07 19:13:34 -04:00
Matthew Fisher
d285097f58
Merge pull request #6385 from mumoshu/detailed-plugin-exit-code-v3
fix(helm3): Detailed exit code for helm plugins
2019-09-07 08:02:16 -07:00
Yusuke KUOKA
6e9211e7bb fix(helm3): Detailed exit code for helm plugins
Fixes #6384

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2019-09-07 19:47:49 +09:00
Matthew Fisher
bc42dca470
Merge pull request #6373 from andytom/task/cleanup_nitpick_lint
Cleanup nitpick suggestion in the lint command
2019-09-06 09:35:49 -07:00
Thomas O'Donnell
69feb96490 Cleanup nitpick suggestion in the lint command
Have fixed up a non-blocking nitpick change from #6310, this just
switches us to use a regular string rather than a string.Builder for the
summary.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
2019-09-06 18:13:20 +02:00