resourceorder

package
v1.0.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WeightCRD                = -100
	WeightNamespace          = 0
	WeightClusterRole        = 5
	WeightClusterRoleBinding = 5
	WeightServiceAccount     = 10
	WeightRole               = 10
	WeightRoleBinding        = 10
	WeightSecret             = 15
	WeightConfigMap          = 15
	WeightStorageClass       = 20
	WeightPersistentVolume   = 20
	WeightPVC                = 20
	WeightService            = 50
	WeightDeployment         = 100
	WeightStatefulSet        = 100
	WeightDaemonSet          = 100
	WeightJob                = 110
	WeightCronJob            = 110
	WeightIngress            = 150
	WeightNetworkPolicy      = 150
	WeightHPA                = 200
	WeightVPA                = 200
	WeightPDB                = 200
	WeightWebhook            = 500
	WeightDefault            = 1000
)

Resource ordering weights for Kubernetes apply operations. Lower weights are applied first.

Variables

This section is empty.

Functions

func GetWeight

func GetWeight(gvk schema.GroupVersionKind) int

GetWeight returns the ordering weight for a GVK. Lower weights are applied first.

Types

This section is empty.

Jump to

Keyboard shortcuts

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