1505 Commits
Author SHA1 Message Date
Matt Farina c7b0e32e54 bump version to 2.17
Signed-off-by: Matt Farina <matt@mattfarina.com>
(cherry picked from commit a690bad98a)
2020-10-19 16:58:41 -04:00
Matt Butcher 62d6e4076b Change default repositories for Helm v2 (#8901)
* switch to new repository URLs

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* added warning each time old repository is noticed

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-10-19 14:44:16 -06:00
Matt Farina 01dc62ecfd Moving Tiller to new location
The tiller primary location is now GitHub Container Registry.
It is also replicatated to GCR, Docker Hub, and Quay.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-10-14 09:35:55 -04:00
Martin Hickey d46f7bc2ca Fix for issue 8761
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-09-18 10:35:54 +00:00
Matt Butcher b9566b8799 fix formatting error (#8758)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-09-17 13:45:54 -06:00
Matthew Fisher a9d1204edd fix: use yaml annotations for yaml.v2 validation
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-09-17 12:37:52 -07:00
Matthew Fisher f2ede29480 Merge pull request from GHSA-c52f-pq47-2r9j
validate plugin metadata before loading
2020-09-17 11:44:07 -07:00
Matt Butcher 7c287078c1 backported fixes from helm3
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-09-17 12:02:49 -06:00
Matthew Fisher b0296c0522 validate plugin metadata before loading
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-09-17 09:11:33 -07:00
Jeff Knurek 5c9ff04da4 the last revert commit still was making an undesired change
Signed-off-by: Jeff Knurek <knurek.stuff@gmail.com>
2020-08-07 13:09:11 +02:00
Jeff Knurek cd90fb4319 revert the removal of strict param in functions for better backwards compatibility
Signed-off-by: Jeff Knurek <knurek.stuff@gmail.com>
2020-08-07 13:04:13 +02:00
Jeff Knurek a979ba8c58 fix: removed strict template errors from v2 linter
Signed-off-by: Jeff Knurek <knurek.stuff@gmail.com>
2020-07-26 16:00:15 +02:00
Martin Hickey 73d88af866 Merge pull request #7360 from cristiklein/fix/less-corruption-with-concurrent-executions-v2
fix(tiller): Avoid corrupting storage via a lock
2020-07-09 18:05:13 +01:00
zwwhdls 0b31450452 [v2] fix stack overflow error in helm template. (#7185)
* fix #6116

Signed-off-by: zwwhdls <zwwhdls@hotmail.com>

* fix another extreme case

Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
2020-07-07 13:26:51 -06:00
Matthew Fisher df3332e61a Merge pull request #8305 from novas0x2a/v2-orphan-resources
Consider namespace when comparing resources
2020-06-25 15:43:48 -07:00
Martin Hickey 059aeed8c7 Update after review
Review comment:

- https://github.com/helm/helm/pull/8198/files#r435237511

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-06-17 17:20:52 +00:00
Martin Hickey a90182e3b2 Add more informative error message for removed k8s APIs
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-06-17 15:53:36 +00:00
Matt Butcher def975f556 backported archive improvements from v3 (#8318)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-06-15 16:58:15 -06:00
Fabian Ruff 0c96138afa Consider namespace when comparing resources
Fixes #6857

X-Cherry-Picked: 7f7e90b407
Signed-off-by: Mike Lundy <mike@fluffypenguin.org>
2020-06-12 00:14:31 -07:00
Matt Farina 5f2584fd3d Merge pull request #7931 from mattfarina/fix-7924
Fix issue with sorting pod lists
2020-04-28 10:14:21 -04:00
Matt Farina 493cd34009 Fix issue with sorting pod lists
The sorting previously used the selfref which contained the name
on the end for all cases except pods. In that case the selfref
was to pods and not the specific pod. This caused an issue where
multiple pods had the same selfref used as the key for softing.

The objects being sorted are tables that each have one row. In the
new setup the key is the first cells value from the first and only
row. This is the name of the resource.

Note, the Get function now requests a table. The tests have been
updated to return a Table type for the objects.

Closes #7924

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-15 14:53:43 -04:00
Matt Butcher 0e32e6417b fix: lint with strict passes for helm create (#7926)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-04-15 11:48:07 -06:00
Matt Farina eb42670666 Merge pull request #7840 from mattfarina/fix-7812
Fix nil pointer error
2020-04-13 19:04:45 -04:00
Matt Butcher 5f6269d008 fix: fixes for Go 1.14 (#7848)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-04-01 13:32:02 -06:00
Matt Farina 88e95b0d7c Fix nul pointer error
Closes #7812

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-03-30 11:23:06 -04:00
Matt Farina 4aafed7457 Fixing validation issue
Latest() should not have been added Validate

Closes #7797

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-03-25 08:57:49 -04:00
Matthew Fisher 9d7b269499 fix recursion count in templates
backport of #7558 from master

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-03-20 10:01:34 -07:00
Matthew Fisher af3a021406 fix(engine): allow limited recursion in templates
This is a backport for PR 7443.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-03-20 09:50:46 -07:00
Matt Farina e8396c9283 Restores display of object status when displaying helm status
Changes to the Kubernetes API server and kubectl libraries caused
the status to no longer display when helm status was run for a
release. This change restores the status display.

Generation of the tables for display was moved server
side. A request for the data as a table is made and a kubectl
printer for tables can display this data. Kubectl uses this setup and
the structure here closely resembles kubectl. kubectl is still
able to display objects as tables from prior to server side
printing but only prints limited information.

Note, an extra request is made because table responses cannot be
easily transformed into Go objects for Kubernetes types to work
with. There is one request to get the resources for display in
a table and a second request to get the resources to lookup the
related pods. The related pods are now requested as a table as
well for display purposes.

This is likely part of the larger trend to move features like
this server side so that more libraries in more languages can
get to the feature.

Closes #6896

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-03-20 11:14:20 -04:00
Fernando Antivero b7d2947d10 fix(requirements): refactor to use common codepath for table coalescing (#7047)
* align both formats behaviors and now they will just differ in how to discover their paths
* add coverage for exports format and fix expected assertions for parent-child format to match the logic child values always wins
* just partially revert dda8497, this way parents values could be overridden when coalescing
* after getting better coverage we were able to refact both formats behaviors by merging their propagation logics into a single code path.
2020-03-06 14:04:29 -08:00
Cristian Klein c32c9a510b fix(tiller): Avoid corrupting storage via a lock
If two `helm upgrade`s are executed at the exact same time, then one of
the invocations will fail with "already exists".

If one `helm upgrade` is executed and a second one is started while the
first is in `pending-upgrade`, then the second invocation will create a
new release. Effectively, two helm invocations will simultaneously
change the state of Kubernetes resources -- which is scary -- then two
releases will be in `deployed` state -- which can cause other issues.

This commit fixes the corrupted storage problem, by introducting a poor
person's lock. If the last release is in a pending state, then helm will
abort. If the last release is in a pending state, due to a previously
killed helm, then the user is expected to do `helm rollback`.

This is a port to Helm v2 of #7322.

Signed-off-by: Cristian Klein <cristian.klein@elastisys.com>
2020-01-09 00:41:39 +01:00
Cristian Klein 840e0e271d fix(tiller): improve handling of corrupted storage
For some reason, many users experince corrupted storage with the
ConfigMaps storage backend. Specifically, several Releases are marked as
DEPLOYED. This patch improved handling of such situations, by taking the latest
DEPLOYED Release. Eventually, the storage will clean itself out, after
the corrupted Releases are deleted due to --history-max.

Closes #6031

Signed-off-by: Cristian Klein <cristian.klein@elastisys.com>
2020-01-02 11:10:06 +01:00
Matt Butcher ab797325c6 fix: backport #6901 to Helm 2 (#7196)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-12-17 10:33:16 -07:00
Martin Hickey c3060582bf Port PR 7114 to Helm 2 (#7128)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-12-11 08:03:21 +00:00
Taylor Thomas 77c973422c fix(kube): Fixes wait for jobs
This happened to be a bug we identified in Helm 3 and did not check if
it existed in Helm 2. The improved logic for job waiting used an automatic
retry. However, when we were creating the watcher, we were listing on everything
of that same api version and kind. So if you had more than 1 hook and the first
was successful, it would think everything was successful. I have validated that
this now fails as intended if a job is failing

Closes #6767

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-11-07 14:43:41 -07:00
Taylor Thomas e2894a18ee fix(kube): Fixes missing API versions
In several of the job checks and other conversions we were using legacyscheme.
I don't know why it was working before, but I am guessing something changed
between k8s 1.15 and 1.16. To fix I changed the references to use the default
scheme in client-go

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-11-06 15:19:03 -07:00
Matt Farina bed80a57f0 Merge pull request #6838 from mattfarina/up-2.16
bump version to v2.16.0-rc.1
2019-10-31 11:10:01 -04:00
Matt Farina 7584639303 Merge pull request #6738 from ysh7:support-cross-device-rename
Support cross device rename
2019-10-31 10:36:48 -04:00
Matt Farina c050a8bca6 bump version to v2.16.0-rc.1
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-30 16:27:41 -04:00
Matt Farina 77ca445c28 Merge pull request #6780 from mszostok/fix-search-repo-v2
fix(repo/search): fix helm repo search command to display proper versions
2019-10-30 13:26:23 -04:00
Matt Farina 5602f84f11 Merge pull request #6823 from mattfarina/2sa
Fix error when loading irregular files
2019-10-29 16:36:13 -04:00
Matt Farina a4f46d7a38 Fix error when loading irregular files
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-29 16:30:42 -04:00
Adam Reese d7d0427b0b bump protobuf to match kubernetes
Signed-off-by: Adam Reese <adam@reese.io>
2019-10-28 21:50:23 -07:00
Adam Reese 23c82fc3eb ref(glide.yaml): kubernetes 1.16.2
Signed-off-by: Adam Reese <adam@reese.io>
2019-10-28 21:48:23 -07:00
Taylor Thomas 93e4697f4a fix(wait): Removes ingress checks
Closes #6751

After doing some more digging, I found out that updating the status
of an `Ingress` object is completely optional. Because of this, Helm
cannot support ingresses with the `--wait` flag because there is no
standard way to identify that they are ready

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-25 10:45:42 -06:00
Mateusz Szostok 71fa47f576 fix(repo/search): fix helm repo search command to display proper versions
Introduce the `--devel` flag for `helm repo search` command.

`helm repo search` - searches only for stable releases, prerelease versions will be skip
`helm repo search --devel` - searches for releases and prereleases (alpha, beta, and release candidate releases)
`helm repo search --version 1.0.0 - searches for release in version 1.0.0

Signed-off-by: Mateusz Szostok <szostok.mateusz@gmail.com>
2019-10-25 00:24:57 +02:00
Matthew Fisher d8964037f7 Merge pull request #6727 from bacongobbler/backport-6702
fix(sympath): walk symbolic links one once
2019-10-22 15:31:56 -07:00
Oleg Sidorov 4cddc82c0b Reverted changes introduced in #6010
This commit reverts changes introduced in #6010 due to a massive
regression reported in #6708. An attempt to fix the problem in
https://github.com/helm/helm/pull/6709 seems to be unreasonably clumzy
and hacky, therefore reverting the offensive change seems to be the most
pragmatic solution.

This reverts commits:
  * 70cd32c4ce.
  * 9014bd9c50.

Signed-off-by: Oleg Sidorov <me@whitebox.io>
2019-10-22 22:26:38 +02:00
Yagnesh Mistry 465870a22e Move third_party/fs to internal/third_party/fs and update scripts/validate-license.sh
Signed-off-by: Yagnesh Mistry <ysh@live.in>
2019-10-23 01:48:03 +05:30
Yagnesh Mistry 7786caa6b0 Move fs to third_party/dep and include full bsd license text
Signed-off-by: Yagnesh Mistry <ysh@live.in>
2019-10-23 01:48:03 +05:30