Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the listeners v1alpha1 API group +kubebuilder:object:generate=true +groupName=listeners.zncdata.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 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 map[string]int32 `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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listener.
func (*Listener) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Listener) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 { IngressAddresses []IngressAddressSpec `json:"ingressAddresses,omitempty"` NodePorts map[string]int32 `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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortSpec.
func (*PortSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.