Commit graph

557 commits

Author SHA1 Message Date
Chris Berry
3d4e679d9f Update based on review comments
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 12:31:08 +00:00
Chris Berry
a55a477069 Fix lint
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 12:31:08 +00:00
Chris
3964f84ac8 Tidy up imports
Signed-off-by: Chris <bez625@gmail.com>
2025-02-21 12:31:07 +00:00
Chris Berry
cde407b7d1 Add hook annotations to output pod logs to client on success and fail
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 12:30:29 +00:00
hugehope
001d2978b6 refactor: using slices.Contains to simplify the code
Signed-off-by: hugehope <cmm7@sina.cn>
2025-02-18 15:20:46 +08:00
George Jenkins
547f49abf6
Merge pull request #13579 from gjenkins8/rm_chart_repo_find_repo_dups
refactor: Remove duplicate `FindChartIn*RepoURL` functions
2025-02-05 13:21:35 -08:00
Terry Howe
5a7046b9bf chore(oci): upgrade to ORAS v2
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Co-authored-by: Zoran Regvart <zoran@regvart.com>
2025-02-02 07:28:41 -07:00
George Jenkins
0ce267d907 more options
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-01-24 20:44:45 -08:00
George Jenkins
7ea1d1df66 refactor: Remove duplicate FindChartIn*RepoURL funcs
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-01-24 20:26:39 -08:00
George Jenkins
415c7e10fd
Merge pull request #13516 from TerryHowe/new-lint
chore: fix problems with latest lint
2025-01-23 18:30:23 -08:00
petercover
605b1a0cf7 chore: fix some comments
Signed-off-by: petercover <raowanxiang@outlook.com>
2025-01-23 00:38:38 +08:00
Robert Sirchia
57e94e5bd9
Merge pull request #13538 from godhanipayal/godhanipayal/ErrorLogging
Add Contextual Error Messages to RunWithContext
2025-01-17 15:42:15 -05:00
George Jenkins
53a4a59eb9
Merge pull request #13600 from gjenkins8/cleanup_NewShowWithConfig
cleanup: `NewShowWithConfig` -> `NewShow`
2025-01-14 12:42:54 -08:00
George Jenkins
77fa61ad39 refactor: Consolidate lint package Run() functions
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-01-08 15:36:18 -08:00
George Jenkins
ca5a9e69c0 refactor: Remove redundant NewPullWithOpts
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-01-08 15:36:18 -08:00
Payal Godhani
f8a08145fb Resolving conflict
-e
Signed-off-by: Payal Godhani <godhanipayal@gmail.com>
2025-01-08 15:36:06 -08:00
Matt Farina
f08e2d14bb Updating to helm.sh/helm/v4
Since Helm is going through breaking changes with Helm v4, the version path to
Helm needs to be updated.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-01-08 15:34:20 -08:00
Matt Farina
dc26e5b3e2 Update to Go 1.23
Multiple changes were made to pass linting. Some Go built-in names
are being used for variables (e.g., min). This happens in the Go
source itself including the Go standard library and is not always
a bad practice.

To handle allowing some built-in names to be used the linter config
is updated to allow (via opt-in) some names to pass. This allows us
to still check for re-use of Go built-in names and opt-in to any
new uses.

There were also several cases where a value was checked for nil
before checking its length when this is already handled by len()
or the types default value. These were cleaned up.

