v1alpha4

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

NOTE: https://pkg.go.dev/k8s.io/code-generator/cmd/conversion-gen Package v1alpha4 contains API Schema definitions for the infrastructure v1alpha4 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io +k8s:conversion-gen=github.com/nutanix-cloud-native/cluster-api-provider-nutanix/api/v1beta1

Package v1alpha4 contains API Schema definitions for the infrastructure v1alpha4 API group

Index

Constants

View Source
const (
	// ClusterCategoryCreatedCondition indicates the status of the category linked to the NutanixCluster
	ClusterCategoryCreatedCondition capiv1.ConditionType = "ClusterCategoryCreated"

	ClusterCategoryCreationFailed = "ClusterCategoryCreationFailed"
)
View Source
const (
	//PrismCentralClientCondition indicates the status of the client used to connect to Prism Central
	PrismCentralClientCondition capiv1.ConditionType = "PrismClientInit"

	PrismCentralClientInitializationFailed = "PrismClientInitFailed"
)
View Source
const (
	// VMProvisionedCondition shows the status of the VM provisioning process
	VMProvisionedCondition capiv1.ConditionType = "VMProvisioned"

	VMProvisionedTaskFailed = "FailedVMTask"

	// VMAddressesAssignedCondition shows the status of the process of assigning the VM addresses
	VMAddressesAssignedCondition capiv1.ConditionType = "VMAddressesAssigned"

	VMAddressesFailed = "VMAddressesFailed"
	VMBootTypeInvalid = "VMBootTypeInvalid"
)
View Source
const (
	// VMAddressesAssignedCondition shows the status of the process of assigning the VMs to a project
	ProjectAssignedCondition capiv1.ConditionType = "ProjectAssigned"

	ProjectAssignationFailed = "ProjectAssignationFailed"
)
View Source
const (
	// CredentialRefSecretOwnerSetCondition shows the status of setting the Owner
	CredentialRefSecretOwnerSetCondition capiv1.ConditionType = "CredentialRefSecretOwnerSet"

	CredentialRefSecretOwnerSetFailed = "CredentialRefSecretOwnerSetFailed"
)
View Source
const (
	// NutanixIdentifierUUID is a resource identifier identifying the object by UUID.
	NutanixIdentifierUUID NutanixIdentifierType = "uuid"

	// NutanixIdentifierName is a resource identifier identifying the object by Name.
	NutanixIdentifierName NutanixIdentifierType = "name"

	// NutanixIdentifierBootTypeLegacy is a resource identifier identifying the legacy boot type for virtual machines.
	NutanixIdentifierBootTypeLegacy NutanixIdentifierType = "legacy"

	// NutanixIdentifierBootTypeUEFI is a resource identifier identifying the UEFI boot type for virtual machines.
	NutanixIdentifierBootTypeUEFI NutanixIdentifierType = "uefi"

	// DefaultCAPICategoryPrefix is the default category prefix used for CAPI clusters.
	DefaultCAPICategoryPrefix = "kubernetes-io-cluster-"

	// DefaultCAPICategoryDescription is the default category description used for CAPI clusters.
	DefaultCAPICategoryDescription = "Managed by CAPX"

	// DefaultCAPICategoryOwnedValue is the default category value used for CAPI clusters.
	DefaultCAPICategoryOwnedValue = "owned"
)
View Source
const (
	// NutanixClusterFinalizer allows NutanixClusterReconciler to clean up AHV
	// resources associated with NutanixCluster before removing it from the
	// API Server.
	NutanixClusterFinalizer           = "nutanixcluster.infrastructure.cluster.x-k8s.io"
	NutanixClusterCredentialFinalizer = "nutanixcluster/infrastructure.cluster.x-k8s.io"
)
View Source
const (
	DeletionFailed = "DeletionFailed"
)
View Source
const (
	// NutanixMachineFinalizer allows NutanixMachineReconciler to clean up AHV
	// resources associated with NutanixMachine before removing it from the
	// API Server.
	NutanixMachineFinalizer = "nutanixmachine.infrastructure.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha4"}

	// 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 Convert_v1alpha4_APIEndpoint_To_v1beta1_APIEndpoint

