chart

package
v0.17.9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 38 Imported by: 6

Documentation

Index

Constants

View Source
const (
	ReleaseType   = "helm.sh/release.v1"
	SecretType    = "helmcharts.helm.cattle.io/values"
	CRDName       = "helmcharts.helm.cattle.io"
	ConfigCRDName = "helmchartconfigs.helm.cattle.io"

	TaintExternalCloudProvider = "node.cloudprovider.kubernetes.io/uninitialized"

	KeyConfigHash = "helmcharts.helm.cattle.io/configHash"

	AnnotationChartURL    = "helm.cattle.io/chart-url"
	AnnotationManagedBy   = "helmcharts.cattle.io/managed-by"
	AnnotationUnmanaged   = "helmcharts.helm.cattle.io/unmanaged"
	AnnotationReplaceWait = "helmcharts.helm.cattle.io/replace-wait"

	LabelChartName          = "helmcharts.helm.cattle.io/chart"
	LabelNodeRolePrefix     = "node-role.kubernetes.io/"
	LabelControlPlaneSuffix = "control-plane"
	LabelEtcdSuffix         = "etcd"

	// DO NOT USE THIS
	// These are only to be used by the test framework, where we need to create
	// jobs that the core Kubernetes job controller will not act on.
	AnnotationJobManager = "helmcharts.helm.cattle.io/job-manager"
	DefaultJobManager    = "kubernetes.io/job-controller"
)

Variables

View Source
var (
	DefaultJobImage = "rancher/klipper-helm:latest"
	JobTolerations  []corev1.Toleration
	JobResources    *corev1.ResourceRequirements
)

Functions

func Register

func Register(
	ctx context.Context,
	systemNamespace,
	managedBy,
	jobClusterRole string,
	apiServerPort string,
	apply apply.Apply,
	recorder record.EventRecorder,
	batch batchcontroller.Interface,
	core corecontroller.Interface,
	helm helmcontroller.Interface,
	rbac rbaccontroller.Interface,
)

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func (*Controller) OnChange

func (c *Controller) OnChange(chart *v1.HelmChart, chartStatus v1.HelmChartStatus) (v1.HelmChartStatus, error)

func (*Controller) OnRemove

func (c *Controller) OnRemove(key string, chart *v1.HelmChart) (*v1.HelmChart, error)

Jump to

Keyboard shortcuts

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