Commit Graph

8091 Commits

Author SHA1 Message Date
Austin Abro 1a3fb75b34
merge
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-27 13:56:52 +00:00
Matt Farina 8602af9e92
Merge pull request #30589 from mattfarina/release-to-release-v1
Move pkg/release to pkg/release/v1 to support v3 charts
2025-02-26 10:42:48 -05:00
Matt Farina e711488970
Move pkg/release to pkg/release/v1 to support v3 charts
This is part of HIP 20 which provides a means to have v3 charts
that live alongside v2 charts while having breaking changes.

The plan is to have a different release object for v3 chart
instances for at least a couple reasons:
1. So that the chart object on the release can be fundamentally
   different.
2. So that Helm v3 does not detect or try to work with instances
   of charts whose apiVersion it does not know about.

Note: it is expected that Helm v3 usage will be used long after
the Helm project no longer supports it. 5 years after Helm v2
had reached end-of-life there was still usage of it.

Note: The release util package is separate from the versioned
elements as it is planned to use generics to handle multiple
release object versions.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-02-26 10:14:15 -05:00
Austin Abro 09faaac273
merge
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-26 13:18:21 +00:00
Robert Sirchia c95d8cefcd
Merge pull request #30572 from yardenshoham/post-renderer-once
fix: error when more than one post-renderer is specified
2025-02-25 15:43:54 -05:00
Yarden Shoham 0d5e64c1f2 Fix formatting
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2025-02-25 22:34:50 +02:00
Yarden Shoham 79dadc6fe4 Merge branch 'main' into post-renderer-once 2025-02-25 22:33:45 +02:00
Matt Farina 35a8bd3a77
Merge pull request #30586 from mattfarina/chart-to-chart-v2
Move pkg/chart to pkg/chart/v2 to prepare for v3 charts
2025-02-25 15:29:11 -05:00
Robert Sirchia 74347ce968
Merge pull request #30585 from robertsirc/remove-deprecated-apis
removing old apis
2025-02-25 15:27:31 -05:00
Matt Farina 61d3eca55c
Move pkg/chart to pkg/chart/v2 to prepare for v3 charts
This change moves the code, updates the import locations, and
adds a doc.go file to document what the v2 package is for.

This is part of HIP 20 for v3 charts

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-02-25 15:20:44 -05:00
Robert Sirchia 4da004e2dc
removing old apis
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-02-25 15:15:06 -05:00
Austin Abro 29c250c233
add back interface log check
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-25 16:09:30 +00:00
Austin Abro a18589c4d8
fmt
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-25 14:42:52 +00:00
Austin Abro 5a254dae21
cleanup
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-25 14:42:14 +00:00
Austin Abro 11eeb4a6b1
merge
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-25 14:36:29 +00:00
Austin Abro 4f33e5c97f
test refactoring
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-25 04:08:51 +00:00
Austin Abro 75292c5e04
refactor
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-25 04:05:12 +00:00
Austin Abro b79dfd09b0
refactor
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
2025-02-25 03:51:38 +00:00
Robert Sirchia 841f4b1256
Merge pull request #30582 from helm/dependabot/go_modules/main/golang.org/x/crypto-0.35.0
build(deps): bump golang.org/x/crypto from 0.33.0 to 0.35.0
2025-02-24 17:38:45 -05:00
dependabot[bot] 17adaa437a
build(deps): bump golang.org/x/crypto from 0.33.0 to 0.35.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.33.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.33.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 22:21:24 +00:00
Matt Farina bff495510d
Merge pull request #30571 from yardenshoham/exec-no-output
feat: error out when post-renderer produces no output
2025-02-24 15:36:19 -05:00
Matt Farina 50469d702e
Merge pull request #30580 from mattfarina/releaseutil-to-release-util
Move pkg/releaseutil to pkg/release/util
2025-02-24 15:15:47 -05:00
Matt Farina 18ca7c1002
Move pkg/releaseutil to pkg/release/util
The releaseutil package was originally designed to work against a
generated codebase from a protobuf in Helm v2. This is when Helm
used gRPC to communicate to a server side component named Tiller.
When Helm moved everything client side, this package remained and
it supported the release package.

