v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=vmfs.vsphere.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: vmfs.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Datastore

type Datastore struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DatastoreSpec   `json:"spec,omitempty"`
	Status            DatastoreStatus `json:"status,omitempty"`
}

func (*Datastore) DeepCopy

func (in *Datastore) DeepCopy() *Datastore

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

func (*Datastore) DeepCopyInto

func (in *Datastore) DeepCopyInto(out *Datastore)

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

func (*Datastore) DeepCopyObject

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

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

func (*Datastore) SetupWebhookWithManager

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

func (*Datastore) ValidateCreate

func (r *Datastore) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Datastore) ValidateDelete

func (r *Datastore) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Datastore) ValidateUpdate

func (r *Datastore) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type DatastoreList

type DatastoreList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Datastore CRD objects
	Items []Datastore `json:"items,omitempty"`
}

DatastoreList is a list of Datastores

func (*DatastoreList) DeepCopy

func (in *DatastoreList) DeepCopy() *DatastoreList

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

func (*DatastoreList) DeepCopyInto

func (in *DatastoreList) DeepCopyInto(out *DatastoreList)

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

func (*DatastoreList) DeepCopyObject

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

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

type DatastoreSpec

type DatastoreSpec struct {
	State *DatastoreSpecResource `json:"state,omitempty" tf:"-"`

	Resource DatastoreSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*DatastoreSpec) DeepCopy

func (in *DatastoreSpec) DeepCopy() *DatastoreSpec

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

func (*DatastoreSpec) DeepCopyInto

func (in *DatastoreSpec) DeepCopyInto(out *DatastoreSpec)

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

type DatastoreSpecResource

type DatastoreSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The connectivity status of the datastore. If this is false, some other computed attributes may be out of date.
	// +optional
	Accessible *bool `json:"accessible,omitempty" tf:"accessible"`
	// Maximum capacity of the datastore, in MB.
	// +optional
	Capacity *int64 `json:"capacity,omitempty" tf:"capacity"`
	// A list of custom attributes to set on this resource.
	// +optional
	CustomAttributes *map[string]string `json:"customAttributes,omitempty" tf:"custom_attributes"`
	// The managed object ID of the datastore cluster to place the datastore in.
	// +optional
	DatastoreClusterID *string `json:"datastoreClusterID,omitempty" tf:"datastore_cluster_id"`
	// The disks to add to the datastore.
	// +kubebuilder:validation:MinItems=1
	Disks []string `json:"disks" tf:"disks"`
	// The path to the datastore folder to put the datastore in.
	// +optional
	Folder *string `json:"folder,omitempty" tf:"folder"`
	// Available space of this datastore, in MB.
	// +optional
	FreeSpace *int64 `json:"freeSpace,omitempty" tf:"free_space"`
	// The managed object ID of the host to set up the datastore on.
	HostSystemID *string `json:"hostSystemID" tf:"host_system_id"`
	// The current maintenance mode state of the datastore.
	// +optional
	MaintenanceMode *string `json:"maintenanceMode,omitempty" tf:"maintenance_mode"`
	// If true, more than one host in the datacenter has been configured with access to the datastore.
	// +optional
	MultipleHostAccess *bool `json:"multipleHostAccess,omitempty" tf:"multiple_host_access"`
	// The name of the datastore.
	Name *string `json:"name" tf:"name"`
	// A list of tag IDs to apply to this object.
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// Total additional storage space, in MB, potentially used by all virtual machines on this datastore.
	// +optional
	UncommittedSpace *int64 `json:"uncommittedSpace,omitempty" tf:"uncommitted_space"`
	// The unique locator for the datastore.
	// +optional
	Url *string `json:"url,omitempty" tf:"url"`
}

func (*DatastoreSpecResource) DeepCopy

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

func (*DatastoreSpecResource) DeepCopyInto

func (in *DatastoreSpecResource) DeepCopyInto(out *DatastoreSpecResource)

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

type DatastoreStatus

type DatastoreStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*DatastoreStatus) DeepCopy

func (in *DatastoreStatus) DeepCopy() *DatastoreStatus

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

func (*DatastoreStatus) DeepCopyInto

func (in *DatastoreStatus) DeepCopyInto(out *DatastoreStatus)

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