templates

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 10 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 v1alpha1.ServiceTemplateSpec)

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"
	TemplateVSphereStandaloneCP Type = "vsphere-standalone-cp"
	TemplateVSphereHostedCP     Type = "vsphere-hosted-cp"
	TemplateAdoptedCluster      Type = "adopted-cluster"
	TemplateRemoteCluster       Type = "remote-cluster"
)

func GetType

func GetType(template string) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