features

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KruiseDaemon enables the features relied on kruise-daemon, such as image pulling and container restarting.
	KruiseDaemon featuregate.Feature = "KruiseDaemon"

	// PodWebhook enables webhook for Pods creations. This is also related to SidecarSet.
	PodWebhook featuregate.Feature = "PodWebhook"

	// CloneSetShortHash enables CloneSet controller only set revision hash name to pod label.
	CloneSetShortHash featuregate.Feature = "CloneSetShortHash"

	// KruisePodReadinessGate enables Kruise webhook to inject 'KruisePodReady' readiness-gate to
	// all Pods during creation.
	// Otherwise, it will only be injected to Pods created by Kruise workloads.
	KruisePodReadinessGate featuregate.Feature = "KruisePodReadinessGate"

	// PreDownloadImageForInPlaceUpdate enables cloneset/statefulset controllers to create ImagePullJobs to
	// pre-download images for in-place update.
	PreDownloadImageForInPlaceUpdate featuregate.Feature = "PreDownloadImageForInPlaceUpdate"

	// CloneSetPartitionRollback enables CloneSet controller to rollback Pods to currentRevision
	// when number of updateRevision pods is bigger than (replicas - partition).
	CloneSetPartitionRollback featuregate.Feature = "CloneSetPartitionRollback"

	// ResourcesDeletionProtection enables protection for resources deletion, currently supports
	// Namespace, Service, Ingress, CustomResourcesDefinition, Deployment, StatefulSet, ReplicaSet, CloneSet, Advanced StatefulSet, UnitedDeployment.
	// It is only supported for Kubernetes version >= 1.16
	// Note that if it is enabled during Kruise installation or upgrade, Kruise will require more authorities:
	// 1. Webhook for deletion operation of namespace, service, ingress, crd, deployment, statefulset, replicaset and workloads in Kruise.
	ResourcesDeletionProtection featuregate.Feature = "ResourcesDeletionProtection"

	// PodUnavailableBudgetDeleteGate enables PUB capability to protect pod from deletion and eviction
	PodUnavailableBudgetDeleteGate featuregate.Feature = "PodUnavailableBudgetDeleteGate"

	// PodUnavailableBudgetUpdateGate enables PUB capability to protect pod from in-place update
	PodUnavailableBudgetUpdateGate featuregate.Feature = "PodUnavailableBudgetUpdateGate"

	// WorkloadSpread enable WorkloadSpread to constrain the spread of the workload.
	WorkloadSpread featuregate.Feature = "WorkloadSpread"

	// DaemonWatchingPod enables kruise-daemon to list watch pods that belong to the same node.
	DaemonWatchingPod featuregate.Feature = "DaemonWatchingPod"

	// TemplateNoDefaults to control whether webhook should inject pod default fields into pod template
	// and pvc default fields into pvc template.
	// If TemplateNoDefaults is false, webhook should inject default fields only when the template changed.
	TemplateNoDefaults featuregate.Feature = "TemplateNoDefaults"

	// InPlaceUpdateEnvFromMetadata enables Kruise to in-place update a container in Pod
	// when its env from labels/annotations changed and pod is in-place updating.
	InPlaceUpdateEnvFromMetadata featuregate.Feature = "InPlaceUpdateEnvFromMetadata"

	// Enables policies controlling deletion of PVCs created by a StatefulSet.
	StatefulSetAutoDeletePVC featuregate.Feature = "StatefulSetAutoDeletePVC"

	// SidecarSetPatchPodMetadataDefaultsAllowed whether sidecarSet patch pod metadata is allowed
	SidecarSetPatchPodMetadataDefaultsAllowed featuregate.Feature = "SidecarSetPatchPodMetadataDefaultsAllowed"

	// SidecarTerminator enables SidecarTerminator to stop sidecar containers when all main containers exited.
	// SidecarTerminator only works for the Pods with 'Never' or 'OnFailure' restartPolicy.
	SidecarTerminator featuregate.Feature = "SidecarTerminator"

	// PodProbeMarkerGate enable Kruise provide the ability to execute custom Probes.
	// Note: custom probe execution requires kruise daemon, so currently only traditional Kubelet is supported, not virtual-kubelet.
	PodProbeMarkerGate featuregate.Feature = "PodProbeMarkerGate"

	// PreDownloadImageForDaemonSetUpdate enables daemonset-controller to create ImagePullJobs to
	// pre-download images for update.
	PreDownloadImageForDaemonSetUpdate featuregate.Feature = "PreDownloadImageForDaemonSetUpdate"

	// CloneSetEventHandlerOptimization enable optimization for cloneset-controller to reduce the
	// queuing frequency cased by pod update.
	CloneSetEventHandlerOptimization featuregate.Feature = "CloneSetEventHandlerOptimization"

	// PreparingUpdateAsUpdate enable CloneSet/Advanced StatefulSet controller to regard preparing-update Pod
	// as updated when calculating update/current revision during scaling.
	PreparingUpdateAsUpdate featuregate.Feature = "PreparingUpdateAsUpdate"

	// ImagePullJobGate enable imagepulljob-controller execute ImagePullJob.
	ImagePullJobGate featuregate.Feature = "ImagePullJobGate"

	// ResourceDistributionGate enable resourcedistribution-controller execute ResourceDistribution.
	ResourceDistributionGate featuregate.Feature = "ResourceDistributionGate"

	// DeletionProtectionForCRDCascadingGate enable deletionProtection for crd Cascading
	DeletionProtectionForCRDCascadingGate featuregate.Feature = "DeletionProtectionForCRDCascadingGate"

	// Enables a enhanced livenessProbe solution
	EnhancedLivenessProbeGate featuregate.Feature = "EnhancedLivenessProbe"

	// RecreatePodWhenChangeVCTInCloneSetGate recreate the pod upon changing volume claim templates in a clone set to ensure PVC consistency.
	RecreatePodWhenChangeVCTInCloneSetGate featuregate.Feature = "RecreatePodWhenChangeVCTInCloneSetGate"

	// Enables a StatefulSet to start from an arbitrary non zero ordinal
	StatefulSetStartOrdinal featuregate.Feature = "StatefulSetStartOrdinal"

	// Set pod completion index as a pod label for Indexed Jobs.
	PodIndexLabel featuregate.Feature = "PodIndexLabel"

	// Use certs generated externally
	EnableExternalCerts featuregate.Feature = "EnableExternalCerts"
)

Variables

This section is empty.

Functions

func SetDefaultFeatureGates added in v0.10.0

func SetDefaultFeatureGates()

Types

This section is empty.

Jump to

Keyboard shortcuts

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