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.digitalocean.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 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:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" 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 ClusterSpecKubeConfig added in v0.5.0

type ClusterSpecKubeConfig struct {
	// +optional
	ClientCertificate *string `json:"clientCertificate,omitempty" tf:"client_certificate"`
	// +optional
	ClientKey *string `json:"clientKey,omitempty" tf:"client_key"`
	// +optional
	ClusterCaCertificate *string `json:"clusterCaCertificate,omitempty" tf:"cluster_ca_certificate"`
	// +optional
	ExpiresAt *string `json:"expiresAt,omitempty" tf:"expires_at"`
	// +optional
	Host *string `json:"host,omitempty" tf:"host"`
	// +optional
	RawConfig *string `json:"rawConfig,omitempty" tf:"raw_config"`
	// +optional
	Token *string `json:"token,omitempty" tf:"token"`
}

func (*ClusterSpecKubeConfig) DeepCopy added in v0.5.0

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

func (*ClusterSpecKubeConfig) DeepCopyInto added in v0.5.0

func (in *ClusterSpecKubeConfig) DeepCopyInto(out *ClusterSpecKubeConfig)

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

type ClusterSpecMaintenancePolicy

type ClusterSpecMaintenancePolicy struct {
	// +optional
	Day *string `json:"day,omitempty" tf:"day"`
	// +optional
	Duration *string `json:"duration,omitempty" tf:"duration"`
	// +optional
	StartTime *string `json:"startTime,omitempty" tf:"start_time"`
}

func (*ClusterSpecMaintenancePolicy) DeepCopy

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

func (*ClusterSpecMaintenancePolicy) DeepCopyInto

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

type ClusterSpecMaintenancePolicyCodec

type ClusterSpecMaintenancePolicyCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecMaintenancePolicyCodec) Decode

func (ClusterSpecMaintenancePolicyCodec) Encode

func (ClusterSpecMaintenancePolicyCodec) IsEmpty

type ClusterSpecNodePool

type ClusterSpecNodePool struct {
	// +optional
	ActualNodeCount *int64 `json:"actualNodeCount,omitempty" tf:"actual_node_count"`
	// +optional
	AutoScale *bool `json:"autoScale,omitempty" tf:"auto_scale"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	Labels *map[string]string `json:"labels,omitempty" tf:"labels"`
	// +optional
	MaxNodes *int64 `json:"maxNodes,omitempty" tf:"max_nodes"`
	// +optional
	MinNodes *int64  `json:"minNodes,omitempty" tf:"min_nodes"`
	Name     *string `json:"name" tf:"name"`
	// +optional
	NodeCount *int64 `json:"nodeCount,omitempty" tf:"node_count"`
	// +optional
	Nodes []ClusterSpecNodePoolNodes `json:"nodes,omitempty" tf:"nodes"`
	Size  *string                    `json:"size" tf:"size"`
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// +optional
	Taint []ClusterSpecNodePoolTaint `json:"taint,omitempty" tf:"taint"`
}

func (*ClusterSpecNodePool) DeepCopy

func (in *ClusterSpecNodePool) DeepCopy() *ClusterSpecNodePool

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

func (*ClusterSpecNodePool) DeepCopyInto

func (in *ClusterSpecNodePool) DeepCopyInto(out *ClusterSpecNodePool)

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

type ClusterSpecNodePoolCodec

type ClusterSpecNodePoolCodec struct {
}

+k8s:deepcopy-gen=false

func (ClusterSpecNodePoolCodec) Decode

func (ClusterSpecNodePoolCodec) Encode

func (ClusterSpecNodePoolCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (ClusterSpecNodePoolCodec) IsEmpty

type ClusterSpecNodePoolNodes

type ClusterSpecNodePoolNodes struct {
	// +optional
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at"`
	// +optional
	DropletID *string `json:"dropletID,omitempty" tf:"droplet_id"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +optional
	UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at"`
}

func (*ClusterSpecNodePoolNodes) DeepCopy

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

func (*ClusterSpecNodePoolNodes) DeepCopyInto

func (in *ClusterSpecNodePoolNodes) DeepCopyInto(out *ClusterSpecNodePoolNodes)

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

type ClusterSpecNodePoolTaint

type ClusterSpecNodePoolTaint struct {
	Effect *string `json:"effect" tf:"effect"`
	Key    *string `json:"key" tf:"key"`
	Value  *string `json:"value" tf:"value"`
}

func (*ClusterSpecNodePoolTaint) DeepCopy

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

func (*ClusterSpecNodePoolTaint) DeepCopyInto

