template

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName      = "template"
	DefaultNamespace = metav1.NamespaceDefault
)

Variables

This section is empty.

Functions

func NewClusterTemplate

func NewClusterTemplate(opts ...Opt) *v1alpha1.ClusterTemplate

func NewProviderTemplate

func NewProviderTemplate(opts ...Opt) *v1alpha1.ProviderTemplate

func NewServiceTemplate

func NewServiceTemplate(opts ...Opt) *v1alpha1.ServiceTemplate

Types

type Opt

type Opt func(template Template)

func ManagedByKCM added in v0.0.7

func ManagedByKCM() Opt

func WithClusterStatusK8sVersion

func WithClusterStatusK8sVersion(v string) Opt

func WithConfigStatus

func WithConfigStatus(config string) Opt

func WithHelmSpec

func WithHelmSpec(helmSpec v1alpha1.HelmSpec) Opt

func WithLabels

func WithLabels(labels map[string]string) Opt

func WithName

func WithName(name string) Opt

func WithNamespace

func WithNamespace(namespace string) Opt

func WithOwnerReference

func WithOwnerReference(ownerRef []metav1.OwnerReference) Opt

func WithProviderStatusCAPIContracts

func WithProviderStatusCAPIContracts(coreAndProvidersContracts ...string) Opt

func WithProvidersStatus

func WithProvidersStatus(providers ...string) Opt

func WithServiceK8sConstraint

func WithServiceK8sConstraint(v string) Opt

func WithValidationStatus

func WithValidationStatus(validationStatus v1alpha1.TemplateValidationStatus) Opt

type Template

type Template interface {
	client.Object
	GetHelmSpec() *v1alpha1.HelmSpec
	GetCommonStatus() *v1alpha1.TemplateStatusCommon
}

Jump to

Keyboard shortcuts

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