func Convert_v1alpha4_APIEndpoint_To_v1beta1_APIEndpoint(in *capiv1alpha4.APIEndpoint, out *capiv1beta1.APIEndpoint, s apiconversion.Scope) error

Convert_v1alpha4_APIEndpoint_To_v1beta1_APIEndpoint converts APIEndpoint in NutanixClusterResource from v1alpha4 to v1beta1 version.

func Convert_v1alpha4_NutanixCategoryIdentifier_To_v1beta1_NutanixCategoryIdentifier

func Convert_v1alpha4_NutanixCategoryIdentifier_To_v1beta1_NutanixCategoryIdentifier(in *NutanixCategoryIdentifier, out *v1beta1.NutanixCategoryIdentifier, s conversion.Scope) error

Convert_v1alpha4_NutanixCategoryIdentifier_To_v1beta1_NutanixCategoryIdentifier is an autogenerated conversion function.

func Convert_v1alpha4_NutanixClusterList_To_v1beta1_NutanixClusterList

func Convert_v1alpha4_NutanixClusterList_To_v1beta1_NutanixClusterList(in *NutanixClusterList, out *v1beta1.NutanixClusterList, s conversion.Scope) error

Convert_v1alpha4_NutanixClusterList_To_v1beta1_NutanixClusterList is an autogenerated conversion function.

func Convert_v1alpha4_NutanixClusterSpec_To_v1beta1_NutanixClusterSpec

func Convert_v1alpha4_NutanixClusterSpec_To_v1beta1_NutanixClusterSpec(in *NutanixClusterSpec, out *infrav1beta1.NutanixClusterSpec, s apiconversion.Scope) error

Convert_v1alpha4_NutanixClusterSpec_To_v1beta1_NutanixClusterSpec converts NutanixClusterSpec in NutanixClusterResource from v1alpha4 to v1beta1 version.

func Convert_v1alpha4_NutanixClusterStatus_To_v1beta1_NutanixClusterStatus

func Convert_v1alpha4_NutanixClusterStatus_To_v1beta1_NutanixClusterStatus(in *NutanixClusterStatus, out *infrav1beta1.NutanixClusterStatus, s apiconversion.Scope) error

Convert_v1alpha4_NutanixClusterStatus_To_v1beta1_NutanixClusterStatus converts NutanixClusterStatus in NutanixClusterResource from v1alpha4 to v1beta1 version.

func Convert_v1alpha4_NutanixCluster_To_v1beta1_NutanixCluster

func Convert_v1alpha4_NutanixCluster_To_v1beta1_NutanixCluster(in *NutanixCluster, out *v1beta1.NutanixCluster, s conversion.Scope) error

Convert_v1alpha4_NutanixCluster_To_v1beta1_NutanixCluster is an autogenerated conversion function.

func Convert_v1alpha4_NutanixMachineList_To_v1beta1_NutanixMachineList

func Convert_v1alpha4_NutanixMachineList_To_v1beta1_NutanixMachineList(in *NutanixMachineList, out *v1beta1.NutanixMachineList, s conversion.Scope) error

Convert_v1alpha4_NutanixMachineList_To_v1beta1_NutanixMachineList is an autogenerated conversion function.

func Convert_v1alpha4_NutanixMachineSpec_To_v1beta1_NutanixMachineSpec

func Convert_v1alpha4_NutanixMachineSpec_To_v1beta1_NutanixMachineSpec(in *NutanixMachineSpec, out *infrav1beta1.NutanixMachineSpec, s apiconversion.Scope) error

Convert_v1alpha4_NutanixMachineSpec_To_v1beta1_NutanixMachineSpec converts NutanixMachineSpec in NutanixMachineResource from v1alpha4 to v1beta1 version.

func Convert_v1alpha4_NutanixMachineStatus_To_v1beta1_NutanixMachineStatus

func Convert_v1alpha4_NutanixMachineStatus_To_v1beta1_NutanixMachineStatus(in *NutanixMachineStatus, out *infrav1beta1.NutanixMachineStatus, s apiconversion.Scope) error

