Documentation ¶
Index ¶
- func CRDClusterConfig(objects ...client.Object) *v1.ClusterConfig
- func ClusterConfig(objects ...client.Object) *v1.ClusterConfig
- func GroupKind(gvk schema.GroupVersionKind) string
- func InCluster(clusterName string) core.MetaMutator
- func NamespaceConfig(clusterName, dir string, opt core.MetaMutator, objects ...client.Object) v1.NamespaceConfig
- func NamespaceConfigs(ncs ...v1.NamespaceConfig) map[string]v1.NamespaceConfig
- func Source(path string) core.MetaMutator
- func Syncs(gvks ...schema.GroupVersionKind) map[string]v1.Sync
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.
Types ¶
This section is empty.