Documentation
¶
Index ¶
- Variables
- func CreateServiceTemplate(ctx context.Context, client crclient.Client, namespace, name string, ...)
- func CreateServiceTemplateWithDelete(ctx context.Context, client crclient.Client, namespace, name string, ...) func() error
- func CreateTemplateChain(ctx context.Context, client crclient.Client, namespace, name string, ...)
- func FindLatestTemplatesWithType(clusterTemplates []string, templateType Type, n int) []string
- func GetSortedClusterTemplates(ctx context.Context, cl crclient.Client, namespace string) ([]string, error)
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var Types = []Type{ TemplateAWSStandaloneCP, TemplateAWSHostedCP, TemplateAWSEKS, TemplateAzureStandaloneCP, TemplateAzureHostedCP, TemplateAzureAKS, TemplateGCPStandaloneCP, TemplateGCPHostedCP, TemplateGCPGKE, TemplateOpenStackStandaloneCP, TemplateOpenStackHostedCP, TemplateVSphereStandaloneCP, TemplateVSphereHostedCP, TemplateAdoptedCluster, TemplateRemoteCluster, TemplateDockerCluster, }
Types is an array of all the supported template types
Functions ¶
func CreateServiceTemplate ¶
func CreateServiceTemplate(ctx context.Context, client crclient.Client, namespace, name string, spec kcmv1.ServiceTemplateSpec)
CreateServiceTemplate creates a ServiceTemplate and waits for it to become valid
func CreateServiceTemplateWithDelete ¶ added in v1.6.0
func CreateTemplateChain ¶ added in v1.6.0
func CreateTemplateChain(ctx context.Context, client crclient.Client, namespace, name string, spec kcmv1.TemplateChainSpec)
CreateTemplateChain creates a ServiceTemplateChain and waits for it to become valid
Types ¶
type Type ¶
type Type string
const ( TemplateAWSStandaloneCP Type = "aws-standalone-cp" TemplateAWSHostedCP Type = "aws-hosted-cp" TemplateAWSEKS Type = "aws-eks" TemplateAzureStandaloneCP Type = "azure-standalone-cp" TemplateAzureHostedCP Type = "azure-hosted-cp" TemplateAzureAKS Type = "azure-aks" TemplateGCPStandaloneCP Type = "gcp-standalone-cp" TemplateGCPHostedCP Type = "gcp-hosted-cp" TemplateGCPGKE Type = "gcp-gke" TemplateOpenStackStandaloneCP Type = "openstack-standalone-cp" TemplateOpenStackHostedCP Type = "openstack-hosted-cp" TemplateVSphereStandaloneCP Type = "vsphere-standalone-cp" TemplateVSphereHostedCP Type = "vsphere-hosted-cp" TemplateAdoptedCluster Type = "adopted-cluster" TemplateRemoteCluster Type = "remote-cluster" TemplateDockerCluster Type = "docker-hosted-cp" )
Click to show internal directories.
Click to hide internal directories.