generator

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOrderedKinds = []string{
	"Namespace",
	"ResourceQuota",
	"StorageClass",
	"CustomResourceDefinition",
	"ServiceAccount",
	"PodSecurityPolicy",
	"Role",
	"ClusterRole",
	"RoleBinding",
	"ClusterRoleBinding",
	"ConfigMap",
	"Secret",
	"Endpoints",
	"Service",
	"LimitRange",
	"PriorityClass",
	"PersistentVolume",
	"PersistentVolumeClaim",
	"Deployment",
	"StatefulSet",
	"CronJob",
	"PodDisruptionBudget",
	"MutatingWebhookConfiguration",
	"ValidatingWebhookConfiguration",
}

DefaultOrderedKinds provides the default order of Kubernetes resource kinds.

Functions

func NamespaceResource

func NamespaceResource(ctx context.Context, namespace string) (*v1.Resource, error)

NamespaceResource returns a Kubernetes Namespace resource wrapped into the form of Kusion Resource.

func OrderedResources

func OrderedResources(ctx context.Context, resources v1.Resources, orderedKinds []string) (v1.Resources, error)

OrderedResources returns a list of Kusion Resources with the injected `dependsOn` in a specified order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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