The license validation was updated because it was checking everything
in the .git directory including all remote content that was local.
The previous vendor directory was from a time prior to Go modules
when Helm handled dependencies differently. It was no longer needed.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-01-08 15:34:19 -08:00
George Jenkins
a8d39e6a17
Merge pull request #13576 from gjenkins8/consolidate_lint_run_functions
refactor: Consolidate lint package Run() functions
2025-01-07 08:41:18 -08:00
George Jenkins
5d13b0cac3
Merge pull request #13577 from gjenkins8/gjenkins/rm_pull_with_opts
refactor: Remove redundant `NewPullWithOpts`
2025-01-07 08:37:00 -08:00
George Jenkins
8468de42ed cleanup: NewShowWithConfig -> NewShow
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-01-05 10:16:31 -08:00
George Jenkins
3b9cce9669 cleanup: Remove 'ProcessDependenciesWithMerge'
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-01-05 10:09:16 -08:00
George Jenkins
88da89085e refactor: Remove redundant NewPullWithOpts
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2024-12-27 21:19:58 -08:00
George Jenkins
63623665ae refactor: Consolidate lint package Run() functions
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2024-12-27 21:12:48 -08:00
Matt Farina
2236294119 Updating to helm.sh/helm/v4
Since Helm is going through breaking changes with Helm v4, the version path to
Helm needs to be updated.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-12-26 16:33:51 -05:00
Matt Farina
5727f56a96
Update to Go 1.23
Multiple changes were made to pass linting. Some Go built-in names
are being used for variables (e.g., min). This happens in the Go
source itself including the Go standard library and is not always
a bad practice.

To handle allowing some built-in names to be used the linter config
is updated to allow (via opt-in) some names to pass. This allows us
to still check for re-use of Go built-in names and opt-in to any
new uses.

There were also several cases where a value was checked for nil
before checking its length when this is already handled by len()
or the types default value. These were cleaned up.

The license validation was updated because it was checking everything
in the .git directory including all remote content that was local.
The previous vendor directory was from a time prior to Go modules
when Helm handled dependencies differently. It was no longer needed.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-12-19 10:27:38 -05:00
Payal Godhani
5b18f525ed Fixing a typo
-e
Signed-off-by: Payal Godhani <godhanipayal@gmail.com>
2024-12-16 21:27:20 -08:00
Payal Godhani
34cd8341c3 Add Contextual Error Messages to RunWithContext
-e
Signed-off-by: Payal Godhani <godhanipayal@gmail.com>
2024-12-16 21:07:56 -08:00
Terry Howe
569f62e58b chore: fix problems with latest lint
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2024-12-10 10:40:37 -07:00
George Jenkins
b91a772d71
Merge pull request #13444 from justenstall/remove-status-flags
fix(status): remove --show-desc and --show-resources flags
2024-12-06 21:55:29 -05:00
George Jenkins
c724175b03
Merge pull request #13343 from niladrih/more-metadata
Add annotations and dependencies to get metadata output
2024-11-19 15:22:55 -08:00
Scott Rigby
bca7d31c9b
Merge pull request #12769 from banjoh/em/password-to-oci-registries
fix(helm): pass down username/password CLI parameters to OCI registry clients
2024-11-19 16:29:11 -05:00
Evans Mungai
7a22dd28d1
Rename CAFile to CaFile for consistency
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-11-19 21:18:27 +00:00
Justen Stall
483697584f
fix(status): remove --show-desc and --show-resources flags
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2024-11-14 15:24:28 -07:00
mathieu cesbron
fc17fc75e2 Fix typo "re-use" to "reuse"
Signed-off-by: mathieu cesbron <mathieu.rudy.cesbron@gmail.com>
2024-11-07 18:40:13 +07:00
Suleiman Dibirov
f4f4a6b81f fix(hooks): correct hooks delete order
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
2024-10-30 18:49:01 +02:00
wangjingcun
de9e138ec1 chore: fix some function names in comment
Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
2024-10-24 18:26:22 +08:00
Evans Mungai
323f88950a
Merge remote-tracking branch 'origin/main' into em/password-to-oci-registries 2024-10-22 17:54:10 +01:00
Niladri Halder
d351b091ca
Add annotations and dependencies to get metadata output
The output of helm get metadata includes a subset of the fields contained in
the chart.Metadata struct. This change adds the values of the annotations field
and the dependencies field to the output.

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
2024-10-04 11:22:35 +05:30
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
Evans Mungai
0687961da4
Revert CAFile rename breaking change
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-08-02 16:57:09 +01: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
Evans Mungai
12d8d28534
Add username/password to package subcommand
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-06-19 18:37:31 +01:00