Documentation ¶
Overview ¶
Package v1alpha3 contains API Schema definitions for the run v1alpha3 API group +kubebuilder:object:generate=true +groupName=run.tanzu.vmware.com
Index ¶
- Variables
- type ContainerImageInfo
- type KubernetesSpec
- type MachineImageInfo
- type OSImage
- type OSImageList
- type OSImageSpec
- type OSImageStatus
- type OSInfo
- type TanzuKubernetesRelease
- func (in *TanzuKubernetesRelease) DeepCopy() *TanzuKubernetesRelease
- func (in *TanzuKubernetesRelease) DeepCopyInto(out *TanzuKubernetesRelease)
- func (in *TanzuKubernetesRelease) DeepCopyObject() runtime.Object
- func (r *TanzuKubernetesRelease) GetConditions() clusterv1.Conditions
- func (r *TanzuKubernetesRelease) SetConditions(conditions clusterv1.Conditions)
- type TanzuKubernetesReleaseList
- type TanzuKubernetesReleaseSpec
- type TanzuKubernetesReleaseStatus
Constants ¶
This section is empty.
Variables ¶
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 ¶
This section is empty.
Types ¶
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 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"` }
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. Ref map[string]string `json:"ref"` }
MachineImageInfo describes the "Image" part of the OSImage, defined by the image type.
func (*MachineImageInfo) DeepCopy ¶
func (in *MachineImageInfo) DeepCopy() *MachineImageInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineImageInfo.
func (*MachineImageInfo) DeepCopyInto ¶
func (in *MachineImageInfo) DeepCopyInto(out *MachineImageInfo)
DeepCopyInto is an autogenerated 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSImage.
func (*OSImage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OSImage) DeepCopyObject ¶
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSInfo.
func (*OSInfo) DeepCopyInto ¶
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="Compatible",type=string,JSONPath=.status.conditions[?(@.type=='Compatible')].status +kubebuilder:printcolumn:name="Created",type="date",JSONPath=.metadata.creationTimestamp
func (*TanzuKubernetesRelease) DeepCopy ¶
func (in *TanzuKubernetesRelease) DeepCopy() *TanzuKubernetesRelease
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) SetConditions ¶
func (r *TanzuKubernetesRelease) SetConditions(conditions clusterv1.Conditions)
SetConditions implements capi conditions Setter interface
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 ¶
func (in *TanzuKubernetesReleaseList) DeepCopy() *TanzuKubernetesReleaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuKubernetesReleaseList.
func (*TanzuKubernetesReleaseList) DeepCopyInto ¶
func (in *TanzuKubernetesReleaseList) DeepCopyInto(out *TanzuKubernetesReleaseList)
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.
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 ¶
func (in *TanzuKubernetesReleaseSpec) DeepCopy() *TanzuKubernetesReleaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuKubernetesReleaseSpec.
func (*TanzuKubernetesReleaseSpec) DeepCopyInto ¶
func (in *TanzuKubernetesReleaseSpec) DeepCopyInto(out *TanzuKubernetesReleaseSpec)
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 ¶
func (in *TanzuKubernetesReleaseStatus) DeepCopy() *TanzuKubernetesReleaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TanzuKubernetesReleaseStatus.
func (*TanzuKubernetesReleaseStatus) DeepCopyInto ¶
func (in *TanzuKubernetesReleaseStatus) DeepCopyInto(out *TanzuKubernetesReleaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.