Commit graph

513 commits

Author SHA1 Message Date
Nathan Baulch
ef85fa7f2d
Grammar fixes
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:30:31 +10:00
Nathan Baulch
ff9dd262e3
Fix typos
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:29:56 +10:00
Scott Rigby
8a26add23f
Fix linting error for pr 12876
golangci-lint passed when last commit was made on #12876, but has since failed.
This is probably because the linter has since updated.

I ran locally with the same version of golangci-lint we run in GH Actions, and
this is the only error now (an additional linting error in
pkg/action/package.go since #12876 has already been fixed.

```sh
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.58.1

./bin/golangci-lint run pkg/action/...

./bin/golangci-lint run ./...
```

we should be good now.

Signed-off-by: Scott Rigby <scott@r6by.com>
2024-08-14 16:34:27 -04:00
Matt Farina
c261d0655c
Merge pull request #12876 from manno/sdk-ignore-missing-annotations
Allow install, update action to adopt existing resources (sdk only)
2024-08-14 15:56:37 -04:00
Scott Rigby
f0442777bb
Merge pull request #12743 from anessi/feat/skip-schema-validation
feat(helm): add --skip-schema-validation flag to helm 'install', 'uprade' and 'lint'
2024-08-12 14:28:52 -04:00
Joe Julian
4278ada158
Merge pull request #13085 from alex-kattathra-johnson/issue-12961
Fix race condition in TestInstallRelease_Wait_Interrupted test
2024-07-08 16:47:35 -07:00
Joe Julian
15e36139c1
Merge pull request #13130 from idsulik/issue-13127
fix: update error handling in Configuration.Init method, add tests for the method
2024-07-08 16:38:34 -07:00
Joe Julian
cda2c4f802
Merge pull request #12924 from porridge/drop-apis
Drop unused field.
2024-07-08 16:35:36 -07:00
anessi
acf7158565
feat(helm): add --skip-schema-validation flag to helm 'install', 'upgrade' and 'lint'
When --skip-schema-validation is set, any schema contain in the helm chart is ignored. Defaults to 'false'.

Closes #10398

Signed-off-by: anessi <16045045+anessi@users.noreply.github.com>
2024-06-25 16:43:48 +02:00
Alex Johnson
f69a2dd03e Fix race condition in TestInstallRelease_Wait_Interrupted test
Signed-off-by: Alex Johnson <hello@alex-johnson.net>
2024-06-19 07:00:41 -05:00
Suleiman Dibirov
800c33a5aa fix: update error handling in Configuration.Init method, add tests for the method
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
2024-06-19 07:46:38 +03:00
Andrew Block
414cf94666
Merge pull request #11600 from miles-w-3/chart-notes
Added support for hiding notes from install/upgrade output
2024-06-12 06:24:59 -05:00
Matt Farina
a753ee7f43
Merge pull request #12866 from robertsirc/Correcting-Linting-Errors
Correcting linting errors
2024-04-10 14:04:34 -04:00
Marcin Owsiany
a6863a64ce Drop unused field.
Signed-off-by: Marcin Owsiany <porridge@redhat.com>
2024-04-04 11:14:23 +02:00
Mario Manno
a7856c0398 Add ability to adopt unmanaged resources
Allow the SDK actions to adopt existing resources. This allows install
and update to overwrite resources. If TakeOwnership is not set, adoption
is only possible if they existing resources have the right labels
(managed-by) and annotations (release-name, ...).

Signed-off-by: Mario Manno <mmanno@suse.com>
2024-03-13 14:09:23 +01: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
Robert Sirchia
d58d7b3762 Fixing all the linting errors
Cleaned up all the linting errors we are getting.

Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-03-11 17:13:34 -04:00
Antoine Deschênes
869c1d2560 lint: Add --kube-version flag to set capabilities and deprecation rules
Signed-off-by: Antoine Deschênes <antoine@antoinedeschenes.com>
2024-01-08 19:35:41 -05:00
Matt Farina
847369c184
Update to Go 1.21 for builds
Noteis:
1. This moves golangci scanning to a GitHub action. This will
   enable inline pointers to issues in the PR where linting fails.
2. Go 1.21 is specified in the go.mod because Kubernetes libs
   require it.
3. The lint issues were removed. Some were fixed while others
   were handled by skipping linting or using _ as an argument.
   Many of these can be refactored later for better cleanup.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-01-08 15:48:36 -05:00
Joe Julian
99b8f443d1
Merge pull request #11387 from zak905/fix_post_install_hook_issue
fix post install hook deletion due to before-hook-creation policy
2024-01-05 15:44:20 -08:00
Matt Farina
c682fdfebf
Merge pull request #12539 from chojnack/main
Fixing release labelling in rollback
2023-11-07 08:36:48 -05: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
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
Miles Wilson
0c541398f2 Added support for hiding notes from install/upgrade output
Signed-off-by: Miles Wilson <wilson.mil@icloud.com>
2023-10-05 15:59:58 -04:00
b4nks
f004d42847 remove useless print during prepareUpgrade
Signed-off-by: b4nks <b4nks@protonmail.com>
2023-10-02 19:56:52 +02:00
Michał Słapek
169561a1b3 Fix leaking goroutines in Install
Signed-off-by: Michał Słapek <28485371+mslapek@users.noreply.github.com>
2023-09-18 20:13:47 +01:00
Matt Farina
ef02cafdd0
Merge pull request #12274 from mih-kopylov/get-metadata
Restore `helm get metadata` command
2023-09-14 10:20:57 -04:00
Matt Farina
5a1475ee36
Merge pull request #11294 from Juneezee/test/t.TempDir
test: replace `ensure.TempDir` with `t.TempDir`
2023-09-14 09:55:51 -04:00
Joe Julian
1d2221f9d6
Merge pull request #12290 from Ithrael/fix/helm-rollback-err-tips
fix(rollback): helm rollback err tips
2023-08-25 09:15:12 -07:00
Joe Julian
b6c679eb97
Merge pull request #12321 from LuBingtan/dev
fix(helm): fix GetPodLogs, the hooks should be sorted before get the logs of each hook
2023-08-23 17:18:54 -07:00
Joe Julian
4ff7d90872
Merge remote-tracking branch 'upstream/main' into add-labels-to-install-upgrade 2023-08-23 10:42:16 -07:00
Bingtan Lu
4e5e68d55c fix(helm): fix GetPodLogs, the hooks should be sorted before get the logs of each hook
Signed-off-by: lubingtan <lubingtan@126.com>
2023-08-22 16:57:57 +08:00
ithrael
db9460cc87 fix: helm rollback err tips
Signed-off-by: ithrael <wh01096045@gmail.com>
2023-08-20 01:01:02 +08:00
Joe Julian
d9e0688640
Merge remote-tracking branch 'upstream/main' into fix-10566 2023-08-11 07:35:32 -07:00
Joe Julian
1a465d603d
Merge pull request #10564 from suzaku/ignore-not-found
Closes #3352, add support for --ignore-not-found just like kubectl delete
2023-08-10 17:45:59 -07:00
Joe Julian
4b28d7b08d
Merge remote-tracking branch 'upstream/main' into fix1 2023-08-08 23:06:31 -07:00
satoru
5b08985138 goimports
Signed-off-by: satoru <satorulogic@gmail.com>
2023-08-09 13:52:45 +08:00
suzaku
48dbda2fa8 Fix #3352, add support for --ignore-not-found just like kubectl delete
Signed-off-by: suzaku <satorulogic@gmail.com>
2023-08-09 13:51:23 +08:00
Joe Julian
b30d7152b7
Merge remote-tracking branch 'upstream/main' into feat/reset-then-reuse-flag 2023-08-08 08:10:01 -07:00
Mikhail Kopylov
0b5e9d37c8 Restore helm get metadata command
Signed-off-by: Mikhail Kopylov <mih.kopylov@yandex.ru>
2023-08-04 07:49:00 +03:00
Joe Julian
e8e6da28d1
Revert "Add helm get metadata command"
Signed-off-by: Joe Julian <me@joejulian.name>
2023-08-03 11:44:03 -07: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
Joe Julian
b12139a6ec
Merge pull request #11586 from jmhbnz/main
Remove warning for template directory not found
2023-08-01 16:32:51 -07:00
Joe Julian
847d2bb3c6
Merge pull request #11631 from mih-kopylov/get-metadata
Add `helm get metadata` command
2023-08-01 16:17:13 -07:00
Scott Rigby
7d190be0d0
Merge pull request #12128 from aryan9600/plain-http
oci: Add flag --plain-http to enable working with HTTP registries
2023-08-01 14:32:06 -04:00
Dmitry Chepurovskiy
735ff8f92c
Update pkg/action/install.go
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
2023-07-30 17:57:01 +03:00
Eng Zer Jun
2ceebffc77
test: replace ensure.TempDir with t.TempDir
This commit replaces `ensure.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `ensure.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-07-29 16:11:22 +08:00
Matt Farina
343389856b
Merge pull request #12162 from mattfarina/fix-merge-values-ugh
Fix multiple bugs in values handling
2023-07-26 09:30:09 -04: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
Matt Farina
96e33e2773
Tweaking new dry-run internal handling
There are a few changes to the new dry-run handling:

1. Some documentation is added to help clarify what is happening
   and what is expected.
2. DryRun is never changed by internal handling. If an API user
   sets the property it is not changed by our code.
3. The behavior on contacting the server with false/none is made
   consistent between install and upgrade.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-07-20 14:26:46 -04:00