Commit Graph

5200 Commits

Author SHA1 Message Date
Matt Farina dd2e5695da
Fix nul pointer error
Closes #7812

Signed-off-by: Matt Farina <matt@mattfarina.com>
(cherry picked from commit 88e95b0d7c)
2020-04-14 15:30:53 -04:00
Matt Butcher 288b521d5e
fix: fixes for Go 1.14 (#7848)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
(cherry picked from commit 5f6269d008)
2020-04-14 15:30:06 -04:00
Matt Farina 89bd14c154
Fixing validation issue
Latest() should not have been added Validate

Closes #7797

Signed-off-by: Matt Farina <matt@mattfarina.com>
(cherry picked from commit 4aafed7457)
2020-03-26 11:51:09 -04:00
Matthew Fisher 5e135cc465
fix recursion count in templates
backport of #7558 from master

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
(cherry picked from commit 9d7b269499)
2020-03-23 12:27:04 -04:00
Matthew Fisher 7ea3d725a3
fix(engine): allow limited recursion in templates
This is a backport for PR 7443.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
(cherry picked from commit af3a021406)
2020-03-23 12:26:50 -04:00
Matt Farina fe4ffcfa0b
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>
(cherry picked from commit e8396c9283)
2020-03-23 12:25:37 -04:00
Fernando Antivero 42941797f3
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.

(cherry picked from commit b7d2947d10)
2020-03-23 12:24:57 -04:00
zwwhdls 210f7e2d0c
[v2]stop with an error immediately if a file or directory with that name already exists (#7188)
* fix #7182

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

* fix typo

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

* add testcase

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

* fix conflict subdirectory when untardir is the clashing directory

Signed-off-by: zwwhdls <zwwhdls@hotmail.com>
(cherry picked from commit 63e1c9bc7f)
2020-03-23 12:21:47 -04:00
Yury Fedorov 0629eb6dc0
Fix secure installation link in v2 (#6912)
Signed-off-by: yury <yury@panoply.io>
(cherry picked from commit dc2f5bcb33)
2020-03-23 12:21:08 -04:00
Cristian Klein 0c99ca7b9d
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>
(cherry picked from commit 840e0e271d)
2020-03-23 12:20:20 -04:00
Matt Butcher 713ed84dcb
fix: backport #6901 to Helm 2 (#7196)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
(cherry picked from commit ab797325c6)
2020-03-23 12:19:46 -04:00
Martin Hickey 18ab2b976e
Port PR 7114 to Helm 2 (#7128)
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
(cherry picked from commit c3060582bf)
2020-03-23 12:18:39 -04:00
Matthew Fisher 1ee0254c86
chore(rootfs): bump alpine image to 3.11
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-02-13 15:27:25 -08:00
Taylor Thomas bbdfe5e780
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>
(cherry picked from commit e2894a18ee)
2019-11-12 13:17:46 -05:00
Taylor Thomas eec697424c
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>
(cherry picked from commit 77c973422c)
2019-11-12 13:17:11 -05:00
Yagnesh Mistry e13bc94621
add comment to indicate source of fs.go
Signed-off-by: Yagnesh Mistry <ysh@live.in>
(cherry picked from commit b66ae7493f)
2019-10-31 11:36:55 -04:00
Yagnesh Mistry 76c6cff625
Move third_party/fs to internal/third_party/fs and update scripts/validate-license.sh
Signed-off-by: Yagnesh Mistry <ysh@live.in>
(cherry picked from commit 465870a22e)
2019-10-31 11:36:39 -04:00
Yagnesh Mistry 5d105aa5dc
Move fs to third_party/dep and include full bsd license text
Signed-off-by: Yagnesh Mistry <ysh@live.in>
(cherry picked from commit 7786caa6b0)
2019-10-31 11:36:24 -04:00
Brice Rising 78242d1378
Fix url for bsd license
Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 394ba588b9)
2019-10-31 11:36:13 -04:00
Brice Rising 42f12563e4
Fix linting issues
Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 16852f04d9)
2019-10-31 11:36:02 -04:00
Brice Rising fba02b765f
Switch BSD license in fsutil package to dep project license
Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 45d723359e)
2019-10-31 11:35:52 -04:00
Brice Rising d6c0026f26
Copy approach done in another project for using bsd license
I found another package that took code from a BSD licensed open source project. I copied their approach for reusing that license.

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 5ab89c9794)
2019-10-31 11:35:41 -04:00
Brice Rising 4c0d44e5d5
Add Apache License line to fsutil
This is probably not the correct apporach to using bsd licensed code under an apache license.

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 55ea698784)
2019-10-31 11:35:30 -04:00
Brice Rising fdb0934067
Run gofmt -s -w using official golang docker image
For some reason, gofmt -s -w produced a different result than running gofmt on my host os

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 3d78e6a1b2)
2019-10-31 11:34:44 -04:00
Brice Rising 857c90b1ed
Run gofmt -s on fs_test
Neeted to run formatting on fs_test.go

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit c292ba5c8f)
2019-10-31 11:34:26 -04:00
Brice Rising 577d500738
Remove dead code
Unused var was in fs.go. Removed it.

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit aacffe5fb2)
2019-10-31 11:34:13 -04:00
Brice Rising 14f051ef50
Fix style issues
Our style settings don't like underscores in variable names, so I switched to camel case. Also, err was unused in some places, so I made an error a fail condition for some test.

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 3d15ec7125)
2019-10-31 11:34:02 -04:00
Brice Rising 4b9efedf6d
Skip inaccessible file tests for root
Root can access all files, so the tests for inaccessible files were failing. Now we will skip these tests when running as root.

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 3469c9a17c)
2019-10-31 11:33:50 -04:00
Brice Rising 112c530826
Remove dep/internal/test dependency
Recreated the features of the test package in dep that were necessary to run the tests in the fs package.

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 60bd2a56fd)
2019-10-31 11:33:38 -04:00
Brice Rising 0c7f203c6d
Removed unused methods from fs package
The fs package tests are going to be a lot of work to get working without the internal test package used by golang/dep, so I removed all of the unused ones by this project to make the work easier.

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 51dbd7c1a6)
2019-10-31 11:33:19 -04:00
Brice Rising c41037d901
Fix rename for helm dep upgrade
helm dependency upgrade wasn't working on certain file system because it assumes that os.rename is available. Since rename isn't available for subfolders in docker containers, I ripped a fallback rename strategy from dep (5b1fe9e6d8/internal/fs/fs.go (L103-L118)) that works in docker.

