v1beta1

package
v0.0.0-...-03768c6 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the nutanixproviderconfig v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/nutanix-cloud-native/machine-api-provider-nutanix/pkg/apis/nutanixproviderconfig +k8s:defaulter-gen=TypeMeta +groupName=nutanixproviderconfig.openshift.io

Package v1beta1 contains API Schema definitions for the nutanixproviderconfig v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/nutanix-cloud-native/machine-api-provider-nutanix/pkg/apis/nutanixproviderconfig +k8s:defaulter-gen=TypeMeta +groupName=nutanixproviderconfig.k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "nutanixproviderconfig.openshift.io", Version: "v1beta1"}

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

Functions

func RawExtensionFromProviderSpec

func RawExtensionFromProviderSpec(spec *NutanixMachineProviderConfig) (*runtime.RawExtension, error)

RawExtensionFromProviderSpec marshals the machine provider spec.

func RawExtensionFromProviderStatus

func RawExtensionFromProviderStatus(status *NutanixMachineProviderStatus) (*runtime.RawExtension, error)

RawExtensionFromProviderStatus marshals the machine provider status

Types

type NutanixMachineProviderCondition

type NutanixMachineProviderCondition struct {
	// Type is the type of the condition.
	Type NutanixMachineProviderConditionType `json:"type"`
	// Status is the status of the condition.
	Status corev1.ConditionStatus `json:"status"`
	// LastProbeTime is the last time we probed the condition.
	// +optional
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
	// LastTransitionTime is the last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// Reason is a unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason NutanixMachineProviderConditionReason `json:"reason,omitempty"`
	// Message is a human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

NutanixMachineProviderCondition is a condition in a NutanixMachineProviderStatus.

func (*NutanixMachineProviderCondition) DeepCopy

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

func (*NutanixMachineProviderCondition) DeepCopyInto

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

type NutanixMachineProviderConditionReason

type NutanixMachineProviderConditionReason string

NutanixMachineProviderConditionReason is reason for the condition's last transition.

const (
	// MachineCreationSucceeded indicates machine creation success.
	MachineCreationSucceeded NutanixMachineProviderConditionReason = "MachineCreationSucceeded"
	// MachineCreationFailed indicates machine creation failure.
	MachineCreationFailed NutanixMachineProviderConditionReason = "MachineCreationFailed"
	// MachineCreationSucceeded indicates machine update success.
	MachineUpdateSucceeded NutanixMachineProviderConditionReason = "MachineUpdateSucceeded"
	// MachineCreationFailed indicates machine update failure.
	MachineUpdateFailed NutanixMachineProviderConditionReason = "MachineUpdateFailed"
	// MachineCreationSucceeded indicates machine deletion success.
	MachineDeletionSucceeded NutanixMachineProviderConditionReason = "MachineDeletionSucceeded"
	// MachineCreationFailed indicates machine deletion failure.
	MachineDeletionFailed NutanixMachineProviderConditionReason = "MachineDeletionFailed"
)

type NutanixMachineProviderConditionType

type NutanixMachineProviderConditionType string

NutanixMachineProviderConditionType is a valid value for NutanixMachineProviderCondition.Type

const (
	// MachineCreation indicates whether the machine has been created or not. If not,
	// it should include a reason and message for the failure.
	MachineCreation NutanixMachineProviderConditionType = "MachineCreation"
	MachineUpdate   NutanixMachineProviderConditionType = "MachineUpdate"
	MachineDeletion NutanixMachineProviderConditionType = "MachineDeletion"
)

Valid conditions for an Nutanix machine instance.

type NutanixMachineProviderConfig

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

	ClusterReferenceUUID string `json:"clusterReferenceUuid,omitempty"`
	ImageUUID            string `json:"imageUuid,omitempty"`
	ImageName            string `json:"imageName,omitempty"`
	SubnetUUID           string `json:"subnetUuid,omitempty"`
	NumVcpusPerSocket    int64  `json:"numVcpusPerSocket,omitempty"`
	NumSockets           int64  `json:"numSockets,omitempty"`
	MemorySizeMib        int64  `json:"memorySizeMib,omitempty"`
	DiskSizeMib          int64  `json:"diskSizeMib,omitempty"`
	PowerState           string `json:"powerState,omitempty"`

	// UserDataSecret contains a local reference to a secret that contains the
	// UserData to apply to the instance
	UserDataSecret *corev1.LocalObjectReference `json:"userDataSecret,omitempty"`

	// CredentialsSecret contains a local reference to a secret that contains the
	// credentials data to access Nutanix client
	CredentialsSecret *corev1.LocalObjectReference `json:"credentialsSecret,omitempty"`
}

NutanixMachineProviderConfig is the Schema for the nutanixmachineproviderconfigs API +k8s:openapi-gen=true

func ProviderSpecFromRawExtension

func ProviderSpecFromRawExtension(rawExtension *runtime.RawExtension) (*NutanixMachineProviderConfig, error)

ProviderSpecFromRawExtension unmarshals a raw extension into an NutanixMachineProviderConfig type

func (*NutanixMachineProviderConfig) DeepCopy

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

func (*NutanixMachineProviderConfig) DeepCopyInto

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

func (*NutanixMachineProviderConfig) DeepCopyObject

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

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

type NutanixMachineProviderStatus

type NutanixMachineProviderStatus struct {
	metav1.TypeMeta `json:",inline"`

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

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

	// Conditions is a set of conditions associated with the Machine to indicate
	// errors or other status
	Conditions []NutanixMachineProviderCondition `json:"conditions,omitempty"`
}

NutanixMachineProviderStatus is the type that will be embedded in a Machine.Status.ProviderStatus field. It contains nutanix-specific status information. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func ProviderStatusFromRawExtension

func ProviderStatusFromRawExtension(rawExtension *runtime.RawExtension) (*NutanixMachineProviderStatus, error)

ProviderStatusFromRawExtension unmarshals a raw extension into an NutanixMachineProviderStatus type

func (*NutanixMachineProviderStatus) DeepCopy

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

func (*NutanixMachineProviderStatus) DeepCopyInto

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

func (*NutanixMachineProviderStatus) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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