v1alpha1

package
v0.0.0-...-763f55e Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the listeners v1alpha1 API group +kubebuilder:object:generate=true +groupName=listeners.zncdata.dev

Index

Constants

View Source
const (

	// default values
	CSIDriverImageRepository = "quay.io/zncdata/listener-csi-driver"
	CSIDriverImageTag        = "v0.0.1"
	CSIDriverImagePullpolicy = "IfNotPresent"

	NodeDriverRegistrarImageRepository = "registry.k8s.io/sig-storage/csi-node-driver-registrar"
	NodeDriverRegistrarImageTag        = "v2.8.0"
	NodeDriverRegistrarImagePullPolicy = "IfNotPresent"

	CSIProvisionerImageRepository = "registry.k8s.io/sig-storage/csi-provisioner"
	CSIProvisionerImageTag        = "v3.5.0"
	CSIProvisionerImagePullPolicy = "IfNotPresent"

	LivenessProbeImageRepository = "registry.k8s.io/sig-storage/livenessprobe"
	LivenessProbeImageTag        = "v2.11.0"
	LivenessProbeImagePullPolicy = "IfNotPresent"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "listeners.zncdata.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AddressType

type AddressType string
const (
	AddressTypeHostname AddressType = "Hostname"
	AddressTypeIP       AddressType = "IP"
)

type CSIDriverSpec

type CSIDriverSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="quay.io/zncdata/listener-csi-driver"
	Repository string `json:"repository,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="v0.0.1"
	Tag string `json:"tag,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="IfNotPresent"
	// +kubebuilder:validation:Enum=Always;IfNotPresent;Never
	PullPolicy string `json:"pullPolicy,omitempty"`

	// +kubebuilder:validation:Optional
	Logging *LoggingSpec `json:"logging,omitempty"`
}

func (*CSIDriverSpec) DeepCopy

func (in *CSIDriverSpec) DeepCopy() *CSIDriverSpec

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

func (*CSIDriverSpec) DeepCopyInto

func (in *CSIDriverSpec) DeepCopyInto(out *CSIDriverSpec)

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

type CSIProvisionerSpec

type CSIProvisionerSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="registry.k8s.io/sig-storage/csi-provisioner"
	Repository string `json:"repository,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="v3.5.0"
	Tag string `json:"tag,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="IfNotPresent"
	// +kubebuilder:validation:Enum=Always;IfNotPresent;Never
	PullPolicy string `json:"pullPolicy,omitempty"`

	// +kubebuilder:validation:Optional
	Logging *LoggingSpec `json:"logging,omitempty"`
}

func (*CSIProvisionerSpec) DeepCopy

func (in *CSIProvisionerSpec) DeepCopy() *CSIProvisionerSpec

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

func (*CSIProvisionerSpec) DeepCopyInto

func (in *CSIProvisionerSpec) DeepCopyInto(out *CSIProvisionerSpec)

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

type IngressAddressSpec

