featgate

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FeatGateEnvVarsPrefix = caps.ToScreamingSnake(common.Brand) + "_FEAT_"
	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`,
	)
)

Functions

This section is empty.

Types

type FeatGate added in v1.4.0

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

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