Convert_v1alpha4_NutanixMachineStatus_To_v1beta1_NutanixMachineStatus converts NutanixMachineStatus in NutanixMachineResource from v1alpha4 to v1beta1 version.

func Convert_v1alpha4_NutanixMachineTemplateList_To_v1beta1_NutanixMachineTemplateList

func Convert_v1alpha4_NutanixMachineTemplateList_To_v1beta1_NutanixMachineTemplateList(in *NutanixMachineTemplateList, out *v1beta1.NutanixMachineTemplateList, s conversion.Scope) error

Convert_v1alpha4_NutanixMachineTemplateList_To_v1beta1_NutanixMachineTemplateList is an autogenerated conversion function.

func Convert_v1alpha4_NutanixMachineTemplateResource_To_v1beta1_NutanixMachineTemplateResource

func Convert_v1alpha4_NutanixMachineTemplateResource_To_v1beta1_NutanixMachineTemplateResource(in *NutanixMachineTemplateResource, out *infrav1beta1.NutanixMachineTemplateResource, s apiconversion.Scope) error

Convert_v1alpha4_NutanixMachineTemplateResource_To_v1beta1_NutanixMachineTemplateResource converts NutanixMachineTemplateResource in NutanixMachineTemplateResource from v1alpha4 to v1beta1 version.

func Convert_v1alpha4_NutanixMachineTemplateSpec_To_v1beta1_NutanixMachineTemplateSpec

func Convert_v1alpha4_NutanixMachineTemplateSpec_To_v1beta1_NutanixMachineTemplateSpec(in *NutanixMachineTemplateSpec, out *v1beta1.NutanixMachineTemplateSpec, s conversion.Scope) error

Convert_v1alpha4_NutanixMachineTemplateSpec_To_v1beta1_NutanixMachineTemplateSpec is an autogenerated conversion function.

func Convert_v1alpha4_NutanixMachineTemplate_To_v1beta1_NutanixMachineTemplate

func Convert_v1alpha4_NutanixMachineTemplate_To_v1beta1_NutanixMachineTemplate(in *NutanixMachineTemplate, out *v1beta1.NutanixMachineTemplate, s conversion.Scope) error

Convert_v1alpha4_NutanixMachineTemplate_To_v1beta1_NutanixMachineTemplate is an autogenerated conversion function.

func Convert_v1alpha4_NutanixMachine_To_v1beta1_NutanixMachine

func Convert_v1alpha4_NutanixMachine_To_v1beta1_NutanixMachine(in *NutanixMachine, out *v1beta1.NutanixMachine, s conversion.Scope) error

Convert_v1alpha4_NutanixMachine_To_v1beta1_NutanixMachine is an autogenerated conversion function.

func Convert_v1alpha4_NutanixResourceIdentifier_To_v1beta1_NutanixResourceIdentifier

func Convert_v1alpha4_NutanixResourceIdentifier_To_v1beta1_NutanixResourceIdentifier(in *NutanixResourceIdentifier, out *v1beta1.NutanixResourceIdentifier, s conversion.Scope) error

Convert_v1alpha4_NutanixResourceIdentifier_To_v1beta1_NutanixResourceIdentifier is an autogenerated conversion function.

func Convert_v1alpha4_ObjectMeta_To_v1beta1_ObjectMeta

func Convert_v1alpha4_ObjectMeta_To_v1beta1_ObjectMeta(in *capiv1alpha4.ObjectMeta, out *capiv1beta1.ObjectMeta, s apiconversion.Scope) error

Convert_v1alpha4_ObjectMeta_To_v1beta1_ObjectMeta converts ObjectMeta in NutanixMachineTemplateResource from v1alpha4 to v1beta1 version.

func Convert_v1beta1_APIEndpoint_To_v1alpha4_APIEndpoint

func Convert_v1beta1_APIEndpoint_To_v1alpha4_APIEndpoint(in *capiv1beta1.APIEndpoint, out *capiv1alpha4.APIEndpoint, s apiconversion.Scope) error