type IngressAddressSpec struct {
	// +kubebuilder:validation:Required
	Address string `json:"address,omitempty"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=Hostname;IP
	AddressType AddressType `json:"addressType,omitempty"`

	// +kubebuilder:validation:Required
	Ports *[]PortSpec `json:"ports,omitempty"`
}

func (*IngressAddressSpec) DeepCopy

func (in *IngressAddressSpec) DeepCopy() *IngressAddressSpec

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

func (*IngressAddressSpec) DeepCopyInto

func (in *IngressAddressSpec) DeepCopyInto(out *IngressAddressSpec)

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

type Listener

type Listener struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ListenerSpec   `json:"spec,omitempty"`
	Status ListenerStatus `json:"status,omitempty"`
}

Listener is the Schema for the listeners API

func (*Listener) DeepCopy

func (in *Listener) DeepCopy() *Listener

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

func (*Listener) DeepCopyInto

func (in *Listener) DeepCopyInto(out *Listener)

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

func (*Listener) DeepCopyObject

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

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

type ListenerCSI

type ListenerCSI struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ListenerCSISpec   `json:"spec,omitempty"`
	Status ListenerCSIStatus `json:"status,omitempty"`
}

ListenerCSI is the Schema for the listenercsis API

func (*ListenerCSI) DeepCopy

func (in *ListenerCSI) DeepCopy() *ListenerCSI

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

func (*ListenerCSI) DeepCopyInto

func (in *ListenerCSI) DeepCopyInto(out *ListenerCSI)

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

func (*ListenerCSI) DeepCopyObject

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

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

type ListenerCSIList

type ListenerCSIList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ListenerCSI `json:"items"`
}

ListenerCSIList contains a list of ListenerCSI

func (*ListenerCSIList) DeepCopy

func (in *ListenerCSIList) DeepCopy() *ListenerCSIList

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

func (*ListenerCSIList) DeepCopyInto

func (in *ListenerCSIList) DeepCopyInto(out *ListenerCSIList)

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

func (*ListenerCSIList) DeepCopyObject

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

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

type ListenerCSISpec

type ListenerCSISpec struct {
	CSIDriver           *CSIDriverSpec           `json:"csiDriver,omitempty"`
	NodeDriverRegistrar *NodeDriverRegistrarSpec `json:"nodeDriverRegistrar,omitempty"`
	CSIProvisioner      *CSIProvisionerSpec      `json:"csiProvisioner,omitempty"`
	LivenessProbe       *LivenessProbeSpec       `json:"livenessProbe,omitempty"`
}

ListenerCSISpec defines the desired state of ListenerCSI

func (*ListenerCSISpec) DeepCopy

func (in *ListenerCSISpec) DeepCopy() *ListenerCSISpec

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

func (*ListenerCSISpec) DeepCopyInto

func (in *ListenerCSISpec) DeepCopyInto(out *ListenerCSISpec)

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

type ListenerCSIStatus

type ListenerCSIStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

ListenerCSIStatus defines the observed state of ListenerCSI

func (*ListenerCSIStatus) DeepCopy

func (in *ListenerCSIStatus) DeepCopy() *ListenerCSIStatus

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

func (*ListenerCSIStatus) DeepCopyInto

func (in *ListenerCSIStatus) DeepCopyInto(out *ListenerCSIStatus)

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

type ListenerClass

type ListenerClass struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ListenerClassSpec   `json:"spec,omitempty"`
	Status ListenerClassStatus `json:"status,omitempty"`
}

ListenerClass is the Schema for the listenerclasses API

func (*ListenerClass) DeepCopy

func (in *ListenerClass) DeepCopy() *ListenerClass

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

func (*ListenerClass) DeepCopyInto

func (in *ListenerClass) DeepCopyInto(out *ListenerClass)

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

func (*ListenerClass) DeepCopyObject

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

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

type ListenerClassList

type ListenerClassList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ListenerClass `json:"items"`
}

ListenerClassList contains a list of ListenerClass

func (*ListenerClassList) DeepCopy

func (in *ListenerClassList) DeepCopy() *ListenerClassList

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

func (*ListenerClassList) DeepCopyInto

func (in *ListenerClassList) DeepCopyInto(out *ListenerClassList)

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

func (*ListenerClassList) DeepCopyObject

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

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

type ListenerClassSpec

type ListenerClassSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=LoadBalancer;NodePort;ClusterIP
	ServiceType ServiceType `json:"serviceType,omitempty"`

	// +kubebuilder:validation:Optional
	ServiceAnnotations map[string]string `json:"serviceAnnotations,omitempty"`
}

ListenerClassSpec defines the desired state of ListenerClass

func (*ListenerClassSpec) DeepCopy

func (in *ListenerClassSpec) DeepCopy() *ListenerClassSpec

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

func (*ListenerClassSpec) DeepCopyInto

func (in *ListenerClassSpec) DeepCopyInto(out *ListenerClassSpec)

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

type ListenerClassStatus

type ListenerClassStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

ListenerClassStatus defines the observed state of ListenerClass

func (*ListenerClassStatus) DeepCopy

func (in *ListenerClassStatus) DeepCopy() *ListenerClassStatus

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

func (*ListenerClassStatus) DeepCopyInto

func (in *ListenerClassStatus) DeepCopyInto(out *ListenerClassStatus)

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

type ListenerList

type ListenerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Listener `json:"items"`
}

ListenerList contains a list of Listener

func (*ListenerList) DeepCopy

func (in *ListenerList) DeepCopy() *ListenerList

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

func (*ListenerList) DeepCopyInto

func (in *ListenerList) DeepCopyInto(out *ListenerList)

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

func (*ListenerList) DeepCopyObject

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

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

type ListenerSpec

type ListenerSpec struct {
	// +kubebuilder:validation:Required
	ClassName string `json:"className,omitempty"`

	// +kubebuilder:validation:Optional
	ExtraPodMatchLabels map[string]string `json:"extraPodMatchLabels,omitempty"`

	// +kubebuilder:validation:Optional
	Ports []PortSpec `json:"ports,omitempty"`
}

ListenerSpec defines the desired state of Listener

func (*ListenerSpec) DeepCopy

func (in *ListenerSpec) DeepCopy() *ListenerSpec

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

func (*ListenerSpec) DeepCopyInto

func (in *ListenerSpec) DeepCopyInto(out *ListenerSpec)

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

type ListenerStatus

type ListenerStatus struct {
	IngressAddress []IngressAddressSpec `json:"ingressAddress,omitempty"`
	NodePorts      []PortSpec           `json:"nodePorts,omitempty"`
	ServiceName    string               `json:"serviceName,omitempty"`
}

ListenerStatus defines the observed state of Listener

func (*ListenerStatus) DeepCopy

func (in *ListenerStatus) DeepCopy() *ListenerStatus

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

func (*ListenerStatus) DeepCopyInto

func (in *ListenerStatus) DeepCopyInto(out *ListenerStatus)

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

type LivenessProbeSpec

type LivenessProbeSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="registry.k8s.io/sig-storage/livenessprobe"
	Repository string `json:"repository,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="v2.11.0"
	Tag string `json:"tag,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="IfNotPresent"
	// +kubebuilder:validation:Enum=Always;IfNotPresent;Never
	PullPolicy string `json:"pullPolicy,omitempty"`

	// +kubebuilder:validation:Optional
	Logging *LoggingSpec `json:"logging,omitempty"`
}

func (*LivenessProbeSpec) DeepCopy

func (in *LivenessProbeSpec) DeepCopy() *LivenessProbeSpec

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

func (*LivenessProbeSpec) DeepCopyInto

func (in *LivenessProbeSpec) DeepCopyInto(out *LivenessProbeSpec)

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

type LoggingSpec

type LoggingSpec struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="info"
	Level string `json:"level,omitempty"`
}

func (*LoggingSpec) DeepCopy

func (in *LoggingSpec) DeepCopy() *LoggingSpec

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

func (*LoggingSpec) DeepCopyInto

func (in *LoggingSpec) DeepCopyInto(out *LoggingSpec)

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

type NodeDriverRegistrarSpec

type NodeDriverRegistrarSpec struct {

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="registry.k8s.io/sig-storage/csi-node-driver-registrar"
	Repository string `json:"repository,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="v2.8.0"
	Tag string `json:"tag,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default:="IfNotPresent"
	// +kubebuilder:validation:Enum=Always;IfNotPresent;Never
	PullPolicy string `json:"pullPolicy,omitempty"`

	// +kubebuilder:validation:Optional
	Logging *LoggingSpec `json:"logging,omitempty"`
}

func (*NodeDriverRegistrarSpec) DeepCopy

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

func (*NodeDriverRegistrarSpec) DeepCopyInto

func (in *NodeDriverRegistrarSpec) DeepCopyInto(out *NodeDriverRegistrarSpec)

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

type PortSpec

type PortSpec struct {
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`

	// +kubebuilder:validation:Required
	Protocol corev1.Protocol `json:"protocol,omitempty"`

	// +kubebuilder:validation:Required
	Port int32 `json:"port,omitempty"`
}

func (*PortSpec) DeepCopy

func (in *PortSpec) DeepCopy() *PortSpec

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

func (*PortSpec) DeepCopyInto

func (in *PortSpec) DeepCopyInto(out *PortSpec)

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

type ServiceType

type ServiceType string

Service Type string describes ingress methods for a service +enum

const (
	ServiceTypeClusterIP    ServiceType = "ClusterIP"
	ServiceTypeNodePort     ServiceType = "NodePort"
	ServiceTypeLoadBalancer ServiceType = "LoadBalancer"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL