v1alpha3

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 30

Documentation

Overview

Package v1alpha3 contains the v1alpha3 API implementation. +groupName=run.tanzu.vmware.com +k8s:deepcopy-gen=package +k8s:conversion-gen=github.com/vmware-tanzu/tanzu-framework/apis/run/v1alpha3

Package v1alpha3 contains API Schema definitions for the run v1alpha3 API group +kubebuilder:object:generate=true +groupName=run.tanzu.vmware.com

Index

Constants

View Source
const (
	LabelImageType = "image-type"
	LabelOSType    = "os-type"
	LabelOSName    = "os-name"
	LabelOSVersion = "os-version"
	LabelOSArch    = "os-arch"
)
View Source
const (
	ConditionCompatible = "Compatible"
	ConditionValid      = "Valid"
	ConditionReady      = "Ready"

	ConditionUpdatesAvailable = "UpdatesAvailable"

	ReasonCannotParseTKR  = "CannotParseTKR"
	ReasonAlreadyUpToDate = "AlreadyUpToDate"

	LabelIncompatible = "incompatible"
	LabelDeactivated  = "deactivated"
	LabelInvalid      = "invalid"

	AnnotationResolveTKR     = "run.tanzu.vmware.com/resolve-tkr"
	AnnotationResolveOSImage = "run.tanzu.vmware.com/resolve-os-image"

	LabelTKR     = "run.tanzu.vmware.com/tkr"
	LabelOSImage = "run.tanzu.vmware.com/os-image"

	LabelLegacyTKR = "run.tanzu.vmware.com/legacy-tkr"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "run.tanzu.vmware.com", Version: "v1alpha3"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func FuzzTKRSpec

func FuzzTKRSpec(spec *TanzuKubernetesReleaseSpec, c fuzz.Continue)

FuzzTKRSpec fuzzes the passed TanzuKubernetesReleaseSpec.

func FuzzTKRSpecKubernetes

func FuzzTKRSpecKubernetes(kubernetesSpec *KubernetesSpec, c fuzz.Continue)

FuzzTKRSpecKubernetes fuzzes the passed TKR KubernetesSpec.

Types

type ClusterBootstrap

type ClusterBootstrap struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   *ClusterBootstrapTemplateSpec `json:"spec"`
	Status ClusterBootstrapStatus        `json:"status,omitempty"`
}

ClusterBootstrap is the Schema for the ClusterBootstraps API

func (*ClusterBootstrap) DeepCopy

func (in *ClusterBootstrap) DeepCopy() *ClusterBootstrap

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrap.

func (*ClusterBootstrap) DeepCopyInto

func (in *ClusterBootstrap) DeepCopyInto(out *ClusterBootstrap)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterBootstrap) DeepCopyObject

func (in *ClusterBootstrap) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ClusterBootstrap) GetConditions

func (c *ClusterBootstrap) GetConditions() clusterapiv1beta1.Conditions

GetConditions returns the set of conditions for this object. implements Setter interface

func (*ClusterBootstrap) SetConditions

func (c *ClusterBootstrap) SetConditions(conditions clusterapiv1beta1.Conditions)

SetConditions sets the conditions on this object. implements Setter interface

type ClusterBootstrapList

type ClusterBootstrapList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterBootstrap `json:"items"`
}

ClusterBootstrapList contains a list of ClusterBootstrap