Convert_v1beta1_APIEndpoint_To_v1alpha4_APIEndpoint converts APIEndpoint in NutanixClusterResource from v1alpha4 to v1beta1 version.

func Convert_v1beta1_NutanixCategoryIdentifier_To_v1alpha4_NutanixCategoryIdentifier

func Convert_v1beta1_NutanixCategoryIdentifier_To_v1alpha4_NutanixCategoryIdentifier(in *v1beta1.NutanixCategoryIdentifier, out *NutanixCategoryIdentifier, s conversion.Scope) error

Convert_v1beta1_NutanixCategoryIdentifier_To_v1alpha4_NutanixCategoryIdentifier is an autogenerated conversion function.

func Convert_v1beta1_NutanixClusterList_To_v1alpha4_NutanixClusterList

func Convert_v1beta1_NutanixClusterList_To_v1alpha4_NutanixClusterList(in *v1beta1.NutanixClusterList, out *NutanixClusterList, s conversion.Scope) error

Convert_v1beta1_NutanixClusterList_To_v1alpha4_NutanixClusterList is an autogenerated conversion function.

func Convert_v1beta1_NutanixClusterSpec_To_v1alpha4_NutanixClusterSpec

func Convert_v1beta1_NutanixClusterSpec_To_v1alpha4_NutanixClusterSpec(in *infrav1beta1.NutanixClusterSpec, out *NutanixClusterSpec, s apiconversion.Scope) error

Convert_v1beta1_NutanixClusterSpec_To_v1alpha4_NutanixClusterSpec converts NutanixClusterSpec in NutanixClusterResource from v1beta1 to v1alpha4 version.

func Convert_v1beta1_NutanixClusterStatus_To_v1alpha4_NutanixClusterStatus

func Convert_v1beta1_NutanixClusterStatus_To_v1alpha4_NutanixClusterStatus(in *v1beta1.NutanixClusterStatus, out *NutanixClusterStatus, s conversion.Scope) error

Convert_v1beta1_NutanixClusterStatus_To_v1alpha4_NutanixClusterStatus is an autogenerated conversion function.

func Convert_v1beta1_NutanixCluster_To_v1alpha4_NutanixCluster

func Convert_v1beta1_NutanixCluster_To_v1alpha4_NutanixCluster(in *v1beta1.NutanixCluster, out *NutanixCluster, s conversion.Scope) error

Convert_v1beta1_NutanixCluster_To_v1alpha4_NutanixCluster is an autogenerated conversion function.

func Convert_v1beta1_NutanixMachineList_To_v1alpha4_NutanixMachineList

func Convert_v1beta1_NutanixMachineList_To_v1alpha4_NutanixMachineList(in *v1beta1.NutanixMachineList, out *NutanixMachineList, s conversion.Scope) error

Convert_v1beta1_NutanixMachineList_To_v1alpha4_NutanixMachineList is an autogenerated conversion function.

func Convert_v1beta1_NutanixMachineSpec_To_v1alpha4_NutanixMachineSpec

func Convert_v1beta1_NutanixMachineSpec_To_v1alpha4_NutanixMachineSpec(in *infrav1beta1.NutanixMachineSpec, out *NutanixMachineSpec, s apiconversion.Scope) error

Convert_v1beta1_NutanixMachineSpec_To_v1alpha4_NutanixMachineSpec converts NutanixMachineSpec in NutanixMachineResource from v1alpha4 to v1beta1 version.

func Convert_v1beta1_NutanixMachineStatus_To_v1alpha4_NutanixMachineStatus

func Convert_v1beta1_NutanixMachineStatus_To_v1alpha4_NutanixMachineStatus(in *v1beta1.NutanixMachineStatus, out *NutanixMachineStatus, s conversion.Scope) error

Convert_v1beta1_NutanixMachineStatus_To_v1alpha4_NutanixMachineStatus is an autogenerated conversion function.

func Convert_v1beta1_NutanixMachineTemplateList_To_v1alpha4_NutanixMachineTemplateList

func Convert_v1beta1_NutanixMachineTemplateList_To_v1alpha4_NutanixMachineTemplateList(in *v1beta1.NutanixMachineTemplateList, out *NutanixMachineTemplateList, s conversion.Scope) error

