From 666fa05c28b7dc2d62a339c1675ac904ee9568d3 Mon Sep 17 00:00:00 2001 From: iammehrabsandhu Date: Wed, 8 Apr 2026 11:26:20 +0530 Subject: [PATCH] WIP: feat: add ChartSource type and Source field to Release Signed-off-by: iammehrabsandhu --- internal/release/v2/release.go | 3 +++ pkg/release/v1/release.go | 3 +++ 2 files changed, 6 insertions(+) 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.