Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OrderFirst = []string{
"Namespace",
"StorageClass",
"CustomResourceDefinition",
"MutatingWebhookConfiguration",
"ServiceAccount",
"PodSecurityPolicy",
"Role",
"ClusterRole",
"RoleBinding",
"ClusterRoleBinding",
"PersistentVolume",
"PersistentVolumeClaim",
"ConfigMap",
"Secret",
"Service",
"LimitRange",
"Deployment",
"StatefulSet",
"CronJob",
"PodDisruptionBudget",
}
An attempt to order things to help k8s, e.g. a Service should come before things that refer to it. Namespace should be first. In some cases order just specified to provide determinism. Adapted from Kustomize: https://github.com/kubernetes-sigs/kustomize/blob/180429774a5fefab0d6af9ada7f866c177b5d7b4/pkg/gvk/gvk.go#L82
View Source
var TypeOrders = func() map[string]int { m := map[string]int{} for i, n := range OrderFirst { m[n] = -len(OrderFirst) + i } return m }()
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.