This change moves releaseutil to be a sub-packge of release. This
is part of the change to support apiVersion v3 charts which is
documented in HIP 20

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-02-24 14:58:51 -05:00
Yarden Shoham ab926212d9
Apply suggestions from code review
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2025-02-24 07:26:12 +02:00
Yarden Shoham dd728861a9 Fix tests
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2025-02-24 07:24:15 +02:00
Yarden Shoham 326fdc3e5f
Apply suggestions from code review
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2025-02-24 07:23:18 +02:00
George Jenkins a0c281c14d
Merge pull request #30568 from helm/dependabot/github_actions/main/ossf/scorecard-action-2.4.1
build(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.1
2025-02-23 19:31:08 -08:00
George Jenkins ce4007fd1c
Merge pull request #30569 from helm/dependabot/github_actions/main/actions/upload-artifact-4.6.1
build(deps): bump actions/upload-artifact from 4.6.0 to 4.6.1
2025-02-23 19:30:40 -08:00
Felipe Santos 392ff93916
Fix flaky TestDedupeRepos (#30576)
Signed-off-by: Felipe Santos <felipecassiors@gmail.com>
2025-02-23 11:51:33 -08:00
Joe Julian 0fcd1d33b3
Merge pull request #11112 from felipecrs/filter-dup-repos
perf(dep-up): do not update the same repo multiple times
2025-02-22 12:50:31 -08:00
Yarden Shoham 9e17871afb fix: error when more than one post-renderer is specified
We now make sure the post-renderer flag can be passed at most once instead of silently taking the last one passed.

Example:

```bash
$ helm template test ...  --post-renderer=true --post-renderer=cat
Error: invalid argument "cat" for "--post-renderer" flag: cannot set post-renderer more than once, given: cat, previous: true
```

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2025-02-22 14:25:26 +02:00
Yarden Shoham f475f3e1fd feat: error out when post-renderer produces no output
When the templating post-renderer produces no output, something went wrong so we error out.

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2025-02-22 13:05:21 +02:00
Scott Rigby 2cda65d444
Merge pull request #10309 from Bez625/main
Add hook annotation to output hook logs to client on error
2025-02-21 18:12:16 -05:00
dependabot[bot] 3d35e786c7
build(deps): bump actions/upload-artifact from 4.6.0 to 4.6.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](65c4c4a1dd...4cec3d8aa0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-21 21:59:44 +00:00
dependabot[bot] 5c648151d5
build(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.1
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](62b2cac7ed...f49aabe0b5)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-21 21:59:40 +00:00
Matt Farina 1382a2894a
Merge pull request #30567 from mattfarina/chartutil-to-chart-util
Moving chartutil to chart/util
2025-02-21 15:49:30 -05:00
Matt Farina e60979b27a
Merge pull request #30566 from robertsirc/remove-config.go
remove unused config.go
2025-02-21 15:47:39 -05:00
Robert Sirchia 8dd279271e
remove unused config.go
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-02-21 15:33:24 -05:00
Matt Farina 5c0deec327
Moving chartutil to chart/util
chartutil was originally created to operate on protobufs which are
no longer part of Helm. The util package makes more sense to be
part of the chart package.

This change is part of the HIP 20 to create v3 charts and
explicitly call out v2 charts. The changes for this are in smaller
bite size changes.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-02-21 15:25:55 -05:00
Chris Berry e5bc21c56b Refactor based on review comment
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 16:33:31 +00:00
Chris Berry 9791767baa Refactor based on review comment
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 16:16:26 +00:00
Chris Berry 6d30fa5990 Add HookOutputFunc and generic yaml unmarshaller
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 12:33:12 +00:00
Scott Rigby 52ac92fb69 clarify fix error message
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 12:31:08 +00:00
Scott Rigby e8a76bc3eb fix err check
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 12:31:08 +00:00
Scott Rigby 3796c1f4a1 remove comments about previous functionality
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 12:31:08 +00:00
Scott Rigby f729b9ade0 add short circuit return
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 12:31:08 +00:00
Chris Berry 243cb2e21f Update based on review comments
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 12:31:08 +00:00
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