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=load.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: load.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 Balancer

type Balancer struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              BalancerSpec   `json:"spec,omitempty"`
	Status            BalancerStatus `json:"status,omitempty"`
}

func (*Balancer) DeepCopy

func (in *Balancer) DeepCopy() *Balancer

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

func (*Balancer) DeepCopyInto

func (in *Balancer) DeepCopyInto(out *Balancer)

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

func (*Balancer) DeepCopyObject

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

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

func (*Balancer) SetupWebhookWithManager

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

func (*Balancer) ValidateCreate

func (r *Balancer) ValidateCreate() error

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

func (*Balancer) ValidateDelete

func (r *Balancer) ValidateDelete() error

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

func (*Balancer) ValidateUpdate

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

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

type BalancerList

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

BalancerList is a list of Balancers

func (*BalancerList) DeepCopy

func (in *BalancerList) DeepCopy() *BalancerList

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

func (*BalancerList) DeepCopyInto

func (in *BalancerList) DeepCopyInto(out *BalancerList)

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

func (*BalancerList) DeepCopyObject

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

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

type BalancerSpec

type BalancerSpec struct {
	State *BalancerSpecResource `json:"state,omitempty" tf:"-"`

	Resource BalancerSpecResource `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 (*BalancerSpec) DeepCopy

func (in *BalancerSpec) DeepCopy() *BalancerSpec

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

func (*BalancerSpec) DeepCopyInto

func (in *BalancerSpec) DeepCopyInto(out *BalancerSpec)

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

type BalancerSpecFirewallRules

type BalancerSpecFirewallRules struct {
	// +optional
	ID     *string `json:"ID,omitempty" tf:"id"`
	IpType *string `json:"ipType" tf:"ip_type"`
	Port   *int64  `json:"port" tf:"port"`
	Source *string `json:"source" tf:"source"`
}

func (*BalancerSpecFirewallRules) DeepCopy

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

func (*BalancerSpecFirewallRules) DeepCopyInto

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

type BalancerSpecForwardingRules

type BalancerSpecForwardingRules struct {
	BackendPort      *int64  `json:"backendPort" tf:"backend_port"`
	BackendProtocol  *string `json:"backendProtocol" tf:"backend_protocol"`
	FrontendPort     *int64  `json:"frontendPort" tf:"frontend_port"`
	FrontendProtocol *string `json:"frontendProtocol" tf:"frontend_protocol"`
	// +optional
	RuleID *string `json:"ruleID,omitempty" tf:"rule_id"`
}

func (*BalancerSpecForwardingRules) DeepCopy

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

func (*BalancerSpecForwardingRules) DeepCopyInto

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

type BalancerSpecHealthCheck

type BalancerSpecHealthCheck struct {
	CheckInterval    *int64 `json:"checkInterval" tf:"check_interval"`
	HealthyThreshold *int64 `json:"healthyThreshold" tf:"healthy_threshold"`
	// +optional
	Path               *string `json:"path,omitempty" tf:"path"`
	Port               *int64  `json:"port" tf:"port"`
	Protocol           *string `json:"protocol" tf:"protocol"`
	ResponseTimeout    *int64  `json:"responseTimeout" tf:"response_timeout"`
	UnhealthyThreshold *int64  `json:"unhealthyThreshold" tf:"unhealthy_threshold"`
}

func (*BalancerSpecHealthCheck) DeepCopy

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

func (*BalancerSpecHealthCheck) DeepCopyInto

func (in *BalancerSpecHealthCheck) DeepCopyInto(out *BalancerSpecHealthCheck)

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

type BalancerSpecHealthCheckCodec

type BalancerSpecHealthCheckCodec struct {
}

+k8s:deepcopy-gen=false

func (BalancerSpecHealthCheckCodec) Decode

func (BalancerSpecHealthCheckCodec) Encode

func (BalancerSpecHealthCheckCodec) IsEmpty

type BalancerSpecResource

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

	// +optional
	AttachedInstances []string `json:"attachedInstances,omitempty" tf:"attached_instances"`
	// +optional
	BalancingAlgorithm *string `json:"balancingAlgorithm,omitempty" tf:"balancing_algorithm"`
	// +optional
	CookieName *string `json:"cookieName,omitempty" tf:"cookie_name"`
	// +optional
	FirewallRules []BalancerSpecFirewallRules `json:"firewallRules,omitempty" tf:"firewall_rules"`
	// +kubebuilder:validation:MinItems=1
	ForwardingRules []BalancerSpecForwardingRules `json:"forwardingRules" tf:"forwarding_rules"`
	// +optional
	HasSsl *bool `json:"hasSsl,omitempty" tf:"has_ssl"`
	// +optional
	HealthCheck *BalancerSpecHealthCheck `json:"healthCheck,omitempty" tf:"health_check"`
	// +optional
	Ipv4 *string `json:"ipv4,omitempty" tf:"ipv4"`
	// +optional
	Ipv6 *string `json:"ipv6,omitempty" tf:"ipv6"`
	// +optional
	Label *string `json:"label,omitempty" tf:"label"`
	// +optional
	PrivateNetwork *string `json:"privateNetwork,omitempty" tf:"private_network"`
	// +optional
	ProxyProtocol *bool   `json:"proxyProtocol,omitempty" tf:"proxy_protocol"`
	Region        *string `json:"region" tf:"region"`
	// +optional
	Ssl *BalancerSpecSsl `json:"ssl,omitempty" tf:"ssl"`
	// +optional
	SslRedirect *bool `json:"sslRedirect,omitempty" tf:"ssl_redirect"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
}

func (*BalancerSpecResource) DeepCopy

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

func (*BalancerSpecResource) DeepCopyInto

func (in *BalancerSpecResource) DeepCopyInto(out *BalancerSpecResource)

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

type BalancerSpecSsl

type BalancerSpecSsl struct {
	Certificate *string `json:"certificate" tf:"certificate"`
	// +optional
	Chain      *string `json:"chain,omitempty" tf:"chain"`
	PrivateKey *string `json:"-" sensitive:"true" tf:"private_key"`
}

func (*BalancerSpecSsl) DeepCopy

func (in *BalancerSpecSsl) DeepCopy() *BalancerSpecSsl

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

func (*BalancerSpecSsl) DeepCopyInto

func (in *BalancerSpecSsl) DeepCopyInto(out *BalancerSpecSsl)

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

type BalancerSpecSslCodec

type BalancerSpecSslCodec struct {
}

+k8s:deepcopy-gen=false

func (BalancerSpecSslCodec) Decode

func (BalancerSpecSslCodec) Encode

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

func (BalancerSpecSslCodec) IsEmpty

func (BalancerSpecSslCodec) IsEmpty(ptr unsafe.Pointer) bool

type BalancerStatus

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

func (in *BalancerStatus) DeepCopy() *BalancerStatus

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

func (*BalancerStatus) DeepCopyInto

func (in *BalancerStatus) DeepCopyInto(out *BalancerStatus)

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