helm

package
v0.19.771 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsSystemLabels

func ContainsSystemLabels(lbs map[string]string) bool

Checks if labels array contains system labels

func EncodeRelease

func EncodeRelease(rls *Release) (string, error)

EncodeRelease encodes a release returning a base64 encoded gzipped string representation, or error.

func FilterSystemLabels

func FilterSystemLabels(lbs map[string]string) map[string]string

Removes system labels from labels map

func GetSystemLabels

func GetSystemLabels() []string

Types

type Release

type Release struct {
	// Name is the name of the release
	Name string `json:"name,omitempty"`
	// Info provides information about a release
	Info *rspb.Info `json:"info,omitempty"`
	// Chart is the chart that was released.
	Chart *chart.Chart `json:"chart,omitempty"`
	// Config is the set of extra Values added to the chart.
	// These values override the default values inside of the chart.
	Config map[string]interface{} `json:"config,omitempty"`
	// Manifest is the string representation of the rendered template.
	Manifest string `json:"manifest,omitempty"`
	// Hooks are all of the hooks declared for this release.
	Hooks []*rspb.Hook `json:"hooks,omitempty"`
	// Version is an int which represents the revision of the release.
	Version int `json:"version,omitempty"`
	// Namespace is the kubernetes namespace of the release.
	Namespace string `json:"namespace,omitempty"`
	// Labels of the release.
	Labels map[string]string `json:"labels,omitempty"`
}

Release describes a deployment of a chart, together with the chart and the variables used to deploy that chart. we had to make our own copy of the struct to expose the Labels field

func DecodeRelease

func DecodeRelease(data string) (*Release, error)

DecodeRelease decodes the bytes of data into a release type. Data must contain a base64 encoded gzipped string of a valid release, otherwise an error is returned.

Jump to

Keyboard shortcuts

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