Convert_v1beta1_NutanixMachineTemplateList_To_v1alpha4_NutanixMachineTemplateList is an autogenerated conversion function.

func Convert_v1beta1_NutanixMachineTemplateResource_To_v1alpha4_NutanixMachineTemplateResource

func Convert_v1beta1_NutanixMachineTemplateResource_To_v1alpha4_NutanixMachineTemplateResource(in *infrav1beta1.NutanixMachineTemplateResource, out *NutanixMachineTemplateResource, s apiconversion.Scope) error

Convert_v1beta1_NutanixMachineTemplateResource_To_v1alpha4_NutanixMachineTemplateResource converts NutanixMachineTemplateResource in NutanixMachineTemplateResource from v1beta1 to v1alpha4 version.

func Convert_v1beta1_NutanixMachineTemplateSpec_To_v1alpha4_NutanixMachineTemplateSpec

func Convert_v1beta1_NutanixMachineTemplateSpec_To_v1alpha4_NutanixMachineTemplateSpec(in *v1beta1.NutanixMachineTemplateSpec, out *NutanixMachineTemplateSpec, s conversion.Scope) error

Convert_v1beta1_NutanixMachineTemplateSpec_To_v1alpha4_NutanixMachineTemplateSpec is an autogenerated conversion function.

func Convert_v1beta1_NutanixMachineTemplate_To_v1alpha4_NutanixMachineTemplate

func Convert_v1beta1_NutanixMachineTemplate_To_v1alpha4_NutanixMachineTemplate(in *v1beta1.NutanixMachineTemplate, out *NutanixMachineTemplate, s conversion.Scope) error

Convert_v1beta1_NutanixMachineTemplate_To_v1alpha4_NutanixMachineTemplate is an autogenerated conversion function.

func Convert_v1beta1_NutanixMachine_To_v1alpha4_NutanixMachine

func Convert_v1beta1_NutanixMachine_To_v1alpha4_NutanixMachine(in *v1beta1.NutanixMachine, out *NutanixMachine, s conversion.Scope) error

Convert_v1beta1_NutanixMachine_To_v1alpha4_NutanixMachine is an autogenerated conversion function.

func Convert_v1beta1_NutanixResourceIdentifier_To_v1alpha4_NutanixResourceIdentifier

func Convert_v1beta1_NutanixResourceIdentifier_To_v1alpha4_NutanixResourceIdentifier(in *v1beta1.NutanixResourceIdentifier, out *NutanixResourceIdentifier, s conversion.Scope) error

Convert_v1beta1_NutanixResourceIdentifier_To_v1alpha4_NutanixResourceIdentifier is an autogenerated conversion function.

func Convert_v1beta1_ObjectMeta_To_v1alpha4_ObjectMeta

func Convert_v1beta1_ObjectMeta_To_v1alpha4_ObjectMeta(in *capiv1beta1.ObjectMeta, out *capiv1alpha4.ObjectMeta, s apiconversion.Scope) error

Convert_v1beta1_ObjectMeta_To_v1alpha4_ObjectMeta converts ObjectMeta in NutanixMachineTemplateResource from v1beta1 to v1alpha4 version.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

Types

type NutanixCategoryIdentifier

type NutanixCategoryIdentifier struct {
	// key is the Key of category in PC.
	// +optional
	Key string `json:"key,omitempty"`

	// value is the category value linked to the category key in PC
	// +optional
	Value string `json:"value,omitempty"`
}

func (*NutanixCategoryIdentifier) DeepCopy

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

func (*NutanixCategoryIdentifier) DeepCopyInto

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

type NutanixCluster

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

	Spec   NutanixClusterSpec   `json:"spec,omitempty"`
	Status NutanixClusterStatus `json:"status,omitempty"`
}

NutanixCluster is the Schema for the nutanixclusters API

func (*NutanixCluster) ConvertFrom

func (dst *NutanixCluster) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1beta1) to this NutanixCluster.

func (*NutanixCluster) ConvertTo

func (src *NutanixCluster) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this NutanixCluster to the Hub version (v1beta1).

func (*NutanixCluster) DeepCopy

func (in *NutanixCluster) DeepCopy() *NutanixCluster

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

func (*NutanixCluster) DeepCopyInto

func (in *NutanixCluster) DeepCopyInto(out *NutanixCluster)

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

func (*NutanixCluster) DeepCopyObject

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

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

func (*NutanixCluster) GetConditions

func (ncl *NutanixCluster) GetConditions() capiv1.Conditions

GetConditions returns the set of conditions for this object.

func (*NutanixCluster) SetConditions

func (ncl *NutanixCluster) SetConditions(conditions capiv1.Conditions)

SetConditions sets the conditions on this object.

type NutanixClusterList

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

NutanixClusterList contains a list of NutanixCluster

func (*NutanixClusterList) ConvertFrom

func (dst *NutanixClusterList) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version(v1beta1) to this NutanixClusterList.

func (*NutanixClusterList) ConvertTo

func (src *NutanixClusterList) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this NutanixClusterList to the Hub version (v1beta1).

func (*NutanixClusterList) DeepCopy

func (in *NutanixClusterList) DeepCopy() *NutanixClusterList

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

func (*NutanixClusterList) DeepCopyInto

func (in *NutanixClusterList) DeepCopyInto(out *NutanixClusterList)

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

func (*NutanixClusterList) DeepCopyObject

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

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

type NutanixClusterSpec

type NutanixClusterSpec struct {

	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// host can be either DNS name or ip address
	// +optional
	ControlPlaneEndpoint capiv1.APIEndpoint `json:"controlPlaneEndpoint"`

	// prismCentral holds the endpoint address and port to access the Nutanix Prism Central.
	// When a cluster-wide proxy is installed, by default, this endpoint will be accessed via the proxy.
	// Should you wish for communication with this endpoint not to be proxied, please add the endpoint to the
	// proxy spec.noProxy list.
	// +optional
	PrismCentral *credentialTypes.NutanixPrismEndpoint `json:"prismCentral"`
}

NutanixClusterSpec defines the desired state of NutanixCluster

func (*NutanixClusterSpec) DeepCopy

func (in *NutanixClusterSpec) DeepCopy() *NutanixClusterSpec

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

func (*NutanixClusterSpec) DeepCopyInto

func (in *NutanixClusterSpec) DeepCopyInto(out *NutanixClusterSpec)

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

type NutanixClusterStatus

type NutanixClusterStatus struct {

	// +optional
	Ready bool `json:"ready,omitempty"`

	FailureDomains capiv1.FailureDomains `json:"failureDomains,omitempty"`

	// Conditions defines current service state of the NutanixCluster.
	// +optional
	Conditions capiv1.Conditions `json:"conditions,omitempty"`

	// Will be set in case of failure of Cluster instance
	// +optional
	FailureReason *errors.ClusterStatusError `json:"failureReason,omitempty"`

	// Will be set in case of failure of Cluster instance
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

NutanixClusterStatus defines the observed state of NutanixCluster

func (*NutanixClusterStatus) DeepCopy

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

func (*NutanixClusterStatus) DeepCopyInto

func (in *NutanixClusterStatus) DeepCopyInto(out *NutanixClusterStatus)

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

type NutanixIdentifierType

type NutanixIdentifierType string

NutanixIdentifierType is an enumeration of different resource identifier types.

type NutanixMachine

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

	Spec   NutanixMachineSpec   `json:"spec,omitempty"`
	Status NutanixMachineStatus `json:"status,omitempty"`
}

NutanixMachine is the Schema for the nutanixmachines API

func (*NutanixMachine) ConvertFrom

func (dst *NutanixMachine) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1beta1) to this NutanixMachine.

func (*NutanixMachine) ConvertTo

func (src *NutanixMachine) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this NutanixMachine to the Hub version (v1beta1).

func (*NutanixMachine) DeepCopy

func (in *NutanixMachine) DeepCopy() *NutanixMachine

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

func (*NutanixMachine) DeepCopyInto

func (in *NutanixMachine) DeepCopyInto(out *NutanixMachine)

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

