kustomize

package
v0.10.15 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

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

func Deps

func Deps(baseDir string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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