Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeReleaseManifest ¶
DecodeReleaseManifest decodes a Helm v3 Secret's "release" data payload, which is a base64-encoded, gzipped JSON of the Release proto, and extracts the embedded .manifest string.
func GetLatestReleaseManifest ¶
func GetLatestReleaseManifest(ctx context.Context, factory *kube.Factory, ns, name string, verbose bool) (manifest string, warn string, _ error)
GetLatestReleaseManifest finds the latest Helm v3 Secret for the given release (ns/name), decodes the embedded release payload, and returns the .manifest string. A non-empty warn may be returned for non-fatal issues (e.g. bad version label).
This reads Secrets with labels owner=helm, name=<release>. Among those with Type "helm.sh/release.v1", it picks the highest numeric 'version' label, breaking ties by most recent creation timestamp.
Types ¶
type ReleaseRef ¶
ReleaseRef identifies a Helm release by namespace and name.
func ParseReleaseArg ¶
func ParseReleaseArg(arg string, defaultNS string) (ReleaseRef, error)
ParseReleaseArg parses a single release CLI argument into a ReleaseRef. The argument can be either "<namespace>/<name>" or "<name>" (in which case defaultNS must be non-empty).
func ParseReleaseArgs ¶
func ParseReleaseArgs(args []string, defaultNS string) ([]ReleaseRef, error)
ParseReleaseArgs parses multiple CLI release arguments into ReleaseRefs. Each arg can be "<ns>/<name>" or "<name>" (requiring defaultNS).