29 Commits

Author SHA1 Message Date
Hidde Beydals
0cd9a60723 fix(rollback): errors.Is instead of string comp
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
(cherry picked from commit d158708fbf)
2025-12-13 19:53:15 +01:00
Marcin Chojnacki
8814bfb490 Fixing release labelling in rollback
1. Fixed propagating labels to rollback release

Signed-off-by: Marcin Chojnacki <marcin.chojnacki@nokia.com>
2023-11-03 16:45:37 +01:00
ithrael
db9460cc87 fix: helm rollback err tips
Signed-off-by: ithrael <wh01096045@gmail.com>
2023-08-20 01:01:02 +08:00
cndoit18
94dc605968 fix(rollback): fix helm rollback doesn't have meta.helm.sh annotations
Signed-off-by: cndoit18 <cndoit18@outlook.com>
2021-11-30 10:45:34 +08:00
zh168654
bfc575dec2 add waitwithjobs instead of changing wait api
Signed-off-by: zh168654 <zhangye.168@163.com>
2020-11-05 17:13:15 +08:00
zh168654
957d2a2bf9 add wait-for-jobs flag
Signed-off-by: zh168654 <zhangye.168@163.com>
2020-11-03 22:07:24 +08:00
Matt Butcher
ed5fba5142 refactor the release name validation to be consistent across Helm
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-09-17 11:34:31 -06:00
wawa0210
4be3804c50 Rollback command support for max history
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2020-07-14 07:56:17 +08:00
Matt Morrissette
1ab52fa79c fix(helm): stdin values for helm upgrade --install
Signed-off-by: Matt Morrissette <yinzara@gmail.com>
2020-02-27 11:07:02 -05:00
Taylor Thomas
93abfd75ad Remove reference to stdtime to reduce confusion
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-16 21:01:52 -05:00
Taylor Thomas
aa429e150a feat(*): Adds custom time package for better marshalling
This package mainly exists to workaround an issue in Go
where the serializer doesn't omit an empty value for time:
https://github.com/golang/go/issues/11939. This replaces all
release and hook object time references with the new time package
so things actually marshal correctly

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-15 14:13:19 -06:00
Adam Reese
572b92dc8a feat(pkg/kube): add openapi validation for k8s objects
Add back OpenAPI validation for kubernetes objects.

Fixes: #6382

Signed-off-by: Adam Reese <adam@reese.io>
2019-10-08 12:55:19 -07:00
Matt Farina
9bc7934f35 Updating the module for v3 as the major version
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-03 14:27:05 -04:00
Taylor Thomas
17854e83af feat(*): Ports --cleanup-on-fail to v3
This ports the functionality of cleanup on fail to v3 as introduced in #4871. This has been tested manually
and would be a good candidate for a new acceptance test.

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-09-23 16:13:02 -06:00
Vibhav Bobade
d00e328020 Applied check to actions
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-27 04:16:02 +05:30
Adam Reese
b2d5e41fc7 ref(*): remove dead code
Signed-off-by: Adam Reese <adam@reese.io>
2019-08-19 10:22:27 -07:00
Jacob LeGrone
5ab42504f1 Merge branch 'dev-v3' of https://github.com/helm/helm into test-as-hook 2019-07-31 18:06:08 -04:00
Jacob LeGrone
caa4240a30 refactor(release): track test executions via Hook type
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-07-31 15:33:56 -04:00
Jacob LeGrone
72127c391c feat(test): define tests as Jobs and allow arbitrary supporting resources
This updates commands install, upgrade, delete, and test to share the
same implementation for hook execution.

BREAKING CHANGES:
- The `test-failure` hook annotation is removed.

Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-07-31 15:33:56 -04:00
Taylor Thomas
dd8222d7f2 Removes clientset method from interface in favor of the configuration struct
Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-30 11:51:40 -06:00
Taylor Thomas
15fc57f8a3 ref(*): Refactors kube client to be a bit more friendly
This changes most of the KubeClient interface to only ever build objects once and
then pass in everything as lists of resources. As a consequence, we needed to refactor
several of the actions. I took the opportunity to refactor out some duplicated
code while I was in the same area

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-30 11:51:39 -06:00
Taylor Thomas
d031651c45 fix(pkg/action): Adds back in missing wait functionality
In my previous PR, I did not notice that the wait functionality had been completely removed
from the actions. This restores wait functionality to upgrade and rollback

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-03 13:05:47 -06:00
Adam Reese
0338576fc5 ref(pkg/kube): cleanup kube client interface
* move the main interface to it's own file
* removed summarizeKeptManifests() which was the last place kube.Get()
  was called
* when polling for hooks, use external types
* refactor out legacyschema
* refactor detecting selectors from object
* refactor creating test client

Signed-off-by: Adam Reese <adam@reese.io>
2019-05-15 12:31:47 -07:00
Adam Reese
b97f881be0 ref(*): use time.Duration for timeouts
Signed-off-by: Adam Reese <adam@reese.io>
2019-05-07 15:09:00 -07:00
Adam Reese
2dd4744d23 ref(pkg/kube): extract wait logic from install/update
This change adds a new method for waiting for kubernetes resources.

Signed-off-by: Adam Reese <adam@reese.io>
2019-05-07 12:29:11 -07:00
Adam Reese
295092cd7d ref(pkg/action): refactoring dup code and linter fixes
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-26 11:11:27 -07:00
Adam Reese
895e9192d4 feat(*): use vanity import helm.sh/helm
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-13 13:43:47 -07:00
Matthew Fisher
f185103b60 ref(action): move AddFlags functions back to cmd
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 08:58:35 -07:00
Matthew Fisher
2571dbf82f ref: remove pkg/helm, pkg/hapi, pkg/tiller
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-12 09:47:12 -07:00