func (*ClusterBootstrapList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapList.

func (*ClusterBootstrapList) DeepCopyInto

func (in *ClusterBootstrapList) DeepCopyInto(out *ClusterBootstrapList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterBootstrapList) DeepCopyObject

func (in *ClusterBootstrapList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterBootstrapPackage

type ClusterBootstrapPackage struct {
	RefName string `json:"refName"`
	// +optional
	ValuesFrom *ValuesFrom `json:"valuesFrom,omitempty"`
}

func (*ClusterBootstrapPackage) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapPackage.

func (*ClusterBootstrapPackage) DeepCopyInto

func (in *ClusterBootstrapPackage) DeepCopyInto(out *ClusterBootstrapPackage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterBootstrapStatus

type ClusterBootstrapStatus struct {
	ResolvedTKR string `json:"resolvedTKR,omitempty"`

	Conditions clusterapiv1beta1.Conditions `json:"conditions,omitempty"`
}

ClusterBootstrapStatus defines the observed state of ClusterBootstrap

func (*ClusterBootstrapStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapStatus.

func (*ClusterBootstrapStatus) DeepCopyInto

func (in *ClusterBootstrapStatus) DeepCopyInto(out *ClusterBootstrapStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterBootstrapTemplate

type ClusterBootstrapTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec *ClusterBootstrapTemplateSpec `json:"spec"`
}

ClusterBootstrapTemplate is the Schema for the ClusterBootstraptemplates API

func (*ClusterBootstrapTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapTemplate.

func (*ClusterBootstrapTemplate) DeepCopyInto

func (in *ClusterBootstrapTemplate) DeepCopyInto(out *ClusterBootstrapTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterBootstrapTemplate) DeepCopyObject

func (in *ClusterBootstrapTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterBootstrapTemplateList

type ClusterBootstrapTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterBootstrapTemplate `json:"items"`
}

ClusterBootstrapTemplateList contains a list of ClusterBootstrapTemplate

func (*ClusterBootstrapTemplateList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapTemplateList.

func (*ClusterBootstrapTemplateList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterBootstrapTemplateList) DeepCopyObject

func (in *ClusterBootstrapTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterBootstrapTemplateSpec

type ClusterBootstrapTemplateSpec struct {
	// Paused can be used to prevent controllers from processing the ClusterBootstrap and all its associated objects.
	// +optional
	// +kubebuilder:default:=false
	Paused bool `json:"paused,omitempty"`

	// +optional
	CNI *ClusterBootstrapPackage `json:"cni,omitempty"`
	// +optional
	CSI *ClusterBootstrapPackage `json:"csi,omitempty"`
	// +optional
	CPI *ClusterBootstrapPackage `json:"cpi,omitempty"`
	// +optional
	Kapp *ClusterBootstrapPackage `json:"kapp,omitempty"`
	// +optional
	AdditionalPackages []*ClusterBootstrapPackage `json:"additionalPackages,omitempty"`
}

ClusterBootstrapTemplateSpec defines the desired state of ClusterBootstrapTemplate

func (*ClusterBootstrapTemplateSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapTemplateSpec.

func (*ClusterBootstrapTemplateSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ContainerImageInfo

type ContainerImageInfo struct {
	// ImageRepository sets the container registry to pull images from.
	// if not set, defaults to the ImageRepository defined in KubernetesSpec.
	// +optional
	ImageRepository string `json:"imageRepository,omitempty"`

	// ImageTag specifies a tag for the image.
	ImageTag string `json:"imageTag,omitempty"`
}

ContainerImageInfo allows to customize the image used for components that are not originated from the Kubernetes/Kubernetes release process (such as etcd and coredns).

func (*ContainerImageInfo) DeepCopy

func (in *ContainerImageInfo) DeepCopy() *ContainerImageInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImageInfo.

func (*ContainerImageInfo) DeepCopyInto

func (in *ContainerImageInfo) DeepCopyInto(out *ContainerImageInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KappConfig

type KappConfig struct {
	// A cert chain of trusted CA certs. These will be added to the system-wide cert pool of trusted CA's. Cluster-wide CA Certificate setting will be used if this is not provided.
	//+kubebuilder:validation:Optional
	CaCerts string `json:"caCerts,omitempty"`

	// The url/ip of a proxy for kapp controller to use when making network requests. Cluster-wide HTTP proxy setting will be used if this is not provided.
	//+kubebuilder:validation:Optional
	HTTPProxy string `json:"httpProxy,omitempty"`

	// The url/ip of a TLS capable proxy for kapp-controller to use when making network requests. Cluster-wide HTTPS proxy setting will be used if this is not provided.
	//+kubebuilder:validation:Optional
	HTTPSProxy string `json:"httpsProxy,omitempty"`

	// A comma delimited list of domain names which kapp-controller should bypass the proxy for when making requests. Cluster-wide no-proxy setting will be used if this is not provided.
	//+kubebuilder:validation:Optional
	NoProxy string `json:"noProxy,omitempty"`

	// A comma delimited list of hostnames for which kapp-controller should skip TLS verification
	//+kubebuilder:validation:Optional
	DangerousSkipTLSVerify string `json:"dangerousSkipTLSVerify,omitempty"`
}

func (*KappConfig) DeepCopy

func (in *KappConfig) DeepCopy() *KappConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KappConfig.

func (*KappConfig) DeepCopyInto

func (in *KappConfig) DeepCopyInto(out *KappConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KappController

type KappController struct {
	// Whether to create namespace specified for kapp-controller
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=false
	CreateNamespace bool `json:"createNamespace,omitempty"`

	// The namespace value used for global packaging resources. Any Package and PackageMetadata CRs within that namespace will be included in all other namespaces on the cluster, without duplicating them
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=tkg-system
	GlobalNamespace string `json:"globalNamespace,omitempty"`

	//+kubebuilder:validation:Optional
	//+kubebuilder:default:={hostNetwork:true}
	Deployment KappDeployment `json:"deployment,omitempty"` // object default needs at least one param so that CRD generation is not null, issue https://github.com/kubernetes-sigs/controller-tools/issues/631

	Config KappConfig `json:"config,omitempty"`
}

func (*KappController) DeepCopy

func (in *KappController) DeepCopy() *KappController

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KappController.

func (*KappController) DeepCopyInto

func (in *KappController) DeepCopyInto(out *KappController)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KappControllerConfig

type KappControllerConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KappControllerConfigSpec   `json:"spec"`
	Status KappControllerConfigStatus `json:"status,omitempty"`
}

KappControllerConfig is the Schema for the kappcontrollerconfigs API

func (*KappControllerConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KappControllerConfig.

func (*KappControllerConfig) DeepCopyInto

func (in *KappControllerConfig) DeepCopyInto(out *KappControllerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KappControllerConfig) DeepCopyObject

func (in *KappControllerConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KappControllerConfigList

type KappControllerConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KappControllerConfig `json:"items"`
}

KappControllerConfigList contains a list of KappControllerConfig

func (*KappControllerConfigList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KappControllerConfigList.

func (*KappControllerConfigList) DeepCopyInto

func (in *KappControllerConfigList) DeepCopyInto(out *KappControllerConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KappControllerConfigList) DeepCopyObject

func (in *KappControllerConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KappControllerConfigSpec

type KappControllerConfigSpec struct {
	// The namespace in which kapp-controller is deployed
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=tkg-system
	Namespace string `json:"namespace,omitempty"`

	//+kubebuilder:validation:Optional
	//+kubebuilder:default:={deployment:{hostNetwork:true}}
	KappController KappController `json:"kappController,omitempty"` // object default needs at least one param so that CRD generation is not null, issue https://github.com/kubernetes-sigs/controller-tools/issues/631
}

KappControllerConfigSpec defines the desired state of KappControllerConfig

func (*KappControllerConfigSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KappControllerConfigSpec.

func (*KappControllerConfigSpec) DeepCopyInto

func (in *KappControllerConfigSpec) DeepCopyInto(out *KappControllerConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KappControllerConfigStatus

type KappControllerConfigStatus struct {
	// Name of the data value secret created by controller
	//+kubebuilder:validation:Optional
	SecretRef string `json:"secretRef,omitempty"`
}

KappControllerConfigStatus defines the observed state of KappControllerConfig

func (*KappControllerConfigStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KappControllerConfigStatus.

func (*KappControllerConfigStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KappDeployment

type KappDeployment struct {
	// Whether to enable host networking for kapp-controller deployment
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=true
	HostNetwork bool `json:"hostNetwork,omitempty"`

	// The priority value that various system components use to find the priority of the kapp-controller pod
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=system-cluster-critical
	PriorityClassName string `json:"priorityClassName,omitempty"`

	// Concurrency of kapp-controller deployment
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=4
	Concurrency int `json:"concurrency,omitempty"`

	// kapp-controller deployment tolerations
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:={{key: CriticalAddonsOnly, operator: Exists}, {effect: NoSchedule, key: node-role.kubernetes.io/control-plane}, {effect: NoSchedule, key: node-role.kubernetes.io/master}, {effect: NoSchedule, key: node.kubernetes.io/not-ready}, {effect: NoSchedule, key: node.cloudprovider.kubernetes.io/uninitialized, value: "true"}}
	Tolerations []map[string]string `json:"tolerations,omitempty"`

	// Bind port for kapp-controller API
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=10100
	APIPort int `json:"apiPort,omitempty"`

	// Address for metrics server
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:="0"
	MetricsBindAddress string `json:"metricsBindAddress,omitempty"`
}

func (*KappDeployment) DeepCopy

func (in *KappDeployment) DeepCopy() *KappDeployment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KappDeployment.

func (*KappDeployment) DeepCopyInto

func (in *KappDeployment) DeepCopyInto(out *KappDeployment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubernetesSpec

type KubernetesSpec struct {
	// Version is Semantic Versioning conformant version of the Kubernetes build shipped by this TKR.
	// The same Kubernetes build MAY be shipped by multiple TKRs.
	Version string `json:"version"`

	// ImageRepository specifies container image registry to pull images from.
	ImageRepository string `json:"imageRepository,omitempty"`

	// Etcd specifies the container image repository and tag for etcd.
	// +optional
	Etcd *ContainerImageInfo `json:"etcd"`

	// Pause specifies the container image repository and tag for pause.
	// +optional
	Pause *ContainerImageInfo `json:"pause"`

	// CoreDNS specifies the container image repository and tag for coredns.
	// +optional
	CoreDNS *ContainerImageInfo `json:"coredns"`

	// KubeVIP specifies the container image repository and tag for kube-vip.
	// +optional
	KubeVIP *ContainerImageInfo `json:"kube-vip"`
}

KubernetesSpec specifies the details about the Kubernetes distribution shipped by this TKR.

func (*KubernetesSpec) DeepCopy

func (in *KubernetesSpec) DeepCopy() *KubernetesSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesSpec.

func (*KubernetesSpec) DeepCopyInto

func (in *KubernetesSpec) DeepCopyInto(out *KubernetesSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineImageInfo

type MachineImageInfo struct {
	// Type of the OSImage, roughly corresponding to the infrastructure provider (vSphere can serve both ova and vmop).
	// Some of currently known types are: "ami", "azure", "docker", "ova", "vmop".
	Type string `json:"type"`

	// Ref is a key-value map identifying the image within the infrastructure provider. This is the data
	// to be injected into the infra-Machine objects (like AWSMachine) on creation.
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:Type=object
	// +kubebuilder:pruning:PreserveUnknownFields
	Ref map[string]interface{} `json:"ref"`
}

MachineImageInfo describes the "Image" part of the OSImage, defined by the image type. +kubebuilder:object:generate=false

func (*MachineImageInfo) DeepCopy

func (in *MachineImageInfo) DeepCopy() *MachineImageInfo

DeepCopy is a deepcopy function, copying the receiver, creating a new MachineImageInfo.

func (*MachineImageInfo) DeepCopyInto

func (in *MachineImageInfo) DeepCopyInto(out *MachineImageInfo)

DeepCopyInto is a deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OSImage

type OSImage struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   OSImageSpec   `json:"spec,omitempty"`
	Status OSImageStatus `json:"status,omitempty"`
}

OSImage is the schema for the OSImages API. OSImage objects represent OSImages shipped as parts of TKRs. OSImages are immutable to end-users. They are created and managed by TKG to provide discovery of Kubernetes releases to TKG users and OS image details for infrastructure Machines.

+kubebuilder:object:root=true +kubebuilder:resource:path=osimages,scope=Cluster,shortName=osimg +kubebuilder:storageversion +kubebuilder:subresource:status +kubebuilder:printcolumn:name="K8S Version",type=string,JSONPath=.spec.kubernetesVersion +kubebuilder:printcolumn:name="OS Name",type=string,JSONPath=.spec.os.name +kubebuilder:printcolumn:name="OS Version",type=string,JSONPath=.spec.os.version +kubebuilder:printcolumn:name="Arch",type=string,JSONPath=.spec.os.arch +kubebuilder:printcolumn:name="Type",type=string,JSONPath=.spec.image.type +kubebuilder:printcolumn:name="Compatible",type=string,JSONPath=.status.conditions[?(@.type=='Compatible')].status +kubebuilder:printcolumn:name="Created",type="date",JSONPath=.metadata.creationTimestamp

func (*OSImage) DeepCopy

func (in *OSImage) DeepCopy() *OSImage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSImage.

func (*OSImage) DeepCopyInto

func (in *OSImage) DeepCopyInto(out *OSImage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OSImage) DeepCopyObject

func (in *OSImage) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*OSImage) GetConditions

func (r *OSImage) GetConditions() clusterv1.Conditions

GetConditions implements capi conditions Getter interface

func (*OSImage) SetConditions

func (r *OSImage) SetConditions(conditions clusterv1.Conditions)

SetConditions implements capi conditions Setter interface

type OSImageList

type OSImageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []OSImage `json:"items"`
}

OSImageList contains a list of OSImage

func (*OSImageList) DeepCopy

func (in *OSImageList) DeepCopy() *OSImageList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSImageList.

func (*OSImageList) DeepCopyInto

func (in *OSImageList) DeepCopyInto(out *OSImageList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OSImageList) DeepCopyObject

func (in *OSImageList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type OSImageSpec

type OSImageSpec struct {
	// KubernetesVersion specifies the build version of the Kubernetes shipped with this OSImage.
	KubernetesVersion string `json:"kubernetesVersion"`

	// OS specifies the "OS" part of the OSImage.
	OS OSInfo `json:"os"`

	// Image specifies the "Image" part of the OSImage.
	Image MachineImageInfo `json:"image"`
}

OSImageSpec defines the desired state of OSImage

func (*OSImageSpec) DeepCopy

func (in *OSImageSpec) DeepCopy() *OSImageSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSImageSpec.

func (*OSImageSpec) DeepCopyInto

func (in *OSImageSpec) DeepCopyInto(out *OSImageSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OSImageStatus

type OSImageStatus struct {
	Conditions []clusterv1.Condition `json:"conditions,omitempty"`
}

OSImageStatus defines the observed state of OSImage

func (*OSImageStatus) DeepCopy

func (in *OSImageStatus) DeepCopy() *OSImageStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSImageStatus.

func (*OSImageStatus) DeepCopyInto

func (in *OSImageStatus) DeepCopyInto(out *OSImageStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OSInfo

type OSInfo struct {
	Type    string `json:"type"`
	Name    string `json:"name"`
	Version string `json:"version"`
	Arch    string `json:"arch"`
}

OSInfo describes the "OS" part of the OSImage, defined by the Operating System's name, version and CPU architecture.

func (*OSInfo) DeepCopy

func (in *OSInfo) DeepCopy() *OSInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSInfo.

func (*OSInfo) DeepCopyInto

func (in *OSInfo) DeepCopyInto(out *OSInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TanzuKubernetesRelease

type TanzuKubernetesRelease struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TanzuKubernetesReleaseSpec   `json:"spec,omitempty"`
	Status TanzuKubernetesReleaseStatus `json:"status,omitempty"`
}

TanzuKubernetesRelease is the schema for the tanzukubernetesreleases API. TanzuKubernetesRelease objects represent Kubernetes releases available via TKG, which can be used to create TanzuKubernetesCluster instances. TKRs are immutable to end-users. They are created and managed by TKG to provide discovery of Kubernetes releases to TKG users.

+kubebuilder:object:root=true +kubebuilder:resource:path=tanzukubernetesreleases,scope=Cluster,shortName=tkr +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Version",type=string,JSONPath=.spec.version +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=.status.conditions[?(@.type=='Ready')].status +kubebuilder:printcolumn:name="Compatible",type=string,JSONPath=.status.conditions[?(@.type=='Compatible')].status +kubebuilder:printcolumn:name="Created",type="date",JSONPath=.metadata.creationTimestamp

func (*TanzuKubernetesRelease) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuKubernetesRelease.

func (*TanzuKubernetesRelease) DeepCopyInto

func (in *TanzuKubernetesRelease) DeepCopyInto(out *TanzuKubernetesRelease)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TanzuKubernetesRelease) DeepCopyObject

func (in *TanzuKubernetesRelease) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TanzuKubernetesRelease) GetConditions

func (r *TanzuKubernetesRelease) GetConditions() clusterv1.Conditions

GetConditions implements capi conditions Getter interface

func (*TanzuKubernetesRelease) Hub

func (*TanzuKubernetesRelease) Hub()

func (*TanzuKubernetesRelease) SetConditions

func (r *TanzuKubernetesRelease) SetConditions(conditions clusterv1.Conditions)

SetConditions implements capi conditions Setter interface

func (*TanzuKubernetesRelease) SetupWebhookWithManager

func (r *TanzuKubernetesRelease) SetupWebhookWithManager(mgr ctrl.Manager) error

type TanzuKubernetesReleaseList

type TanzuKubernetesReleaseList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []TanzuKubernetesRelease `json:"items"`
}

TanzuKubernetesReleaseList contains a list of TanzuKubernetesRelease

func (*TanzuKubernetesReleaseList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuKubernetesReleaseList.

func (*TanzuKubernetesReleaseList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TanzuKubernetesReleaseList) DeepCopyObject

func (in *TanzuKubernetesReleaseList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TanzuKubernetesReleaseList) Hub

type TanzuKubernetesReleaseSpec

type TanzuKubernetesReleaseSpec struct {
	// Version is the fully qualified Semantic Versioning conformant version of the TanzuKubernetesRelease.
	// Version MUST be unique across all TanzuKubernetesRelease objects.
	Version string `json:"version"`

	// Kubernetes is Kubernetes
	Kubernetes KubernetesSpec `json:"kubernetes"`

	// OSImages lists references to all OSImage objects shipped with this TKR.
	OSImages []corev1.LocalObjectReference `json:"osImages,omitempty"`

	// BootstrapPackages lists references to all bootstrap packages shipped with this TKR.
	BootstrapPackages []corev1.LocalObjectReference `json:"bootstrapPackages,omitempty"`
}

TanzuKubernetesReleaseSpec defines the desired state of TanzuKubernetesRelease

func (*TanzuKubernetesReleaseSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuKubernetesReleaseSpec.

func (*TanzuKubernetesReleaseSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TanzuKubernetesReleaseStatus

type TanzuKubernetesReleaseStatus struct {
	Conditions []clusterv1.Condition `json:"conditions,omitempty"`
}

TanzuKubernetesReleaseStatus defines the observed state of TanzuKubernetesRelease

func (*TanzuKubernetesReleaseStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuKubernetesReleaseStatus.

func (*TanzuKubernetesReleaseStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ValuesFrom

type ValuesFrom struct {
	// +optional
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:Type=object
	// +kubebuilder:pruning:PreserveUnknownFields
	Inline map[string]interface{} `json:"inline,omitempty"`
	// +optional
	SecretRef string `json:"secretRef,omitempty"`
	// +optional
	ProviderRef *corev1.TypedLocalObjectReference `json:"providerRef,omitempty"`
}

ValuesFrom specifies how values for package install are retrieved from +kubebuilder:object:generate=false

func (*ValuesFrom) CountFields

func (in *ValuesFrom) CountFields() int

func (*ValuesFrom) DeepCopy

func (in *ValuesFrom) DeepCopy() *ValuesFrom

DeepCopy is a deepcopy function, copying the receiver, creating a new MachineImageInfo.

func (*ValuesFrom) DeepCopyInto

func (in *ValuesFrom) DeepCopyInto(out *ValuesFrom)

DeepCopyInto is a deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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