templates

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 CreateServiceTemplateWithDelete(ctx context.Context, client crclient.Client, namespace, name string, spec kcmv1.ServiceTemplateSpec) func() error

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

func FindLatestTemplatesWithType

func FindLatestTemplatesWithType(clusterTemplates []string, templateType Type, n int) []string

func GetSortedClusterTemplates

func GetSortedClusterTemplates(ctx context.Context, cl crclient.Client, namespace string) ([]string, error)

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"
)

func GetType

func GetType(template string) Type

func (Type) IsHosted added in v1.1.0

func (t Type) IsHosted() bool

Jump to

Keyboard shortcuts

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