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: 2

Documentation

Overview

+groupName=emr.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: emr.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 Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterSpec   `json:"spec,omitempty"`
	Status            ClusterStatus `json:"status,omitempty"`
}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (*Cluster) SetupWebhookWithManager

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

func (*Cluster) ValidateCreate

func (r *Cluster) ValidateCreate() error

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

func (*Cluster) ValidateDelete

func (r *Cluster) ValidateDelete() error

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

func (*Cluster) ValidateUpdate

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

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

type ClusterList

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

ClusterList is a list of Clusters

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterSpec

type ClusterSpec struct {
	State *ClusterSpecResource `json:"state,omitempty" tf:"-"`

	Resource ClusterSpecResource `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 (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterSpecBootstrapAction

type ClusterSpecBootstrapAction struct {
	// +optional
	Arg *string `json:"arg,omitempty" tf:"arg"`
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// +optional
	Path *string `json:"path,omitempty" tf:"path"`
}

func (*ClusterSpecBootstrapAction) DeepCopy

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

func (*ClusterSpecBootstrapAction) DeepCopyInto

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

type ClusterSpecHostGroup

type ClusterSpecHostGroup struct {
	// +optional
	AutoRenew *bool `json:"autoRenew,omitempty" tf:"auto_renew"`
	// +optional
	ChargeType *string `json:"chargeType,omitempty" tf:"charge_type"`
	// +optional
	DiskCapacity *string `json:"diskCapacity,omitempty" tf:"disk_capacity"`
	// +optional
	DiskCount *string `json:"diskCount,omitempty" tf:"disk_count"`
	// +optional
	DiskType *string `json:"diskType,omitempty" tf:"disk_type"`
	// +optional
	GpuDriver *string `json:"gpuDriver,omitempty" tf:"gpu_driver"`
	// +optional
	HostGroupName *string `json:"hostGroupName,omitempty" tf:"host_group_name"`
	// +optional
	HostGroupType *string `json:"hostGroupType,omitempty" tf:"host_group_type"`
	// +optional
	InstanceList *string `json:"instanceList,omitempty" tf:"instance_list"`
	// +optional
	InstanceType *string `json:"instanceType,omitempty" tf:"instance_type"`
	// +optional
	NodeCount *string `json:"nodeCount,omitempty" tf:"node_count"`
	// +optional
	Period *int64 `json:"period,omitempty" tf:"period"`
	// +optional
	SysDiskCapacity *string `json:"sysDiskCapacity,omitempty" tf:"sys_disk_capacity"`
	// +optional
	SysDiskType *string `json:"sysDiskType,omitempty" tf:"sys_disk_type"`
}

func (*ClusterSpecHostGroup) DeepCopy

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

func (*ClusterSpecHostGroup) DeepCopyInto

func (in *ClusterSpecHostGroup) DeepCopyInto(out *ClusterSpecHostGroup)

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

type ClusterSpecResource

type ClusterSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	BootstrapAction []ClusterSpecBootstrapAction `json:"bootstrapAction,omitempty" tf:"bootstrap_action"`
	// +optional
	ChargeType  *string `json:"chargeType,omitempty" tf:"charge_type"`
	ClusterType *string `json:"clusterType" tf:"cluster_type"`
	// +optional
	DepositType *string `json:"depositType,omitempty" tf:"deposit_type"`
	// +optional
	EasEnable *bool   `json:"easEnable,omitempty" tf:"eas_enable"`
	EmrVer    *string `json:"emrVer" tf:"emr_ver"`
	// +optional
	HighAvailabilityEnable *bool `json:"highAvailabilityEnable,omitempty" tf:"high_availability_enable"`
	// +optional
	HostGroup []ClusterSpecHostGroup `json:"hostGroup,omitempty" tf:"host_group"`
	// +optional
	IsOpenPublicIP *bool `json:"isOpenPublicIP,omitempty" tf:"is_open_public_ip"`
	// +optional
	KeyPairName *string `json:"keyPairName,omitempty" tf:"key_pair_name"`
	// +optional
	MasterPwd *string `json:"masterPwd,omitempty" tf:"master_pwd"`
	Name      *string `json:"name" tf:"name"`
	// +optional
	OptionSoftwareList []string `json:"optionSoftwareList,omitempty" tf:"option_software_list"`
	// +optional
	Period *int64 `json:"period,omitempty" tf:"period"`
	// +optional
	RelatedClusterID *string `json:"relatedClusterID,omitempty" tf:"related_cluster_id"`
	// +optional
	SecurityGroupID *string `json:"securityGroupID,omitempty" tf:"security_group_id"`
	// +optional
	SshEnable *bool `json:"sshEnable,omitempty" tf:"ssh_enable"`
	// +optional
	Tags map[string]string `json:"tags,omitempty" tf:"tags"`
	// +optional
	UseLocalMetadb *bool `json:"useLocalMetadb,omitempty" tf:"use_local_metadb"`
	// +optional
	UserDefinedEmrEcsRole *string `json:"userDefinedEmrEcsRole,omitempty" tf:"user_defined_emr_ecs_role"`
	// +optional
	VswitchID *string `json:"vswitchID,omitempty" tf:"vswitch_id"`
	ZoneID    *string `json:"zoneID" tf:"zone_id"`
}

func (*ClusterSpecResource) DeepCopy

func (in *ClusterSpecResource) DeepCopy() *ClusterSpecResource

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

func (*ClusterSpecResource) DeepCopyInto

func (in *ClusterSpecResource) DeepCopyInto(out *ClusterSpecResource)

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

type ClusterStatus

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

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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