helm

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeReleaseManifest

func DecodeReleaseManifest(secretData []byte) (string, error)

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

type ReleaseRef struct {
	Namespace string
	Name      string
}

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL