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=vm.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: vm.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 StoragePolicy

type StoragePolicy struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              StoragePolicySpec   `json:"spec,omitempty"`
	Status            StoragePolicyStatus `json:"status,omitempty"`
}

func (*StoragePolicy) DeepCopy

func (in *StoragePolicy) DeepCopy() *StoragePolicy

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

func (*StoragePolicy) DeepCopyInto

func (in *StoragePolicy) DeepCopyInto(out *StoragePolicy)

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

func (*StoragePolicy) DeepCopyObject

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

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

func (*StoragePolicy) SetupWebhookWithManager

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

func (*StoragePolicy) ValidateCreate

func (r *StoragePolicy) ValidateCreate() error

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

func (*StoragePolicy) ValidateDelete

func (r *StoragePolicy) ValidateDelete() error

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

func (*StoragePolicy) ValidateUpdate

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

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

type StoragePolicyList

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

StoragePolicyList is a list of StoragePolicys

func (*StoragePolicyList) DeepCopy

func (in *StoragePolicyList) DeepCopy() *StoragePolicyList

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

func (*StoragePolicyList) DeepCopyInto

func (in *StoragePolicyList) DeepCopyInto(out *StoragePolicyList)

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

func (*StoragePolicyList) DeepCopyObject

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

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

type StoragePolicySpec

type StoragePolicySpec struct {
	State *StoragePolicySpecResource `json:"state,omitempty" tf:"-"`

	Resource StoragePolicySpecResource `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 (*StoragePolicySpec) DeepCopy

func (in *StoragePolicySpec) DeepCopy() *StoragePolicySpec

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

func (*StoragePolicySpec) DeepCopyInto

func (in *StoragePolicySpec) DeepCopyInto(out *StoragePolicySpec)

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

type StoragePolicySpecResource

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

	// Description of the storage policy.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// Name of the storage policy.
	Name *string `json:"name" tf:"name"`
	// Tag rules to filter datastores to be used for placement of VMs.
	TagRules []StoragePolicySpecTagRules `json:"tagRules" tf:"tag_rules"`
}

func (*StoragePolicySpecResource) DeepCopy

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

func (*StoragePolicySpecResource) DeepCopyInto

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

type StoragePolicySpecTagRules

type StoragePolicySpecTagRules struct {
	// Whether to include or exclude datastores tagged with the provided tags
	// +optional
	IncludeDatastoresWithTags *bool `json:"includeDatastoresWithTags,omitempty" tf:"include_datastores_with_tags"`
	// The tag category to select the tags from.
	TagCategory *string `json:"tagCategory" tf:"tag_category"`
	// The tags to use for creating a tag-based vm placement rule.
	// +kubebuilder:validation:MinItems=1
	Tags []string `json:"tags" tf:"tags"`
}

func (*StoragePolicySpecTagRules) DeepCopy

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

func (*StoragePolicySpecTagRules) DeepCopyInto

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

type StoragePolicyStatus

type StoragePolicyStatus 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 (*StoragePolicyStatus) DeepCopy

func (in *StoragePolicyStatus) DeepCopy() *StoragePolicyStatus

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

func (*StoragePolicyStatus) DeepCopyInto

func (in *StoragePolicyStatus) DeepCopyInto(out *StoragePolicyStatus)

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