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: 16 Imported by: 0

Documentation

Overview

+groupName=kubernetes.vultr.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: kubernetes.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 Kubernetes

type Kubernetes struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              KubernetesSpec   `json:"spec,omitempty"`
	Status            KubernetesStatus `json:"status,omitempty"`
}

func (*Kubernetes) DeepCopy

func (in *Kubernetes) DeepCopy() *Kubernetes

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

func (*Kubernetes) DeepCopyInto

func (in *Kubernetes) DeepCopyInto(out *Kubernetes)

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

func (*Kubernetes) DeepCopyObject

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

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

func (*Kubernetes) SetupWebhookWithManager

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

func (*Kubernetes) ValidateCreate

func (r *Kubernetes) ValidateCreate() error

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

func (*Kubernetes) ValidateDelete

func (r *Kubernetes) ValidateDelete() error

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

func (*Kubernetes) ValidateUpdate

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

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

type KubernetesList

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

KubernetesList is a list of Kubernetess

func (*KubernetesList) DeepCopy

func (in *KubernetesList) DeepCopy() *KubernetesList

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

func (*KubernetesList) DeepCopyInto

func (in *KubernetesList) DeepCopyInto(out *KubernetesList)

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

func (*KubernetesList) DeepCopyObject

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

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

type KubernetesSpec

type KubernetesSpec struct {
	State *KubernetesSpecResource `json:"state,omitempty" tf:"-"`

	Resource KubernetesSpecResource `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 (*KubernetesSpec) DeepCopy

func (in *KubernetesSpec) DeepCopy() *KubernetesSpec

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

func (*KubernetesSpec) DeepCopyInto

func (in *KubernetesSpec) DeepCopyInto(out *KubernetesSpec)

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

type KubernetesSpecNodePools

type KubernetesSpecNodePools struct {
	// +optional
	DateCreated *string `json:"dateCreated,omitempty" tf:"date_created"`
	// +optional
	DateUpdated *string `json:"dateUpdated,omitempty" tf:"date_updated"`
	// +optional
	ID           *string `json:"ID,omitempty" tf:"id"`
	Label        *string `json:"label" tf:"label"`
	NodeQuantity *int64  `json:"nodeQuantity" tf:"node_quantity"`
	// +optional
	Nodes []KubernetesSpecNodePoolsNodes `json:"nodes,omitempty" tf:"nodes"`
	Plan  *string                        `json:"plan" tf:"plan"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +optional
	Tag *string `json:"tag,omitempty" tf:"tag"`
}

func (*KubernetesSpecNodePools) DeepCopy

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

func (*KubernetesSpecNodePools) DeepCopyInto

func (in *KubernetesSpecNodePools) DeepCopyInto(out *KubernetesSpecNodePools)

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

type KubernetesSpecNodePoolsCodec

type KubernetesSpecNodePoolsCodec struct {
}

+k8s:deepcopy-gen=false

func (KubernetesSpecNodePoolsCodec) Decode

func (KubernetesSpecNodePoolsCodec) Encode

func (KubernetesSpecNodePoolsCodec) IsEmpty

type KubernetesSpecNodePoolsNodes

type KubernetesSpecNodePoolsNodes struct {
	// +optional
	DateCreated *string `json:"dateCreated,omitempty" tf:"date_created"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	Label *string `json:"label,omitempty" tf:"label"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
}

func (*KubernetesSpecNodePoolsNodes) DeepCopy

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

func (*KubernetesSpecNodePoolsNodes) DeepCopyInto

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

type KubernetesSpecResource

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

	// +optional
	ClusterSubnet *string `json:"clusterSubnet,omitempty" tf:"cluster_subnet"`
	// +optional
	DateCreated *string `json:"dateCreated,omitempty" tf:"date_created"`
	// +optional
	Endpoint *string `json:"endpoint,omitempty" tf:"endpoint"`
	// +optional
	Ip *string `json:"ip,omitempty" tf:"ip"`
	// Base64 encoded KubeConfig
	// +optional
	KubeConfig *string                  `json:"kubeConfig,omitempty" tf:"kube_config"`
	Label      *string                  `json:"label" tf:"label"`
	NodePools  *KubernetesSpecNodePools `json:"nodePools" tf:"node_pools"`
	Region     *string                  `json:"region" tf:"region"`
	// +optional
	ServiceSubnet *string `json:"serviceSubnet,omitempty" tf:"service_subnet"`
	// +optional
	Status  *string `json:"status,omitempty" tf:"status"`
	Version *string `json:"version" tf:"version"`
}

