Help us shape the future of Go! Take the 2026 Go Developer Survey

featgate

package
v1.31.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FeatGateEnvVarsPrefix = caps.ToScreamingSnake(common.Brand) + "_FEAT_"
	// Contains all defined feature gates.
	FeatGates            = []*FeatGate{}
	FeatGateRemoteCharts = NewFeatGate(
		"remote-charts",
		`Allow not only local, but also remote charts as an argument to cli commands. Also adds the "--chart-version" option`,
	)
	FeatGateNativeReleaseList = NewFeatGate(
		"native-release-list",
		`Use the native "release list" command instead of "helm list" exposed as "release list"`,
	)
	FeatGatePeriodicStackTraces = NewFeatGate(
		"periodic-stack-traces",
		`Print stack traces periodically to help with debugging deadlocks and other issues`,
	)
	FeatGateNativeReleaseUninstall = NewFeatGate(
		"native-release-uninstall",
		`Use the new "release uninstall" command implementation (not fully backwards compatible)`,
	)
	FeatGateFieldSensitive = NewFeatGate(
		"field-sensitive",
		`Enable JSONPath-based selective sensitive field redaction`,
	)
	FeatGatePreviewV2 = NewFeatGate(
		"preview-v2",
		`Activate all feature gates that will be enabled by default in Nelm v2`,
	)
	FeatGateCleanNullFields = NewFeatGate(
		"clean-null-fields",
		`Enable cleaning of null fields from resource manifests for better Helm chart compatibility`,
	)
	FeatGateMoreDetailedExitCodeForPlan = NewFeatGate(
		"more-detailed-exit-code-for-plan",
		`Make the "plan" command with the flag "--exit-code" return an exit code 3 instead of 2 when no resource changes, but still must install the release`,
	)
	FeatGateResourceValidation = NewFeatGate(
		"resource-validation",
		"Validate chart resources against specific Kubernetes resources' schemas",
	)
	FeatGateTypescript = NewFeatGate(
		"typescript",
		`Enable TypeScript chart rendering from ts/ directory`,
	)
	FeatGateAdoptDeckhouseControllerFields = NewFeatGate(
		"adopt-deckhouse-controller-fields",
		`Adopt managed fields owned by the legacy "deckhouse-controller" field manager (the pre-nelm Helm 3 engine). Unsafe if any resource still has hook-owned "deckhouse-controller" entries`,
	)
	FeatGateCaseInsensitiveConditionTracking = NewFeatGate(
		"case-insensitive-condition-tracking",
		`Match custom resource status condition types case-insensitively when detecting readiness (e.g. "Ready" in addition to "ready")`,
	)
)

Functions

This section is empty.

Types

type FeatGate added in v1.4.0

type FeatGate struct {
	Help string
	Name string
	// contains filtered or unexported fields
}

A feature gate, which enabled/disables a specific feature. Can be toggled via an env var or programmatically.

func NewFeatGate added in v1.4.0

func NewFeatGate(name, help string) *FeatGate

func (*FeatGate) Default added in v1.4.0

func (g *FeatGate) Default() bool

func (*FeatGate) Disable added in v1.18.0

func (g *FeatGate) Disable()

func (*FeatGate) Enable added in v1.18.0

func (g *FeatGate) Enable()

func (*FeatGate) Enabled added in v1.4.0

func (g *FeatGate) Enabled() bool

func (*FeatGate) EnvVarName added in v1.4.0

func (g *FeatGate) EnvVarName() string

Jump to

Keyboard shortcuts

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