testoutput

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRDClusterConfig

func CRDClusterConfig(objects ...client.Object) *v1.ClusterConfig

CRDClusterConfig generates a valid ClusterConfig which holds the list of CRDs in the repo.

func ClusterConfig

func ClusterConfig(objects ...client.Object) *v1.ClusterConfig

ClusterConfig generates a valid ClusterConfig to be put in AllConfigs given the set of hydrated cluster-scoped client.Objects.

func GroupKind

func GroupKind(gvk schema.GroupVersionKind) string

GroupKind factors out the two-line operation of getting the GroupKind string from a GroupVersionKind. The GroupKind.String() method has a pointer receiver, so gvk.GroupKind.String() is an error.

func InCluster

func InCluster(clusterName string) core.MetaMutator

InCluster annotates the object as being in a specific cluster.

func NamespaceConfig

func NamespaceConfig(clusterName, dir string, opt core.MetaMutator, objects ...client.Object) v1.NamespaceConfig

NamespaceConfig generates a valid NamespaceConfig to be put in AllConfigs given the set of hydrated client.Objects for that Namespace.

func NamespaceConfigs

func NamespaceConfigs(ncs ...v1.NamespaceConfig) map[string]v1.NamespaceConfig

NamespaceConfigs turns a list of NamespaceConfigs into the map AllConfigs requires.

func Source

func Source(path string) core.MetaMutator

Source annotates the object as being declared in a specific source file.

func Syncs

func Syncs(gvks ...schema.GroupVersionKind) map[string]v1.Sync

Syncs generates the sync map to be put in AllConfigs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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