features

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package features sets the feature gates that kustomize-controller supports, and their default states.

Index

Constants

View Source
const (

	// DisableStatusPollerCache controls whether the status polling cache
	// should be disabled.
	//
	// This may be useful when the controller is running in a cluster with a
	// large number of resources, as it will potentially reduce the amount of
	// memory used by the controller.
	DisableStatusPollerCache = "DisableStatusPollerCache"

	// DisableFailFastBehavior controls whether the fail-fast behavior when
	// waiting for resources to become ready should be disabled.
	DisableFailFastBehavior = "DisableFailFastBehavior"

	// StrictPostBuildSubstitutions controls whether the post-build substitutions
	// should fail if a variable without a default value is declared in files
	// but is missing from the input vars.
	StrictPostBuildSubstitutions = "StrictPostBuildSubstitutions"

	// GroupChangeLog controls whether to group Kubernetes objects names in log output
	// to reduce cardinality of logs.
	GroupChangeLog = "GroupChangeLog"

	// CancelHealthCheckOnNewRevision controls whether ongoing health checks
	// should be cancelled when a new source revision becomes available.
	//
	// When enabled, if a new revision is detected while waiting for resources
	// to become ready, the current health check will be cancelled to allow
	// immediate processing of the new revision. This can help avoid getting
	// stuck on failing deployments when fixes are available.
	CancelHealthCheckOnNewRevision = "CancelHealthCheckOnNewRevision"

	// MigrateAPIVersion controls whether the controller migrates the API
	// version referenced by the managed fields entries of in-cluster objects
	// to the API version of the applied objects when they differ.
	//
	// This works around a server-side apply dry-run failure that can occur
	// after a CRD upgrade introduces a new optional field with a default
	// value in a newer API version: the managed fields entry owned by the
	// controller still references the old API version, and the API server
	// reports the defaulted field as "field not declared in schema" when
	// validating managed fields against the old version's schema.
	MigrateAPIVersion = "MigrateAPIVersion"
)

Variables

This section is empty.

Functions

func Disable

func Disable(feature string)

Disable disables the specified feature. If the feature is not present, it's a no-op.

func Enabled

func Enabled(feature string) (bool, error)

Enabled verifies whether the feature is enabled or not.

This is only a wrapper around the Enabled func in pkg/runtime/features, so callers won't need to import both packages for checking whether a feature is enabled.

func FeatureGates

func FeatureGates() map[string]bool

FeatureGates contains a list of all supported feature gates and their default values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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