Commit graph

5726 commits

Author SHA1 Message Date
Ma Xinjian
8a545d6ca7 Correct checksum file links
Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
2020-08-21 14:47:29 +08:00
Matthew Fisher
0941e3e345
Merge pull request #8613 from tariq1890/if-optimise
optimise if condition in service ready logic
2020-08-20 14:42:45 -07:00
Matthew Fisher
198f403688
Merge pull request #8590 from Foxboron/morten/fix-go1.15
release/mock: Ensure conversion from int to string yields a string
2020-08-20 08:07:04 -07:00
Matthew Fisher
18247ed1c0
Merge pull request #8521 from bacongobbler/stale-issue-bot
introduce stale issue bot
2020-08-20 07:50:03 -07:00
Matthew Fisher
d13c43d3e8
use URL escape codes
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-08-19 13:33:12 -07:00
Matthew Fisher
9664bb2a0a
add v4 to list of exempt labels
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-08-19 13:23:15 -07:00
Tariq Ibrahim
b07b2589fb
optimise if condition in service ready logic
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
2020-08-18 21:59:48 -07:00
Marc Khouzam
d6708667da feat(comp): Disable file completion when not valid
With Cobra 1.0, it is now possible to control when file completion
should or should not be done.  For example:
  helm list <TAB>
should not trigger file completion since 'helm list' does not accept
any arguments.

This commit disables file completion when appropriate and adds tests to
verify that file completion is properly disabled.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2020-08-18 12:39:00 -04:00
Matt Farina
c2c8c570e9
Merge pull request #8539 from MaXinjian/arch
Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-08-17 17:05:17 -04:00
Matthew Fisher
c26881ca81
Merge pull request #8595 from meyskens/v0.18.8
Bump Kubernetes to v0.18.8
2020-08-14 12:53:36 -07:00
Matthew Fisher
bb33b9264f
Merge pull request #8507 from rajatjindal/fix-watch-timeout-error
fix watch error due to elb/proxy timeout
2020-08-14 10:17:33 -07:00
Maartje Eyskens
065b7f6e25 Bump Kubernetes to v0.18.8 + Bump jsonpatch
jsonpatch now is the same version as used in Kubernetes v0.18.8

Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-14 17:18:37 +02:00
Martin Hickey
273d0364be
Merge pull request #8532 from dm3ch/labels-selector
Adding filtering of helm releases for configmap and secret backends during list command
2020-08-13 11:17:01 +01:00
Morten Linderud
83a5e620d0
release/mock: Ensure conversion from int to string yields a string
With the release of go 1.15, the test-suite doesn't pass as `go test` got
a new warning for improper `string(x)` usage.

https://golang.org/doc/go1.15#vet

    $ make test-unit
    # helm.sh/helm/v3/pkg/release
    pkg/release/mock.go:56:27: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
    [snip]
    make: *** [Makefile:82: test-unit] Error 2

This patch changes ensures we are utilizing `fmt.Sprint` instead as
recommended.

Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-08-12 23:04:02 +02:00
Martin Hickey
91094186eb
Merge pull request #8562 from andytom/chore/update_starter_chart
Update Common Lables template in starter chart
2020-08-11 12:29:04 +01:00
Thomas O'Donnell
4b1fa60d58 Update Common Lables template in starter chart
Have update the Common Labels template in the starter chart so that the
value for the `app.kubernetes.io/version` is set to the same value as
the image tag used in the deployment.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
2020-08-10 15:44:53 +02:00
Martin Hickey
621c2020c6
Merge pull request #8505 from jiayushe/master
Avoid hardcoded container port in default notes
2020-08-06 15:24:26 +01:00
Martin Hickey
7645f128b0
Merge pull request #8557 from tero-dev/patch-1
Fix Quick Start Guide Link in README.md
2020-08-06 15:14:49 +01:00
Tero
5421c7e995 Fix Quick Start Guide Link in README.md
The previous link https://docs.helm.sh/using_helm/#quickstart-guide was redirecting into https://helm.sh/ja/docs/intro/ which is a Japanese version of the docs. I've fixed the link so it goes into the English version instead.

Signed-off-by: Tero <31454692+tero-dev@users.noreply.github.com>
2020-08-06 17:00:14 +03:00
Martin Hickey
a5047b2f6c
Merge pull request #8438 from donggangcj/feature/support-jsonpath
feature(show): support jsonpath output for `helm show value`
2020-08-06 11:20:13 +01:00
Dong Gang
df4708a9de polish the error handler
Signed-off-by: Dong Gang <dong.gang@daocloud.io>
2020-08-05 10:37:00 +08:00
Dmitry Chepurovskiy
266c74f390
Move selector filtering after latest release version filtering
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
2020-08-04 18:20:53 +03:00
Dmitry Chepurovskiy
2ea8f805b9
Added testing for list action with selector
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
2020-08-04 18:18:50 +03:00
Dmitry Chepurovskiy
6d60d26913
Added notice about supported backends
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
2020-08-04 18:18:50 +03:00
Dmitry Chepurovskiy
09172b468a
Fix linting issues
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
2020-08-04 18:18:50 +03:00
Dmitry Chepurovskiy
357a0785bc
Added selector filtering
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
2020-08-04 18:18:50 +03:00
Dmitry Chepurovskiy
99bd709530
Pass labels from secret/configmap to release object
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
2020-08-04 18:18:50 +03:00
Dmitry Chepurovskiy
edc7d8ea32
Added selector option to list command
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
2020-08-04 18:18:49 +03:00
Martin Hickey
579c01fad0
Merge pull request #8544 from technosophos/fix/repo-add-test-use-cache
fix test that modifies the wrong cache data
2020-08-04 12:10:53 +01:00
Matt Butcher
131510aa94
fix test that modifies the wrong cache data
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-07-31 17:17:54 -06:00
Martin Hickey
2a69fb7566
Merge pull request #8542 from dellkeji/fix_validateNumColons_docs
bufix: fix validateNumColons docs
2020-07-31 20:38:17 +01:00
bellkeyang
fbc32aea3d
bufix: fix validateNumColons docs
Signed-off-by: bellkeyang <bellkeyang@tencent.com>
2020-07-31 20:44:05 +08:00
Martin Hickey
4f72dfcffe
Merge pull request #8541 from hickeyma/fix/typo
Fix: typo
2020-07-31 12:39:00 +01:00
Martin Hickey
4cc19d1d82 Fix typo
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-07-31 07:57:17 +00:00
Ma Xinjian
8bb0413552 darwin-386 and windows-386 are not supported now
$ curl https://get.helm.sh/helm-v3.2.4-windows-386.tar.gz
<?xml version="1.0"
ding="utf-8"?><Error><Code>BlobNotFound</Code><Message>The specified
 does not exist.