func (*NutanixMachine) DeepCopyObject

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

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

func (*NutanixMachine) GetConditions

func (nm *NutanixMachine) GetConditions() capiv1.Conditions

GetConditions returns the set of conditions for this object.

func (*NutanixMachine) SetConditions

func (nm *NutanixMachine) SetConditions(conditions capiv1.Conditions)

SetConditions sets the conditions on this object.

type NutanixMachineList

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

NutanixMachineList contains a list of NutanixMachine

func (*NutanixMachineList) ConvertFrom

func (dst *NutanixMachineList) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version(v1beta1) to this NutanixMachineList.

func (*NutanixMachineList) ConvertTo

func (src *NutanixMachineList) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this NutanixMachineList to the Hub version (v1beta1).

func (*NutanixMachineList) DeepCopy

func (in *NutanixMachineList) DeepCopy() *NutanixMachineList

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

func (*NutanixMachineList) DeepCopyInto

func (in *NutanixMachineList) DeepCopyInto(out *NutanixMachineList)

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

func (*NutanixMachineList) DeepCopyObject

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

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

type NutanixMachineSpec

type NutanixMachineSpec struct {
	ProviderID string `json:"providerID"`
	// vcpusPerSocket is the number of vCPUs per socket of the VM
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	VCPUsPerSocket int32 `json:"vcpusPerSocket"`
	// vcpuSockets is the number of vCPU sockets of the VM
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=1
	VCPUSockets int32 `json:"vcpuSockets"`
	// memorySize is the memory size (in Quantity format) of the VM
	// The minimum memorySize is 2Gi bytes
	// +kubebuilder:validation:Required
	MemorySize resource.Quantity `json:"memorySize"`
	// image is to identify the rhcos image uploaded to the Prism Central (PC)
	// The image identifier (uuid or name) can be obtained from the Prism Central console
	// or using the prism_central API.
	// +kubebuilder:validation:Required
	Image NutanixResourceIdentifier `json:"image"`
	// cluster is to identify the cluster (the Prism Element under management
	// of the Prism Central), in which the Machine's VM will be created.
	// The cluster identifier (uuid or name) can be obtained from the Prism Central console
	// or using the prism_central API.
	// +kubebuilder:validation:Required
	Cluster NutanixResourceIdentifier `json:"cluster"`
	// subnet is to identify the cluster's network subnet to use for the Machine's VM
	// The cluster identifier (uuid or name) can be obtained from the Prism Central console
	// or using the prism_central API.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems=1
	Subnets []NutanixResourceIdentifier `json:"subnet"`
	// List of categories that need to be added to the machines. Categories must already exist in Prism Central
	// +kubebuilder:validation:Optional
	AdditionalCategories []NutanixCategoryIdentifier `json:"additionalCategories"`
	// Add the machine resources to a Prism Central project
	// +optional
	Project *NutanixResourceIdentifier `json:"project"`
	// Defines the boot type of the virtual machine. Only supports UEFI and Legacy
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum:=legacy;uefi
	BootType string `json:"bootType"`

	// systemDiskSize is size (in Quantity format) of the system disk of the VM
	// The minimum systemDiskSize is 20Gi bytes
	// +kubebuilder:validation:Required
	SystemDiskSize resource.Quantity `json:"systemDiskSize"`

	// BootstrapRef is a reference to a bootstrap provider-specific resource
	// that holds configuration details.
	// +optional
	BootstrapRef *corev1.ObjectReference `json:"bootstrapRef,omitempty"`
}

NutanixMachineSpec defines the desired state of NutanixMachine

func (*NutanixMachineSpec) DeepCopy

func (in *NutanixMachineSpec) DeepCopy() *NutanixMachineSpec

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

func (*NutanixMachineSpec) DeepCopyInto

func (in *NutanixMachineSpec) DeepCopyInto(out *NutanixMachineSpec)

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

type NutanixMachineStatus

