diff --git a/internal/release/v2/release.go b/internal/release/v2/release.go index 8b8f2ee07..e0cc402d2 100644 --- a/internal/release/v2/release.go +++ b/internal/release/v2/release.go @@ -51,6 +51,9 @@ type Release struct { // ApplyMethod stores whether server-side or client-side apply was used for the release // Unset (empty string) should be treated as the default of client-side apply ApplyMethod string `json:"apply_method,omitempty"` // "ssa" | "csa" + // Source records where the chart was fetched from. + // Nil for releases created before this field was added. + Source *common.ChartSource `json:"source,omitempty"` } // SetStatus is a helper for setting the status on a release. diff --git a/pkg/release/v1/release.go b/pkg/release/v1/release.go index 3bbc0e4ce..9287cc874 100644 --- a/pkg/release/v1/release.go +++ b/pkg/release/v1/release.go @@ -51,6 +51,9 @@ type Release struct { // ApplyMethod stores whether server-side or client-side apply was used for the release // Unset (empty string) should be treated as the default of client-side apply ApplyMethod string `json:"apply_method,omitempty"` // "ssa" | "csa" + // Source records where the chart was fetched from. + // Nil for releases created before this field was added. + Source *common.ChartSource `json:"source,omitempty"` } // SetStatus is a helper for setting the status on a release.