Commit Graph

12 Commits

Author SHA1 Message Date
Laszlo Uveges 63b6153163 More formatting
Signed-off-by: Laszlo Uveges <laszlo@giantswarm.io>
2025-03-15 08:30:25 +11:00
Laszlo Uveges acca1b04eb Add missing license header
Signed-off-by: Laszlo Uveges <laszlo@giantswarm.io>
2025-03-15 08:30:25 +11:00
Laszlo Uveges d03981b82c Fix go imports
Signed-off-by: Laszlo Uveges <laszlo@giantswarm.io>
2025-03-15 08:30:25 +11:00
Laszlo Uveges 940966d9c8 Fix formatting issues
Signed-off-by: Laszlo Uveges <laszlo@giantswarm.io>
2025-03-15 08:30:25 +11:00
Laszlo Uveges 2eea520ba4 Delete previously successful hooks when a later hook fails
Signed-off-by: Laszlo Uveges <laszlo@giantswarm.io>
2025-03-15 08:30:22 +11:00
Laszlo Uveges 0a28223ae5 Restructure hooks tests to be reusable
Signed-off-by: Laszlo Uveges <laszlo@giantswarm.io>
2025-03-15 08:29:54 +11:00
Laszlo Uveges 788652fd27 Add dummy test case to prove that not all hooks are delted on failure
Signed-off-by: Laszlo Uveges <laszlo@giantswarm.io>
2025-03-15 08:29:41 +11: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
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
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 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