type NutanixMachineStatus struct {

	// Ready is true when the provider resource is ready.
	// +optional
	Ready bool `json:"ready"`

	// Addresses contains the Nutanix VM associated addresses.
	// Address type is one of Hostname, ExternalIP, InternalIP, ExternalDNS, InternalDNS
	Addresses []capiv1.MachineAddress `json:"addresses,omitempty"`

	// The Nutanix VM's UUID
	// +optional
	VmUUID string `json:"vmUUID,omitempty"`

	// NodeRef is a reference to the corresponding workload cluster Node if it exists.
	// +optional
	NodeRef *corev1.ObjectReference `json:"nodeRef,omitempty"`

	// Conditions defines current service state of the NutanixMachine.
	// +optional
	Conditions capiv1.Conditions `json:"conditions,omitempty"`

	// Will be set in case of failure of Machine instance
	// +optional
	FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`

	// Will be set in case of failure of Machine instance
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

NutanixMachineStatus defines the observed state of NutanixMachine

func (*NutanixMachineStatus) DeepCopy

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

func (*NutanixMachineStatus) DeepCopyInto

func (in *NutanixMachineStatus) DeepCopyInto(out *NutanixMachineStatus)

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

type NutanixMachineTemplate

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

	Spec NutanixMachineTemplateSpec `json:"spec,omitempty"`
}

NutanixMachineTemplate is the Schema for the nutanixmachinetemplates API

func (*NutanixMachineTemplate) ConvertFrom

func (dst *NutanixMachineTemplate) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1beta1) to this NutanixMachineTemplate.

func (*NutanixMachineTemplate) ConvertTo

func (src *NutanixMachineTemplate) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this NutanixMachineTemplate to the Hub version (v1beta1).

func (*NutanixMachineTemplate) DeepCopy

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

func (*NutanixMachineTemplate) DeepCopyInto

func (in *NutanixMachineTemplate) DeepCopyInto(out *NutanixMachineTemplate)

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

func (*NutanixMachineTemplate) DeepCopyObject

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

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

type NutanixMachineTemplateList

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

NutanixMachineTemplateList contains a list of NutanixMachineTemplate

func (*NutanixMachineTemplateList) ConvertFrom

func (dst *NutanixMachineTemplateList) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version(v1beta1) to this NutanixMachineTemplateList.

func (*NutanixMachineTemplateList) ConvertTo

func (src *NutanixMachineTemplateList) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this NutanixMachineTemplateList to the Hub version (v1beta1).

func (*NutanixMachineTemplateList) DeepCopy

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

func (*NutanixMachineTemplateList) DeepCopyInto

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

func (*NutanixMachineTemplateList) DeepCopyObject

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

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

type NutanixMachineTemplateResource

type NutanixMachineTemplateResource struct {
	// Standard object metadata.
	// Ref: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta capiv1.ObjectMeta `json:"metadata,omitempty"`
	// Spec is the specification of the desired behavior of the machine.
	Spec NutanixMachineSpec `json:"spec"`
}

NutanixMachineTemplateResource describes the data needed to create a NutanixMachine from a template

func (*NutanixMachineTemplateResource) DeepCopy

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

func (*NutanixMachineTemplateResource) DeepCopyInto

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

type NutanixMachineTemplateSpec

type NutanixMachineTemplateSpec struct {
	Template NutanixMachineTemplateResource `json:"template"`
}

NutanixMachineTemplateSpec defines the desired state of NutanixMachineTemplate

func (*NutanixMachineTemplateSpec) DeepCopy

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

func (*NutanixMachineTemplateSpec) DeepCopyInto

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

type NutanixResourceIdentifier

type NutanixResourceIdentifier struct {
	// Type is the identifier type to use for this resource.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum:=uuid;name
	Type NutanixIdentifierType `json:"type"`

	// uuid is the UUID of the resource in the PC.
	// +optional
	UUID *string `json:"uuid,omitempty"`

	// name is the resource name in the PC
	// +optional
	Name *string `json:"name,omitempty"`
}

NutanixResourceIdentifier holds the identity of a Nutanix PC resource (cluster, image, subnet, etc.) +union

func (*NutanixResourceIdentifier) DeepCopy

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

func (*NutanixResourceIdentifier) DeepCopyInto

DeepCopyInto is an autogenerated 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