Commit Graph
1079 Commits
Author SHA1 Message Date
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
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
smurfralf c4d6b5a434 Tweeks per bacon review 2018-08-24 16:23:25 -04:00
smurfralf eeb3a1454a Improve documentation for helm upgrade (#4030)
Expand and clarify documentation for `helm upgrade` to include nuances
of command line values setting.

Fixes issue #4030
2018-08-24 16:22:52 -04:00
Adam Reese eb0dffcbd9 Merge pull request #4338 from dustyrip/zsh-compinit-patch
Allow zsh completion to be autoloaded by compinit
2018-08-24 11:23:42 -07:00
Adam Reese b95eb54bf2 Merge pull request #4420 from adamreese/ref/kube-1.11
ref(*): kubernetes v1.11 support
2018-08-21 08:47:18 -07:00
Matt Farina 83e3571358 Merge branch 'master' into update-labels 2018-08-20 17:02:14 -04:00
Adam Reese efadbd8803 ref(*): kubernetes v1.11 support 2018-08-09 19:13:12 -07:00
Matt Farina e328d00a2f Updating to the k8s label convention
Closes #4335

Signed-off-by: Matt Farina <matt@mattfarina.com>
2018-08-08 12:21:38 -04:00
fibonacci1729 bd0686731c fix(helm): fix(helm): add --tls-hostname flag to tls flags
docs(*): update tiller_ssl.md to reflect IP SAN usage.
When using helm/tiller in tls-verify mode, 127.0.0.1 should
be listed as an IP SAN in the tiller certificate to pass
hostname verficiation of the TLS handshake.

Closes #4149
2018-08-07 16:56:40 -07:00
Mike Lundy 4139a00e17 [templates] extract some rendering code into a package 2018-08-06 17:24:02 -07:00
Matthew Fisher 71629f046a Merge pull request #4426 from rimusz/tiller-auth-plugins-patch
add support for `auth-provider` from kubeconfig files
2018-08-03 09:30:31 -07:00
Rimas 3dddd5080e add support for auth-provider from kubeconfig files, addreses #4422 2018-08-03 10:32:53 +01:00
Matthew Fisher a7ab81f8e7 setup connection after displaying client version 2018-08-01 11:43:22 -07:00
Matthew Fisher 56154102a2 Merge pull request #3556 from ryane/fix/init-output-service
fix(helm): add service, secret manifests in `init -o`
2018-07-31 10:10:41 -07:00
Matthew Fisher 85d2ce348d Merge pull request #4284 from 0gajun/change_permission_index_yaml
Change permission of index.yaml generated by a command `helm repo index`
2018-07-31 10:04:14 -07:00
Matthew Fisher 3a6fbee371 Merge pull request #4305 from bacongobbler/fix-4304
fix `helm template -x` pathing issues on Windows
2018-07-31 08:58:09 -07:00
Matthew Fisher 7cad59091a Merge pull request #4202 from bacongobbler/change-copyright
change copyright to "Copyright The Helm Authors"
2018-07-31 08:57:02 -07:00
Matthew Fisher 1a1ea63830 fix helm template -x pathing issues on Windows
tiller's rendering engine converts os filepath separators into unix-style filepath separators, so we need to split template names with a forward slash.
2018-07-30 08:29:51 -07:00
Matthew Fisher 2d77db11fa change copyright to "Copyright The Helm Authors" 2018-07-30 08:29:17 -07:00
Matthew Fisher d8b46d840b fix path output for Windows 2018-07-30 08:27:12 -07:00
KUOKA Yusuke dc93908626 feat: Set values from local files (#3758)
Adds the `--set-file key=filepath` flag to `install`, `upgrade`, `template` and `lint` sub-commands so that the content of the file at the `filepath` is set to the value for the `key`.

Resolves #1754
2018-07-25 15:12:40 -06:00
KUOKA Yusuke 3e5b4066d2 feat(helm): Detailed exit code for helm plugins (#4367)
Resolves #4170
2018-07-23 13:49:42 -06:00
Rohan Chakravarthy 4efa18a5ec feat(helm): Add the --kubeconfig flag (#4235)
Adds the ability to specify a kubeconfig file that overrides $KUBECONFIG
2018-07-23 13:40:54 -06:00
Erik Sundell 01da56f956 helm template cmd - conformity of output (#3811)
By changing a string from `##---` to `---` the output written to files matches the output generated to stdout.
2018-07-18 14:01:11 -06:00