RequestId:6d53f961-d01e-0032-025f-5e4d79000000

$ curl https://get.helm.sh/helm-v2.16.9-darwin-386.tar.gz
<?xml version="1.0"
ding="utf-8"?><Error><Code>BlobNotFound</Code><Message>The specified
 does not exist.
RequestId:81020fad-c01e-0001-0e60-5e12d2000000

Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>
2020-07-31 14:15:21 +08:00
Martin Hickey
37661a8089
Merge pull request #8282 from andrewmelis/list-history-filter
Make helm ls return only current releases if providing state filter
2020-07-30 12:47:28 +01:00
Matt Farina
94438b6722
Merge pull request #8527 from mattfarina/fix-hooks-always-executing
Fix issue with install and upgrade running all hooks
2020-07-29 10:19:01 -04:00
Matt Farina
44212f83dc
Fix issue with install and upgrade running all hooks
When #8156 was merged it had the side effect that all hooks were
run all the time. All the hooks were put in the flow of the
content rendered and sent to Kubernetes on every command.

For example, if you ran the following 2 commands the test hooks
would run:

    helm create foo
    helm install foo ./foo

This should not run any hooks. But, the generated test hook is run.

The change in this commit moves the writing of the hooks to output
or disk back into the template command rather than in a private
function within the actions. This is where it was for v3.2.

One side effect is that post renderers will not work on hooks. This
was the case in v3.2. Since this bug is blocking the release of v3.3.0
it is being rolled back. A refactor effort is underway for this section
of code. post renderer for hooks should be added back as part of that
work. Since post renderer hooks did not make it into a release it
is ok to roll it back for now.

There is code in the cmd/helm package that has been duplicated from
pkg/action. This is a temporary measure to fix the immediate bug
with plans to correct the situation as part of a refactor
of renderResources.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-07-28 09:52:39 -04:00
Martin Hickey
8e11f15659
Merge pull request #8486 from chriswells0/path-with-spaces
fix: Allow building in a path containing spaces
2020-07-28 13:09:18 +01:00
Matthew Fisher
b13247c333
introduce stale issue bot
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-07-27 09:03:24 -07:00
Matthew Fisher
0498f0e5a2
Merge pull request #8510 from feicun/master
Close gzip reader when done
2020-07-24 08:14:44 -07:00
Haoming Zhang
b6bbf34097
Close gzip reader when done.
Signed-off-by: Haoming Zhang <feicun1006@gmail.com>
2020-07-23 21:04:18 -07:00
Matt Farina
d481bc6cf3
Merge pull request #8478 from mattfarina/fix-lockfiles
Lockfiles without version ranges
2020-07-23 15:43:18 -04:00
Rajat Jindal
4faeedd98b fix watch error due to elb/proxy timeout
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
2020-07-23 12:04:54 +05:30
She Jiayu
d141593d83 Avoid hardcoded container port in default notes
Signed-off-by: She Jiayu <shejiayu1998@qq.com>
2020-07-23 12:43:45 +08:00
Matt Farina
25f67f74ee
Restoring Build behavior
Two things changed in this commit...

1. The Build behavior was restored and the change only impacts
   Update. This is a more minimal functionality change thats
   a more secure behavior
2. Cleanup from Josh's feedback on the PR to create a const
   and comment changes

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-07-22 15:51:27 -04:00
Matt Farina
1458113696
Adding helm v4 todo
Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-07-22 15:47:49 -04:00
Matt Farina
9cb90a8b23
Make unmanaged repositories version resolvable
If a repository was not know to helm (e.g. added using helm repo add)
then Helm would use the range set in the depenencies as the version
in the lock file. Lock files should not have ranges since they are
locked to versions.

Helm did this because the version information for repositories was
not know to Helm. This change fixes that by making the repository
and chart information known to Helm so it can resolve the versions.

Closes #8449

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-07-22 15:47:48 -04:00
Matt Farina
ff147e9ed7
Locking file URIs to a version in lockfile
Previously, if a range was specified for a file:// url as a
dependency the range would be put in the lockfile. Lockfiles are
designed to pin to a specific version and not support ranges. This
is for reproducibility.

The change here pins to a the specific version of the chart
specified using the file:// when update is run.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-07-22 15:42:26 -04:00
Andrew Melis
f9d35242d0 Enhance readability by extracting bitwise operation
Fixes https://github.com/helm/helm/pull/8282#discussion_r458368780

Signed-off-by: Andrew Melis <andrewmelis@gmail.com>
2020-07-22 12:23:44 -04:00