Signed-off-by: Brice Rising <brice.rising@slalom.com>
(cherry picked from commit 94d87ef95d)
2019-10-31 11:33:05 -04:00
Matt Farina e13bf2345f
bump version to v2.16.0-rc.1
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-30 16:02:48 -04:00
Matt Farina db9520dde5
Merge pull request #6834 from mattfarina/naming-tweak
Update language on search usage
2019-10-30 13:47:48 -04:00
Matt Farina ae6a33fc2f
Update language on search usage
This is a followup to PR #6780 that implements some discussed
language changes.

Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-30 13:37:47 -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 9bdd4703a3
Merge pull request #6810 from adamreese/ref/kube-1.16.2
ref(glide.yaml): kubernetes 1.16.2
2019-10-29 12:22:32 -07:00
Adam Reese 8a0185b103
pin md2man
Signed-off-by: Adam Reese <adam@reese.io>
2019-10-29 12:02:55 -07: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 3e4c19b353
Merge pull request #6792 from thomastaylor312/fix/ingress_wait
fix(wait): Removes ingress checks
2019-10-25 15:09:49 -06: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
Matt Farina 0a9bf4f966
Merge pull request #6754 from karuppiah7890/fix-lint-for-no-package-found-v2
fix silent lint ignore for non existing packaged charts
2019-10-23 17:27:30 -04:00
Martin Hickey 1f692330d4
Update release checklist (#6762)
Update to the checklist of things encountered during patch release.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-10-23 15:21:56 +01:00
Karuppiah Natarajan 23926365a0
fix silent lint ignore for non existing packaged charts
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-10-23 09:23:40 +05:30
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
Matthew Fisher be6551c0f6
Merge pull request #6749 from icanhazbroccoli/icanhazbroccoli/revert-6010
Reverted changes introduced in #6010
2019-10-22 13:42:44 -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