Commit Graph
1102 Commits
Author SHA1 Message Date
Marc Khouzam a6ccbdaa9e Fix #5046 compatible with MacOS (#5406)
(cherry picked from commit c94c00915f)

Signed-off-by: Marc Khouzam <marc.khouzam@ville.montreal.qc.ca>
2019-03-21 11:22:26 -07:00
Matthew Fisher 20c949f121 restore klog flags (#5411)
(cherry picked from commit 3c86f112e2)

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-21 11:21:31 -07:00
Aaron Roydhouse 1984f436af Document the HELM_TLS_HOSTNAME variable in 'helm --help' (#5123)
* Document the HELM_TLS_HOSTNAME environment variable in 'helm --help'

Resolves #5120
Also adjust order `ENABLE` -> `VERIFY` -> `HOSTNAME`

Signed-off-by: Aaron Roydhouse <aaron@roydhouse.com>

* Update docs folder for addition of HELM_TLS_HOSTNAME documentation

Signed-off-by: Aaron Roydhouse <aaron@roydhouse.com>
2019-02-04 07:22:06 -08:00
adshmh 1f386a34ea add --devel flag to inspect command (#5141)
* fix(helm): add --devel flag to allow inspect on pre-release chart versions

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

* fix(helm): remove some duplication from inspect command preparation

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2019-02-01 15:44:46 -08:00
adshmh 3953f0e884 fix(helm): add test for repo update strict flag (#5183)
While adding the test, noticed a race in the repo update code, due to
multiple go routines potentially incrementing the error counter.
Included the required mutex in the repo update code in the same commit,
since the new test uncovered the race condition.

Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2019-02-01 09:12:03 -08:00
Ryan Hartje c9dfd25071 added warning and set default image for unreleased versions of helm for #3770 (#3781)
* added warning and set default image for unreleased versions of helm

* changed to BuildMetadata

* changed to BuildMetadata

* added check for clientOnly flag
2019-02-01 08:45:54 -08:00
lIuDuI 7161095f79 Update func name (#5241)
Signed-off-by: xichengliudui <1693291525@qq.com>
2019-01-30 20:10:26 -08:00
Matthew Fisher 51a7a4487b docs: add note on rolling back to the previous release (#5228)
While deving at a Microsoft Open Hack my group discovered this useful piece of information in this issue comment: https://github.com/helm/helm/issues/1796#issuecomment-311385728

We found it very useful for our Blue Green CD pipeline and thought others might find it useful as well.

Signed-off-by: Ethan Arrowood <ethan.arrowood@gmail.com>
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-01-29 12:34:33 -08:00
Amim Knabben 5cf932c140 Changing deprecated library reference and setting delete propagation background policy (#5161)
Signed-off-by: Amim Knabben <amim.knabben@gmail.com>
2019-01-29 12:00:51 -08:00
Peter Stalman 4c1edcf049 Fixes #5046, zsh completion (#5072)
Signed-off-by: Peter Stalman <sarkedev@gmail.com>
2019-01-29 10:54:51 -08:00
Alexander Nesterenko 2332b480c9 Update docs to include information about setting --wait flag
Signed-off-by: Alexander Nesterenko <nestorf250@gmail.com>
2019-01-28 20:06:31 +02:00
Alexander Nesterenko 5744af51e8 Add smoke tests
Signed-off-by: Alexander Nesterenko <nestorf250@gmail.com>
2019-01-27 12:49:01 +02:00
Alexander Nesterenko e137c55a3a [#3338] Rename "safe" to "atomic" which gives more clear understanding, what it does
Signed-off-by: Alexander Nesterenko <nestorf250@gmail.com>
2019-01-27 11:39:10 +02:00
Alexander Nesterenko 869efd59be Fix codestyle and update docs
Signed-off-by: Alexander Nesterenko <nestorf250@gmail.com>
2019-01-27 11:39:10 +02:00
Alexander Nesterenko 8a5c7f1571 Implement "atomic" upgrade/install
Add possibility to put "--safe" argument to install and
upgrade command that restores the state of cluster in
case of failed install/upgrade attempt

Signed-off-by: Alexander Nesterenko <nestorf250@gmail.com>
2019-01-27 11:39:10 +02:00
Matthew Fisher 581e6cdbb8 fix: use RFC 1123 subdomains for name verification (#5132)
As noted in Slack by a community member, release names with periods are
considered usable. Switching to RFC 1123 subdomain verification
continues to block bad release names like BAD_NAME, but allows names
like good.name to continue working.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-01-21 15:58:57 -08:00
Koichi Shiraishi 812b74aca5 Fix delete.go file permission (#5194)
The 'cmd/helm/delete.go' file permission is 755, change to same as another file.

Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2019-01-21 15:58:07 -08:00
Deepak Sattiraju a4bc9fd733 Fixing helm search display format #5148 (#5162)
Signed-off-by: ds-ms <desattir@microsoft.com>
2019-01-17 08:34:32 -08:00
Michelle Noorali 2b7221b5b7 Merge pull request #4088 from jgleonard/2751
#2715 add child NOTES.txt rendering
2019-01-16 12:16:11 -05:00
Frank Hamand 158d6dbb74 Add --parallel flag to helm test (#4144)
* Refactor test run to separate method

This will allow us to parallelise it more easily

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add --parallel flag to helm test

(No functionality in this commit)

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Run helm tests in parallel with --parallel flag

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add a mutex to helm test message streams

This is to protect against data races when running tests in parallel.

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add tests for --parallel flag

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add concurrency limit for parallel helm tests

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add test for concurrency limit

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Fix rebase introduced errors

Signed-off-by: Frank Hamand <frankhamand@gmail.com>
2018-12-05 14:04:48 -08:00
Henry Nash 146c61af37 fix(helm): Correct and improve resilence of template check in unit test (#5010)
Make the current check for the number of templates on create more
resilient by using a varible to store the expected number
of templates. In addition, fix the error message so that it displays
the correct number expected of templates.

Closes #5009

Signed-off-by: Henry Nash <henry.nash@uk.ibm.com>
2018-12-05 13:08:51 -08:00
Tariq Ibrahim c095b9232d avoid kubernetes import for slice contains logic (#4963)
* avoid kubernetes import for slice contains logic

Signed-off-by: tariqibrahim <tariq.ibrahim@microsoft.com>

* fix review comments

Signed-off-by: tariqibrahim <tariq.ibrahim@microsoft.com>
2018-11-28 15:19:26 -08:00
Abu Hanifa 865c1d3c77 Error message if anyone try to create multiple helm chart at a time (#4952)
* error message for creating multiple helm chart at a time

Signed-off-by: hanif <abuhanifa@pathao.com>

* Update cmd/helm/create.go

Co-Authored-By: a8uhnf <a8uhnf@users.noreply.github.com>
Signed-off-by: hanif <abuhanifa@pathao.com>
2018-11-28 10:06:04 -08:00
Matthew Fisher 97465abda0 fix(windows): fix unit tests on Windows (#4897)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-11-28 09:59:32 -08:00
e23793120b fix(helm): --set for out of order list values (#4682)
When a user specifies value overrides for list values out of order,
strvals.listItem panics. Change strvals.listItem to handle this case by
re-initializing nil values to a new map.

Closes #4503

Co-authored-by: Cameron Childress <cameron@cchildress.org>
Co-authored-by: Kevin Collette <hal.collette@gmail.com>
Co-authored-by: Connor McKelvey <connormckelvey@gmail.com>
Co-authored-by: Dan Winter <dan.j.winter@gmail.com>

Signed-off-by: Dan Winter <dan.j.winter@gmail.com>
Signed-off-by: Cameron Childress <cameron@cchildress.org>
Signed-off-by: Kevin Collette <hal.collette@gmail.com>
Signed-off-by: Connor McKelvey <connormckelvey@gmail.com>
2018-11-19 17:58:25 +01:00
Lev Aminov f6b1189aa2 fix(helm): Non-zero exit code on failed chart repository update (#4348)
* Fail on failed chart repository update

* Fix failed test

* Add repo update strict flag
2018-11-12 12:37:43 +01:00
liaoj d41ca72e42 fix:#4873, check release name (#4883)
for command helm template and helm install
when cusotmer input invalid release name, return a error

Signed-off-by: jliao <jliao@alauda.io>
2018-11-06 20:50:05 -08:00
adshmh 1801fa0074 fix(helm): fix incorrect yaml output format of get hooks command (#4684)
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-11-06 16:08:24 -08:00
Jon Leonard a499cf3517 Merge branch 'master' into 2751 2018-11-01 15:02:17 -04:00
jgleonard 1518f961af fix(helm): add --render-subchart-notes flag to 'helm install' and 'helm upgrade'
When 'helm <install|upgrade> --render-subchart-notes ...' is run, this will include
the notes from the subchart when rendered via Tiller.

Closes #2751

Signed-off-by: jgleonard <jgleonard@gmail.com>
2018-11-01 14:57:01 -04:00
Bartel Sielski 1ebbd69896 Remove newline at the start of zsh completion file (#4851)
Signed-off-by: Bartel Sielski <bsielski@nalys-group.com>
2018-10-30 09:24:20 -07:00
masahiro 440e79ff95 Fix cmd/helm use tillerTunnel values (#4777)
Signed-off-by: masahiro331 <m_fujimura@r.recruit.co.jp>
2018-10-25 06:11:23 -07:00
Martin Hickey f6efe2f0c1 Add test template example for helm create (#4524)
* Add test template example for helm create

As helm create ganerates an nginx chart, the example is based on
https://github.com/helm/helm/blob/master/docs/examples/nginx/templates/
service-test.yaml

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

* Update after review

- https://github.com/helm/helm/pull/4524#pullrequestreview-155183390
- https://github.com/helm/helm/pull/4524#pullrequestreview-155379922
- Fix where app.kubernetes.io/instance was incorrect in service selector

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

* Add doc update

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

* Update GO formatting

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2018-10-17 14:10:46 -07:00
Anumita Shenoy 1e26b5300b feat(helm): add $HELM_KEY_PASSPHRASE environment variable for signing helm charts (#4778)
* feat(helm): add $HELM_KEY_PASSPHRASE environment variable for signing helm charts

If $HELM_KEY_PASSPHRASE is set then helm package sign command will not prompt the
user to enter the passphrase for the private key

Signed-off-by: Anumita Shenoy <ansheno@microsoft.com>

* docs(helm):  added documentation for HELM_KEY_PASSPHRASE

Added description for HELM_KEY_PASSPHRASE

Signed-off-by: Anumita Shenoy <ansheno@microsoft.com>
2018-10-16 08:46:35 -06:00
Adam Reese dbf84cd229 ref(*): kubernetes v1.12 support
Signed-off-by: Adam Reese <adam@reese.io>
2018-10-04 10:28:34 -07:00
Matthew Fisher 8be42bae88 fix(helm): fix regression with TLS flags/environment variables not being parsed (#4657)
* fix(helm): fix regression with TLS flags/envvars

This change fixes some of the assumptions made in an earlier commit. Helm's TLS flags and environment variables were not respected because they were parsed well before execution (during settings.AddFlagsTLS()), causing erroneous behaviour at runtime. By re-introducing environment.Init(), Helm can properly parse environment variables at the correct time.

One change that had to occur in this PR is the fact that we need to call settings.Init() each time we call settings.AddFlagsTLS(). This is because each command owns its own FlagSet, so we need to parse each flagset to read and propagate the environment variables correctly.

I also noticed that we were maintaining two separate variables for each TLS value. Refactoring out some of the older code to all use the settings object makes the code much cleaner to read and fixes an issue where setting a flag or environment variable would propagate to the settings object, but we'd be reading from tlsEnable.

I've also added some unit tests to ensure this regression doesn't occur again.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>

* fix bug where os.ExpandEnv() on the default value causes differing behaviour

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>

* add more context to the TODO/FIXME messages

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-09-19 11:20:32 -07:00
Louis Munro 7b821dd52f Make ping() request a specific image. Add a getTillerPodImage method. (#4622)
Signed-off-by: Louis Munro <lm@louismunro.com>
2018-09-17 14:04:19 -07:00
Matthew Fisher a297a0a7fe fix merge conflicts/linter errors (#4653)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-09-17 09:48:51 -07:00
Carlos Tadeu Panato Junior 71ba25a5a9 change kubernetes to helm in docs and yaml files when refer the repository (#4640)
Signed-off-by: cpanato <ctadeu@gmail.com>
2018-09-14 07:36:11 -07:00
adshmh b4b693c316 feat(helm): output option for helm get values command, allow json and yaml formats (#4596)
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-09-10 12:00:57 -07:00
Robert James Hernandez 2b33bf6ba7 Fix for checking helm version slice bounds out of range (#4609)
* fix(helm): Use env to locate bash

Leverage '/usr/bin/env bash` for find bash instead of hardcoding
'/bin/bash' since some *nix OSes have it installed elsewhere.
Signed-off-by: Robert James Hernandez <rob@sarcasticadmin.com>

* test(helm): Adding case for versions short flag

When git sha is empty if being built from tarball running 'helm version
--short' should just ignore '--short' since sha is empty. Adding test
to ensure this is the case.

Signed-off-by: Robert James Hernandez <rob@sarcasticadmin.com>

* fix(helm): ignore short flag when sha is empty

Signed-off-by: Robert James Hernandez <rob@sarcasticadmin.com>
2018-09-10 08:39:55 -07:00
Matthew Fisher 10db6a6fb5 introduce helm init --automount-service-account-token (#4589)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-09-07 13:24:10 -07:00
Matthew Fisher bef59e40dc allow settings TLS flags from environment variables (#4590)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-09-07 13:23:40 -07:00
Fabian Ruff 37a731db79 Avoid importing k8s.io/kubernetes from pkg/helm (#4499)
* Avoid importing k8s.io/kubernetes from pkg/helm

When writing a helm client (e.g. a helm plugin) that talks to tiller importing k8s.io/helm/pkg/helm to get the grpc client is key.
This pkg should not have a dependency to the k8s.io/kubernetes to avoid pulling in a lot of code that is only used within tiller and blow up binary sizes.

Signed-off-by: Fabian Ruff <fabian@progra.de>

* Add references to pull request in errors message

Signed-off-by: Fabian Ruff <fabian@progra.de>

* copy helper function from pkg/storage/driver

Signed-off-by: Fabian Ruff <fabian@progra.de>

* Move storage errors to seperate package

Signed-off-by: Fabian Ruff <fabian@progra.de>

* Keep old  error variables for backward compatibility

Signed-off-by: Fabian Ruff <fabian@progra.de>
2018-09-04 11:19:33 -07:00
Arash Deshmeh 7f703f50a9 feat(helm): added new helm notes command to display notes provided by the chart of a release
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-09-02 05:43:13 -04:00
Matthew Fisher 8a72628beb Merge pull request #4340 from adshmh/4321-feat-helm-sort-releases-by-chart-name
feat(helm): add ability to sort release list by chart name
2018-09-01 07:40:29 -07:00
Arash Deshmeh 380ca1a923 feat(helm): add ability to sort release list by chart name
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-09-01 05:40:07 -04:00
aswinkarthik 1b34a511d4 fix(helm): Add --tiller-tls-hostname flag to 'helm init'
This will fix the bug where 'helm init --wait' fails when TLS is used.

Signed-off-by: aswinkarthik <aswinkarthik93@gmail.com>
2018-09-01 11:29:57 +05:30
Matthew Fisher faa921dd7c Merge pull request #4358 from novas0x2a/fake-improvements
Flesh out the fake client even more
2018-08-31 17:09:23 -07:00
roc 518a9d63e6 feat(helm): hiding password input on terminal
When using "helm repo add" with "--username" and without "--password",
hide user's input with a password prompt. This allows users to not
expose their passwords to the command line history.
2018-08-27 11:39:10 +08:00