{"modulePath":"github.com/openshift/machine-api-operator","version":"v0.2.1-0.20261119161144-2615267e69e2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package external\n\n## Constants\n\n```go\nconst (\n\t// TemplateSuffix is the object kind suffix used by infrastructure references associated\n\t// with MachineSet or MachineDeployments.\n\tTemplateSuffix = \"Template\"\n)\n```\n\n## Functions\n\n```go\nfunc GenerateTemplate(in *GenerateTemplateInput) (*unstructured.Unstructured, error)\n```\n\n```go\nfunc Get(ctx context.Context, c client.Client, ref *corev1.ObjectReference, namespace string) (*unstructured.Unstructured, error)\n```\nGet uses the client and reference to get an external, unstructured object.\n\n## Types\n\n```go\ntype GenerateTemplateInput struct {\n\t// Template is the TemplateRef turned into an unstructured.\n\t// +required\n\tTemplate *unstructured.Unstructured\n\n\t// TemplateRef is a reference to the template that needs to be cloned.\n\t// +required\n\tTemplateRef *corev1.ObjectReference\n\n\t// Namespace is the Kubernetes namespace the cloned object should be created into.\n\t// +required\n\tNamespace string\n\n\t// OwnerRef is an optional OwnerReference to attach to the cloned object.\n\t// +optional\n\tOwnerRef *metav1.OwnerReference\n\n\t// Labels is an optional map of labels to be added to the object.\n\t// +optional\n\tLabels map[string]string\n}\n```\nGenerateTemplate input is everything needed to generate a new template.\n\n","path":"github.com/openshift/machine-api-operator/pkg/util/external","name":"external","synopsis":"","isRedistributable":true}