func (*KubernetesSpecResource) DeepCopy

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

func (*KubernetesSpecResource) DeepCopyInto

func (in *KubernetesSpecResource) DeepCopyInto(out *KubernetesSpecResource)

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

type KubernetesStatus

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

func (in *KubernetesStatus) DeepCopy() *KubernetesStatus

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

func (*KubernetesStatus) DeepCopyInto

func (in *KubernetesStatus) DeepCopyInto(out *KubernetesStatus)

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

type NodePools

type NodePools struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodePoolsSpec   `json:"spec,omitempty"`
	Status            NodePoolsStatus `json:"status,omitempty"`
}

func (*NodePools) DeepCopy

func (in *NodePools) DeepCopy() *NodePools

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

func (*NodePools) DeepCopyInto

func (in *NodePools) DeepCopyInto(out *NodePools)

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

func (*NodePools) DeepCopyObject

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

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

func (*NodePools) SetupWebhookWithManager

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

func (*NodePools) ValidateCreate

func (r *NodePools) ValidateCreate() error

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

func (*NodePools) ValidateDelete

func (r *NodePools) ValidateDelete() error

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

func (*NodePools) ValidateUpdate

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

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

type NodePoolsList

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

NodePoolsList is a list of NodePoolss

func (*NodePoolsList) DeepCopy

func (in *NodePoolsList) DeepCopy() *NodePoolsList

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

func (*NodePoolsList) DeepCopyInto

func (in *NodePoolsList) DeepCopyInto(out *NodePoolsList)

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

func (*NodePoolsList) DeepCopyObject

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

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

type NodePoolsSpec

type NodePoolsSpec struct {
	State *NodePoolsSpecResource `json:"state,omitempty" tf:"-"`

	Resource NodePoolsSpecResource `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 (*NodePoolsSpec) DeepCopy

func (in *NodePoolsSpec) DeepCopy() *NodePoolsSpec

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

func (*NodePoolsSpec) DeepCopyInto

func (in *NodePoolsSpec) DeepCopyInto(out *NodePoolsSpec)

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

type NodePoolsSpecNodes

type NodePoolsSpecNodes struct {
	// +optional
	DateCreated *string `json:"dateCreated,omitempty" tf:"date_created"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	Label *string `json:"label,omitempty" tf:"label"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
}

func (*NodePoolsSpecNodes) DeepCopy

func (in *NodePoolsSpecNodes) DeepCopy() *NodePoolsSpecNodes

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

func (*NodePoolsSpecNodes) DeepCopyInto

func (in *NodePoolsSpecNodes) DeepCopyInto(out *NodePoolsSpecNodes)

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

type NodePoolsSpecResource

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

	ClusterID *string `json:"clusterID" tf:"cluster_id"`
	// +optional
	DateCreated *string `json:"dateCreated,omitempty" tf:"date_created"`
	// +optional
	DateUpdated  *string `json:"dateUpdated,omitempty" tf:"date_updated"`
	Label        *string `json:"label" tf:"label"`
	NodeQuantity *int64  `json:"nodeQuantity" tf:"node_quantity"`
	// +optional
	Nodes []NodePoolsSpecNodes `json:"nodes,omitempty" tf:"nodes"`
	Plan  *string              `json:"plan" tf:"plan"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +optional
	Tag *string `json:"tag,omitempty" tf:"tag"`
}

func (*NodePoolsSpecResource) DeepCopy

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

func (*NodePoolsSpecResource) DeepCopyInto

func (in *NodePoolsSpecResource) DeepCopyInto(out *NodePoolsSpecResource)

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

type NodePoolsStatus

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

func (in *NodePoolsStatus) DeepCopy() *NodePoolsStatus

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

func (*NodePoolsStatus) DeepCopyInto

func (in *NodePoolsStatus) DeepCopyInto(out *NodePoolsStatus)

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