v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=vapp.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: vapp.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 Container

type Container struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ContainerSpec   `json:"spec,omitempty"`
	Status            ContainerStatus `json:"status,omitempty"`
}

func (*Container) DeepCopy

func (in *Container) DeepCopy() *Container

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

func (*Container) DeepCopyInto

func (in *Container) DeepCopyInto(out *Container)

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

func (*Container) DeepCopyObject

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

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

func (*Container) SetupWebhookWithManager

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

func (*Container) ValidateCreate

func (r *Container) ValidateCreate() error

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

func (*Container) ValidateDelete

func (r *Container) ValidateDelete() error

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

func (*Container) ValidateUpdate

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

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

type ContainerList

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

ContainerList is a list of Containers

func (*ContainerList) DeepCopy

func (in *ContainerList) DeepCopy() *ContainerList

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

func (*ContainerList) DeepCopyInto

func (in *ContainerList) DeepCopyInto(out *ContainerList)

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

func (*ContainerList) DeepCopyObject

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

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

type ContainerSpec

type ContainerSpec struct {
	State *ContainerSpecResource `json:"state,omitempty" tf:"-"`

	Resource ContainerSpecResource `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 (*ContainerSpec) DeepCopy

func (in *ContainerSpec) DeepCopy() *ContainerSpec

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

func (*ContainerSpec) DeepCopyInto

func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)

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

type ContainerSpecResource

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

	// Determines if the reservation on a vApp container can grow beyond the specified value, if the parent resource pool has unreserved resources.
	// +optional
	CpuExpandable *bool `json:"cpuExpandable,omitempty" tf:"cpu_expandable"`
	// The utilization of a vApp container will not exceed this limit, even if there are available resources. Set to -1 for unlimited.
	// +optional
	CpuLimit *int64 `json:"cpuLimit,omitempty" tf:"cpu_limit"`
	// Amount of CPU (MHz) that is guaranteed available to the vApp container.
	// +optional
	CpuReservation *int64 `json:"cpuReservation,omitempty" tf:"cpu_reservation"`
	// The allocation level. The level is a simplified view of shares. Levels map to a pre-determined set of numeric values for shares. Can be one of low, normal, high, or custom.
	// +optional
	CpuShareLevel *string `json:"cpuShareLevel,omitempty" tf:"cpu_share_level"`
	// The number of shares allocated. Used to determine resource allocation in case of resource contention. If this is set, cpu_share_level must be custom.
	// +optional
	CpuShares *int64 `json:"cpuShares,omitempty" tf:"cpu_shares"`
	// A list of custom attributes to set on this resource.
	// +optional
	CustomAttributes *map[string]string `json:"customAttributes,omitempty" tf:"custom_attributes"`
	// Determines if the reservation on a vApp container can grow beyond the specified value, if the parent resource pool has unreserved resources.
	// +optional
	MemoryExpandable *bool `json:"memoryExpandable,omitempty" tf:"memory_expandable"`
	// The utilization of a vApp container will not exceed this limit, even if there are available resources. Set to -1 for unlimited.
	// +optional
	MemoryLimit *int64 `json:"memoryLimit,omitempty" tf:"memory_limit"`
	// Amount of memory (MB) that is guaranteed available to the vApp container.
	// +optional
	MemoryReservation *int64 `json:"memoryReservation,omitempty" tf:"memory_reservation"`
	// The allocation level. The level is a simplified view of shares. Levels map to a pre-determined set of numeric values for shares. Can be one of low, normal, high, or custom.
	// +optional
	MemoryShareLevel *string `json:"memoryShareLevel,omitempty" tf:"memory_share_level"`
	// The number of shares allocated. Used to determine resource allocation in case of resource contention. If this is set, memory_share_level must be custom.
	// +optional
	MemoryShares *int64 `json:"memoryShares,omitempty" tf:"memory_shares"`
	// The name of the vApp container.
	Name *string `json:"name" tf:"name"`
	// The ID of the parent VM folder.
	// +optional
	ParentFolderID *string `json:"parentFolderID,omitempty" tf:"parent_folder_id"`
	// The managed object ID of the parent resource pool or the compute resource the vApp container is in.
	ParentResourcePoolID *string `json:"parentResourcePoolID" tf:"parent_resource_pool_id"`
	// A list of tag IDs to apply to this object.
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
}

func (*ContainerSpecResource) DeepCopy

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

func (*ContainerSpecResource) DeepCopyInto

func (in *ContainerSpecResource) DeepCopyInto(out *ContainerSpecResource)

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

type ContainerStatus

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

func (in *ContainerStatus) DeepCopy() *ContainerStatus

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

func (*ContainerStatus) DeepCopyInto

func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus)

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

type Entity

type Entity struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EntitySpec   `json:"spec,omitempty"`
	Status            EntityStatus `json:"status,omitempty"`
}

func (*Entity) DeepCopy

func (in *Entity) DeepCopy() *Entity

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

func (*Entity) DeepCopyInto

func (in *Entity) DeepCopyInto(out *Entity)

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

func (*Entity) DeepCopyObject

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

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

func (*Entity) SetupWebhookWithManager

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

func (*Entity) ValidateCreate

func (r *Entity) ValidateCreate() error

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

func (*Entity) ValidateDelete

func (r *Entity) ValidateDelete() error

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

func (*Entity) ValidateUpdate

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

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

type EntityList

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

EntityList is a list of Entitys

func (*EntityList) DeepCopy

func (in *EntityList) DeepCopy() *EntityList

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

func (*EntityList) DeepCopyInto

func (in *EntityList) DeepCopyInto(out *EntityList)

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

func (*EntityList) DeepCopyObject

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

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

type EntitySpec

type EntitySpec struct {
	State *EntitySpecResource `json:"state,omitempty" tf:"-"`

	Resource EntitySpecResource `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 (*EntitySpec) DeepCopy

func (in *EntitySpec) DeepCopy() *EntitySpec

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

func (*EntitySpec) DeepCopyInto

func (in *EntitySpec) DeepCopyInto(out *EntitySpec)

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

type EntitySpecResource

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

	// Managed object ID of the vApp container the entity is a member of.
	ContainerID *string `json:"containerID" tf:"container_id"`
	// A list of custom attributes to set on this resource.
	// +optional
	CustomAttributes *map[string]string `json:"customAttributes,omitempty" tf:"custom_attributes"`
	// How to start the entity. Valid settings are none or powerOn. If set to none, then the entity does not participate in auto-start.
	// +optional
	StartAction *string `json:"startAction,omitempty" tf:"start_action"`
	// Delay in seconds before continuing with the next entity in the order of entities to be started.
	// +optional
	StartDelay *int64 `json:"startDelay,omitempty" tf:"start_delay"`
	// Order to start and stop target in vApp.
	// +optional
	StartOrder *int64 `json:"startOrder,omitempty" tf:"start_order"`
	// Defines the stop action for the entity. Can be set to none, powerOff, guestShutdown, or suspend. If set to none, then the entity does not participate in auto-stop.
	// +optional
	StopAction *string `json:"stopAction,omitempty" tf:"stop_action"`
	// Delay in seconds before continuing with the next entity in the order of entities to be stopped.
	// +optional
	StopDelay *int64 `json:"stopDelay,omitempty" tf:"stop_delay"`
	// A list of tag IDs to apply to this object.
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// Managed object ID of the entity to power on or power off. This can be a virtual machine or a vApp.
	TargetID *string `json:"targetID" tf:"target_id"`
	// Determines if the VM should be marked as being started when VMware Tools are ready instead of waiting for start_delay. This property has no effect for vApps.
	// +optional
	WaitForGuest *bool `json:"waitForGuest,omitempty" tf:"wait_for_guest"`
}

func (*EntitySpecResource) DeepCopy

func (in *EntitySpecResource) DeepCopy() *EntitySpecResource

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

func (*EntitySpecResource) DeepCopyInto

func (in *EntitySpecResource) DeepCopyInto(out *EntitySpecResource)

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

type EntityStatus

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

func (in *EntityStatus) DeepCopy() *EntityStatus

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

func (*EntityStatus) DeepCopyInto

func (in *EntityStatus) DeepCopyInto(out *EntityStatus)

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