func (in *ClusterSpecNodePoolTaint) DeepCopyInto(out *ClusterSpecNodePoolTaint)

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
	AutoUpgrade *bool `json:"autoUpgrade,omitempty" tf:"auto_upgrade"`
	// +optional
	ClusterSubnet *string `json:"clusterSubnet,omitempty" tf:"cluster_subnet"`
	// +optional
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at"`
	// +optional
	Endpoint *string `json:"endpoint,omitempty" tf:"endpoint"`
	// +optional
	Ha *bool `json:"ha,omitempty" tf:"ha"`
	// +optional
	Ipv4Address *string `json:"ipv4Address,omitempty" tf:"ipv4_address"`
	// +optional
	KubeConfig []ClusterSpecKubeConfig `json:"-" sensitive:"true" tf:"kube_config"`
	// +optional
	MaintenancePolicy *ClusterSpecMaintenancePolicy `json:"maintenancePolicy,omitempty" tf:"maintenance_policy"`
	Name              *string                       `json:"name" tf:"name"`
	NodePool          *ClusterSpecNodePool          `json:"nodePool" tf:"node_pool"`
	Region            *string                       `json:"region" tf:"region"`
	// +optional
	ServiceSubnet *string `json:"serviceSubnet,omitempty" tf:"service_subnet"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +optional
	SurgeUpgrade *bool `json:"surgeUpgrade,omitempty" tf:"surge_upgrade"`
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// +optional
	UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at"`
	// +optional
	Urn     *string `json:"urn,omitempty" tf:"urn"`
	Version *string `json:"version" tf:"version"`
	// +optional
	VpcUUID *string `json:"vpcUUID,omitempty" tf:"vpc_uuid"`
}

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.

type NodePool

type NodePool struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NodePoolSpec   `json:"spec,omitempty"`
	Status            NodePoolStatus `json:"status,omitempty"`
}

func (*NodePool) DeepCopy

func (in *NodePool) DeepCopy() *NodePool

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

func (*NodePool) DeepCopyInto

func (in *NodePool) DeepCopyInto(out *NodePool)

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

func (*NodePool) DeepCopyObject

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

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

func (*NodePool) SetupWebhookWithManager

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

func (*NodePool) ValidateCreate

func (r *NodePool) ValidateCreate() error

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

func (*NodePool) ValidateDelete

func (r *NodePool) ValidateDelete() error

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

func (*NodePool) ValidateUpdate

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

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

type NodePoolList

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

NodePoolList is a list of NodePools

func (*NodePoolList) DeepCopy

func (in *NodePoolList) DeepCopy() *NodePoolList

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

func (*NodePoolList) DeepCopyInto

func (in *NodePoolList) DeepCopyInto(out *NodePoolList)

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

func (*NodePoolList) DeepCopyObject

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

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

type NodePoolSpec

type NodePoolSpec struct {
	State *NodePoolSpecResource `json:"state,omitempty" tf:"-"`

	Resource NodePoolSpecResource `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 (*NodePoolSpec) DeepCopy

func (in *NodePoolSpec) DeepCopy() *NodePoolSpec

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

func (*NodePoolSpec) DeepCopyInto

func (in *NodePoolSpec) DeepCopyInto(out *NodePoolSpec)

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

type NodePoolSpecNodes

type NodePoolSpecNodes struct {
	// +optional
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at"`
	// +optional
	DropletID *string `json:"dropletID,omitempty" tf:"droplet_id"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +optional
	UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at"`
}

func (*NodePoolSpecNodes) DeepCopy

func (in *NodePoolSpecNodes) DeepCopy() *NodePoolSpecNodes

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

func (*NodePoolSpecNodes) DeepCopyInto

func (in *NodePoolSpecNodes) DeepCopyInto(out *NodePoolSpecNodes)

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

type NodePoolSpecResource

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

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

	// +optional
	ActualNodeCount *int64 `json:"actualNodeCount,omitempty" tf:"actual_node_count"`
	// +optional
	AutoScale *bool   `json:"autoScale,omitempty" tf:"auto_scale"`
	ClusterID *string `json:"clusterID" tf:"cluster_id"`
	// +optional
	Labels *map[string]string `json:"labels,omitempty" tf:"labels"`
	// +optional
	MaxNodes *int64 `json:"maxNodes,omitempty" tf:"max_nodes"`
	// +optional
	MinNodes *int64  `json:"minNodes,omitempty" tf:"min_nodes"`
	Name     *string `json:"name" tf:"name"`
	// +optional
	NodeCount *int64 `json:"nodeCount,omitempty" tf:"node_count"`
	// +optional
	Nodes []NodePoolSpecNodes `json:"nodes,omitempty" tf:"nodes"`
	Size  *string             `json:"size" tf:"size"`
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// +optional
	Taint []NodePoolSpecTaint `json:"taint,omitempty" tf:"taint"`
}

func (*NodePoolSpecResource) DeepCopy

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

func (*NodePoolSpecResource) DeepCopyInto

func (in *NodePoolSpecResource) DeepCopyInto(out *NodePoolSpecResource)

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

type NodePoolSpecTaint

type NodePoolSpecTaint struct {
	Effect *string `json:"effect" tf:"effect"`
	Key    *string `json:"key" tf:"key"`
	Value  *string `json:"value" tf:"value"`
}

func (*NodePoolSpecTaint) DeepCopy

func (in *NodePoolSpecTaint) DeepCopy() *NodePoolSpecTaint

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

func (*NodePoolSpecTaint) DeepCopyInto

func (in *NodePoolSpecTaint) DeepCopyInto(out *NodePoolSpecTaint)

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

type NodePoolStatus

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

func (in *NodePoolStatus) DeepCopy() *NodePoolStatus

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

func (*NodePoolStatus) DeepCopyInto

func (in *NodePoolStatus) DeepCopyInto(out *NodePoolStatus)

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