27 Commits

Author SHA1 Message Date
Nathan Baulch
ff9dd262e3 Fix typos
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:29:56 +10:00
Matt Farina
25c473834e Enabling hide secrets on install and upgrade dry run
This change adds a new flag to the install and upgrade commands in
the Helm client and properties to the install and upgrade action.
The new flag is --hide-secret and can only be used with the
--dry-run flag.

The --dry-run flag is designed to send all chart rendered manifests to
stdout so that they can be inspected.

When the --hide-secret flag is used the Secret content is removed from
the output.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-03-13 08:34:28 -04:00
Scott Rigby
2745909d3d Merge pull request #9653 from Okhoshi/feat/reset-then-reuse-flag
feat(helm): Add --reset-then-reuse-values flag to 'helm upgrade'
2023-11-04 03:46:03 -04:00
Joe Julian
7de6d7f162 Merge branch 'main' into feat/reset-then-reuse-flag
Signed-off-by: Joe Julian <me@joejulian.name>
2023-08-01 16:43:55 -07:00
Dmitry Chepurovskiy
7b13ac9914 Added error in case try to supply custom label with name of system label during install/upgrade
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
2023-07-25 17:55:05 +03:00
Dmitry Chepurovskiy
f96acb4fc8 Adding support merging new custom labels with original release labels during upgrade
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
2022-06-17 21:36:43 +03:00
Dmitry Chepurovskiy
f1700e86d1 Added unit tests for implemented install/upgrade labels logic
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
2022-06-17 21:36:41 +03:00
Neven Miculinic
5059ae843e Fix install memory/goroutine leak
Signed-off-by: Neven Miculinic <neven.miculinic@gmail.com>
2021-12-20 10:17:38 +01:00
Stephane Moser
c62ce12bed Refactor SIGTERM logic
Use context to handle SIGTERM in the cmd/helm instead of pkg/action

Signed-off-by: Stephane Moser <moser.sts@gmail.com>
2021-07-26 01:04:58 +01:00
Stephane Moser
7bfb2a3602 Improve tests
Rename the package time
Redesgin the logic to make a FakeKubeClient wait for a ammount time.
Remove unneed logic in the PrintingKubeClient

Signed-off-by: Stephane Moser <moser.sts@gmail.com>
2021-07-15 10:26:49 +01:00
Stephane Moser
2164e3f26c Rename time dependecy
Signed-off-by: Stephane Moser <moser.sts@gmail.com>
2021-07-15 10:08:25 +01:00
Stephane Moser
660183d659 Add test for atomic upgrade and install when it is interrupted
Add tests when the install release is Interrupted and the flag Wait or Atomic is set

Signed-off-by: Stephane Moser <moser.sts@gmail.com>
2021-07-04 12:07:31 +01:00
Stephane Moser
2fa339b25d Add test for Upgrade Release Interrupted
Implement timer in the fake.go and printer.go to simulate the wait period
Add test Upgrade Release when it is interruped with SIGINT

Signed-off-by: Stephane Moser <moser.sts@gmail.com>
2021-07-04 12:07:03 +01:00
Quentin Devos
a9d59f946a feat(helm): add --reset-then-reuse-values flag to 'helm upgrade'
When '--reset-then-reuse-values' is used on 'helm upgrade', the chart's values will be
reset to the values of the deployed chart while the current release's values will be
reused and merged with the values passed as argument (is any). '--reset-values' and
'--reuse-values' flags take precedence over `--reset-then-reuse-values', making it
ignored if one or the other is also used.

Closes #8085, #3957

Signed-off-by: Quentin Devos <quentin@devos.pm>
2021-04-27 23:34:32 +02:00
zh168654
957d2a2bf9 add wait-for-jobs flag
Signed-off-by: zh168654 <zhangye.168@163.com>
2020-11-03 22:07:24 +08:00
Cristian Klein
20fb7bac4e fix(helm): Added test for concurrent upgrades
Signed-off-by: Cristian Klein <cristian.klein@elastisys.com>
2020-07-13 22:54:52 +02:00
Ilya Shaisultanov
8d566c0ade When no resources were created, do not try to clean them up
Fixes #7481

Signed-off-by: Ilya Shaisultanov <ilya.shaisultanov@gmail.com>
2020-01-29 10:27:33 +01:00
Taylor Thomas
5a23663c6b Merge pull request #6679 from thomastaylor312/feat/timestamp_hell
feat(*): Adds custom time package for better marshalling
2019-10-17 14:23:25 -05:00
Karuppiah Natarajan
dfed8ab5e3 fix install storing computed values in release
this was partially fixed in #6430 but the fix only
worked for values without nesting. this PR fixes it.
this is done by doing a deep copy of values rather
than a top level keys copy. deep copy ensures
values are not mutated during coalesce()
execution which leads to bugs like #6659

the deep copy code has been copied from:

https://gist.github.com/soroushjp/0ec92102641ddfc3ad5515ca76405f4d

which is in turn inspired by this stackoverflow answer:
http://stackoverflow.com/a/28579297/1366283

Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-10-17 16:37:19 +05:30
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
Matthew Fisher
0ae0f0742d fix(action): fix import statement
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-05 11:51:10 -07:00
Matthew Fisher
02999565a4 Merge pull request #6556 from karuppiah7890/conditional-dependencies-not-working-v3
fix(pkg/action): fix conditional dependencies not working with reuse values
2019-10-05 11:00:28 -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
Karuppiah Natarajan
337f52c566 fix(pkg/action): fix conditional dependencies not working with reuse values
Closes #6530

Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-10-02 19:33:19 +05:30
Joe Lanford
68ee30b48c cmd/*,pkg/*: move ValueOptions to cmd package and decouple from SDK
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
2019-08-01 11:04:36 -04:00
Karuppiah Natarajan
6d02079016 Fix values being ignored when reusing values on upgrade
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>

Co-authored-by: Nandhagopal Ezhilmaran <nandhagr8@gmail.com>
2019-08-01 00:25:15 +05:30
Taylor Thomas
29c343278e feat(action): Refactors unit tests with better fakes
This also adds unit tests for the Atomic and Wait functionality

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-07-11 14:45:05 -06:00