v1alpha1

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

+groupName=cddc.alicloud.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: cddc.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 DedicatedHostGroup

type DedicatedHostGroup struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DedicatedHostGroupSpec   `json:"spec,omitempty"`
	Status            DedicatedHostGroupStatus `json:"status,omitempty"`
}

func (*DedicatedHostGroup) DeepCopy

func (in *DedicatedHostGroup) DeepCopy() *DedicatedHostGroup

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

func (*DedicatedHostGroup) DeepCopyInto

func (in *DedicatedHostGroup) DeepCopyInto(out *DedicatedHostGroup)

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

func (*DedicatedHostGroup) DeepCopyObject

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

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

func (*DedicatedHostGroup) SetupWebhookWithManager

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

func (*DedicatedHostGroup) ValidateCreate

func (r *DedicatedHostGroup) ValidateCreate() error

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

func (*DedicatedHostGroup) ValidateDelete

func (r *DedicatedHostGroup) ValidateDelete() error

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

func (*DedicatedHostGroup) ValidateUpdate

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

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

type DedicatedHostGroupList

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

DedicatedHostGroupList is a list of DedicatedHostGroups

func (*DedicatedHostGroupList) DeepCopy

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

func (*DedicatedHostGroupList) DeepCopyInto

func (in *DedicatedHostGroupList) DeepCopyInto(out *DedicatedHostGroupList)

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

func (*DedicatedHostGroupList) DeepCopyObject

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

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

type DedicatedHostGroupSpec

type DedicatedHostGroupSpec struct {
	State *DedicatedHostGroupSpecResource `json:"state,omitempty" tf:"-"`

	Resource DedicatedHostGroupSpecResource `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 (*DedicatedHostGroupSpec) DeepCopy

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

func (*DedicatedHostGroupSpec) DeepCopyInto

func (in *DedicatedHostGroupSpec) DeepCopyInto(out *DedicatedHostGroupSpec)

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

type DedicatedHostGroupSpecResource

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

	// +optional
	AllocationPolicy *string `json:"allocationPolicy,omitempty" tf:"allocation_policy"`
	// +optional
	CpuAllocationRatio *int64 `json:"cpuAllocationRatio,omitempty" tf:"cpu_allocation_ratio"`
	// +optional
	DedicatedHostGroupDesc *string `json:"dedicatedHostGroupDesc,omitempty" tf:"dedicated_host_group_desc"`
	// +optional
	DiskAllocationRatio *int64  `json:"diskAllocationRatio,omitempty" tf:"disk_allocation_ratio"`
	Engine              *string `json:"engine" tf:"engine"`
	// +optional
	HostReplacePolicy *string `json:"hostReplacePolicy,omitempty" tf:"host_replace_policy"`
	// +optional
	MemAllocationRatio *int64  `json:"memAllocationRatio,omitempty" tf:"mem_allocation_ratio"`
	VpcID              *string `json:"vpcID" tf:"vpc_id"`
}

func (*DedicatedHostGroupSpecResource) DeepCopy

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

func (*DedicatedHostGroupSpecResource) DeepCopyInto

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

type DedicatedHostGroupStatus

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

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

func (*DedicatedHostGroupStatus) DeepCopyInto

func (in *DedicatedHostGroupStatus) DeepCopyInto(out *DedicatedHostGroupStatus)

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