Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type BackendGroup
- type BackendGroupList
- type BackendGroupSpec
- type BackendGroupStatus
- type BackendRecord
- type BackendRecordCondition
- type BackendRecordConditionType
- type BackendRecordList
- type BackendRecordSpec
- type BackendRecordStatus
- type ConditionReason
- type ConditionStatus
- type DriverType
- type Duration
- type EnsurePolicyConfig
- type EnsurePolicyType
- type IntOrString
- func (in *IntOrString) DeepCopy() *IntOrString
- func (in *IntOrString) DeepCopyInto(out *IntOrString)
- func (intstr *IntOrString) IntValue() int
- func (intstr IntOrString) MarshalJSON() ([]byte, error)
- func (intstr *IntOrString) String() string
- func (intstr *IntOrString) UnmarshalJSON(value []byte) error
- type LoadBalancer
- type LoadBalancerCondition
- type LoadBalancerConditionType
- type LoadBalancerDriver
- type LoadBalancerDriverCondition
- type LoadBalancerDriverConditionType
- type LoadBalancerDriverList
- type LoadBalancerDriverSpec
- type LoadBalancerDriverStatus
- type LoadBalancerList
- type LoadBalancerSpec
- type LoadBalancerStatus
- type NodeBackendRecord
- type PodBackend
- type PodBackendRecord
- type PortSelector
- type SelectPodByLabel
- type ServiceBackend
- type ServiceBackendRecord
- type ServicePort
- type Type
- type WebhookConfig
Constants ¶
const ( APIVersion = "lbcf.tkestack.io/v1beta1" SystemDriverPrefix = "lbcf-" // labels of LoadBalancerDriver DriverDrainingLabel = "lbcf.tkestack.io/driver-draining" LabelDriverName = "lbcf.tkestack.io/lb-driver" LabelLBName = "lbcf.tkestack.io/lb-name" LabelLBNamePrefix = "name.lb.lbcf.tkestack.io/" LabelGroupName = "lbcf.tkestack.io/backend-group" LabelServiceName = "lbcf.tkestack.io/backend-service" LabelPodName = "lbcf.tkestack.io/backend-pod" LabelStaticAddr = "lbcf.tkestack.io/backend-static-addr" // LoadBalancers and BackendGroups with label do-not-delete are not allowed to be deleted LabelDoNotDelete = "lbcf.tkestack.io/do-not-delete" FinalizerDeleteLB = "lbcf.tkestack.io/delete-load-loadbalancer" FinalizerDeregisterBackend = "lbcf.tkestack.io/deregister-backend" FinalizerDeregisterBackendGroup = "lbcf.tkestack.io/deregister-backend-group" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "lbcf.tkestack.io", Version: "v1beta1"}
Functions ¶
func RegisterDefaults ¶ added in v1.1.2
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type BackendGroup ¶
type BackendGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackendGroupSpec `json:"spec"` Status BackendGroupStatus `json:"status,omitempty"` }
BackendGroup is a top-level type. A client is created for it.
func (*BackendGroup) DeepCopy ¶
func (in *BackendGroup) DeepCopy() *BackendGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendGroup.
func (*BackendGroup) DeepCopyInto ¶
func (in *BackendGroup) DeepCopyInto(out *BackendGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackendGroup) DeepCopyObject ¶
func (in *BackendGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackendGroupList ¶
type BackendGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackendGroup `json:"items"` }
BackendGroupList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.
func (*BackendGroupList) DeepCopy ¶
func (in *BackendGroupList) DeepCopy() *BackendGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendGroupList.
func (*BackendGroupList) DeepCopyInto ¶
func (in *BackendGroupList) DeepCopyInto(out *BackendGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackendGroupList) DeepCopyObject ¶
func (in *BackendGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackendGroupSpec ¶
type BackendGroupSpec struct { // +optional // Deprecated: use loadBalancers instead LBName *string `json:"lbName"` LoadBalancers []string `json:"loadBalancers"` // +optional Service *ServiceBackend `json:"service,omitempty"` // +optional Pods *PodBackend `json:"pods,omitempty"` // +optional Static []string `json:"static,omitempty"` // +optional Parameters map[string]string `json:"parameters,omitempty"` // +optional EnsurePolicy *EnsurePolicyConfig `json:"ensurePolicy,omitempty"` }
func (*BackendGroupSpec) DeepCopy ¶
func (in *BackendGroupSpec) DeepCopy() *BackendGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendGroupSpec.
func (*BackendGroupSpec) DeepCopyInto ¶
func (in *BackendGroupSpec) DeepCopyInto(out *BackendGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (BackendGroupSpec) GetLoadBalancers ¶ added in v1.2.0
func (bgSpec BackendGroupSpec) GetLoadBalancers() []string
type BackendGroupStatus ¶
type BackendGroupStatus struct { Backends int32 `json:"backends"` RegisteredBackends int32 `json:"registeredBackends"` }
func (*BackendGroupStatus) DeepCopy ¶
func (in *BackendGroupStatus) DeepCopy() *BackendGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendGroupStatus.
func (*BackendGroupStatus) DeepCopyInto ¶
func (in *BackendGroupStatus) DeepCopyInto(out *BackendGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackendRecord ¶
type BackendRecord struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackendRecordSpec `json:"spec"` Status BackendRecordStatus `json:"status,omitempty"` }
LoadBalancerDriver is a top-level type. A client is created for it.
func (*BackendRecord) DeepCopy ¶
func (in *BackendRecord) DeepCopy() *BackendRecord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendRecord.
func (*BackendRecord) DeepCopyInto ¶
func (in *BackendRecord) DeepCopyInto(out *BackendRecord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackendRecord) DeepCopyObject ¶
func (in *BackendRecord) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackendRecordCondition ¶
type BackendRecordCondition struct { // Type is the type of the condition. Type BackendRecordConditionType `json:"type"` // Status is the status of the condition. // Can be True, False, Unknown. Status ConditionStatus `json:"status"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // Unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message"` }
func (*BackendRecordCondition) DeepCopy ¶
func (in *BackendRecordCondition) DeepCopy() *BackendRecordCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendRecordCondition.
func (*BackendRecordCondition) DeepCopyInto ¶
func (in *BackendRecordCondition) DeepCopyInto(out *BackendRecordCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackendRecordConditionType ¶
type BackendRecordConditionType string
const (
BackendRegistered BackendRecordConditionType = "Registered"
)
type BackendRecordList ¶
type BackendRecordList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackendRecord `json:"items"` }
BackendRecordList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.
func (*BackendRecordList) DeepCopy ¶
func (in *BackendRecordList) DeepCopy() *BackendRecordList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendRecordList.
func (*BackendRecordList) DeepCopyInto ¶
func (in *BackendRecordList) DeepCopyInto(out *BackendRecordList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackendRecordList) DeepCopyObject ¶
func (in *BackendRecordList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackendRecordSpec ¶
type BackendRecordSpec struct { LBName string `json:"lbName"` LBDriver string `json:"lbDriver"` LBInfo map[string]string `json:"lbInfo"` LBAttributes map[string]string `json:"lbAttributes"` Parameters map[string]string `json:"parameters"` // +optional PodBackendInfo *PodBackendRecord `json:"podBackend,omitempty"` // +optional ServiceBackendInfo *ServiceBackendRecord `json:"serviceBackend,omitempty"` // +optional StaticAddr *string `json:"staticAddr,omitempty"` // +optional EnsurePolicy *EnsurePolicyConfig `json:"ensurePolicy,omitempty"` }
func (*BackendRecordSpec) DeepCopy ¶
func (in *BackendRecordSpec) DeepCopy() *BackendRecordSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendRecordSpec.
func (*BackendRecordSpec) DeepCopyInto ¶
func (in *BackendRecordSpec) DeepCopyInto(out *BackendRecordSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackendRecordStatus ¶
type BackendRecordStatus struct { BackendAddr string `json:"backendAddr"` InjectedInfo map[string]string `json:"injectedInfo"` Conditions []BackendRecordCondition `json:"conditions"` }
func (*BackendRecordStatus) DeepCopy ¶
func (in *BackendRecordStatus) DeepCopy() *BackendRecordStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendRecordStatus.
func (*BackendRecordStatus) DeepCopyInto ¶
func (in *BackendRecordStatus) DeepCopyInto(out *BackendRecordStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionReason ¶
type ConditionReason string
const ( ReasonOperationInProgress ConditionReason = "OperationInProgres" ReasonOperationFailed ConditionReason = "OperationFailed" ReasonInvalidResponse ConditionReason = "InvalidResponse" )
func (ConditionReason) String ¶
func (c ConditionReason) String() string
type ConditionStatus ¶
type ConditionStatus string
const ( ConditionTrue ConditionStatus = "True" ConditionFalse ConditionStatus = "False" ConditionUnknown ConditionStatus = "Unknown" )
type Duration ¶
func (*Duration) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Duration.
func (*Duration) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
type EnsurePolicyConfig ¶
type EnsurePolicyConfig struct { Policy EnsurePolicyType `json:"policy"` // +optional MinPeriod *Duration `json:"minPeriod,omitempty"` }
func (*EnsurePolicyConfig) DeepCopy ¶
func (in *EnsurePolicyConfig) DeepCopy() *EnsurePolicyConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnsurePolicyConfig.
func (*EnsurePolicyConfig) DeepCopyInto ¶
func (in *EnsurePolicyConfig) DeepCopyInto(out *EnsurePolicyConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnsurePolicyType ¶
type EnsurePolicyType string
const ( PolicyIfNotSucc EnsurePolicyType = "IfNotSucc" PolicyAlways EnsurePolicyType = "Always" )
type IntOrString ¶
type IntOrString struct { Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"` IntVal int32 `protobuf:"varint,2,opt,name=intVal"` StrVal string `protobuf:"bytes,3,opt,name=strVal"` }
func FromInt ¶
func FromInt(val int) IntOrString
func FromString ¶
func FromString(val string) IntOrString
FromString creates an IntOrString object with a string value.
func Parse ¶
func Parse(val string) IntOrString
Parse the given string and try to convert it to an integer before setting it as a string value.
func (*IntOrString) DeepCopy ¶
func (in *IntOrString) DeepCopy() *IntOrString
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntOrString.
func (*IntOrString) DeepCopyInto ¶
func (in *IntOrString) DeepCopyInto(out *IntOrString)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IntOrString) IntValue ¶
func (intstr *IntOrString) IntValue() int
IntValue returns the IntVal if type Int, or if it is a String, will attempt a conversion to int.
func (IntOrString) MarshalJSON ¶
func (intstr IntOrString) MarshalJSON() ([]byte, error)
func (*IntOrString) String ¶
func (intstr *IntOrString) String() string
String returns the string value, or the Itoa of the int value.
func (*IntOrString) UnmarshalJSON ¶
func (intstr *IntOrString) UnmarshalJSON(value []byte) error
type LoadBalancer ¶
type LoadBalancer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LoadBalancerSpec `json:"spec"` Status LoadBalancerStatus `json:"status,omitempty"` }
LoadBalancer is a top-level type. A client is created for it.
func (*LoadBalancer) DeepCopy ¶
func (in *LoadBalancer) DeepCopy() *LoadBalancer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancer.
func (*LoadBalancer) DeepCopyInto ¶
func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadBalancer) DeepCopyObject ¶
func (in *LoadBalancer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LoadBalancerCondition ¶
type LoadBalancerCondition struct { // Type is the type of the condition. Type LoadBalancerConditionType `json:"type"` // Status is the status of the condition. // Can be True, False, Unknown. Status ConditionStatus `json:"status"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // Unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty"` }
func (*LoadBalancerCondition) DeepCopy ¶
func (in *LoadBalancerCondition) DeepCopy() *LoadBalancerCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerCondition.
func (*LoadBalancerCondition) DeepCopyInto ¶
func (in *LoadBalancerCondition) DeepCopyInto(out *LoadBalancerCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerConditionType ¶
type LoadBalancerConditionType string
const ( LBCreated LoadBalancerConditionType = "Created" LBAttributesSynced LoadBalancerConditionType = "AttributesSynced" )
type LoadBalancerDriver ¶
type LoadBalancerDriver struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LoadBalancerDriverSpec `json:"spec"` Status LoadBalancerDriverStatus `json:"status,omitempty"` }
LoadBalancerDriver is a top-level type. A client is created for it.
func (*LoadBalancerDriver) DeepCopy ¶
func (in *LoadBalancerDriver) DeepCopy() *LoadBalancerDriver
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerDriver.
func (*LoadBalancerDriver) DeepCopyInto ¶
func (in *LoadBalancerDriver) DeepCopyInto(out *LoadBalancerDriver)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadBalancerDriver) DeepCopyObject ¶
func (in *LoadBalancerDriver) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LoadBalancerDriverCondition ¶
type LoadBalancerDriverCondition struct { // Type is the type of the condition. Type LoadBalancerDriverConditionType `json:"type"` // Status is the status of the condition. // Can be True, False, Unknown. Status ConditionStatus `json:"status"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // Unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty"` }
func (*LoadBalancerDriverCondition) DeepCopy ¶
func (in *LoadBalancerDriverCondition) DeepCopy() *LoadBalancerDriverCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerDriverCondition.
func (*LoadBalancerDriverCondition) DeepCopyInto ¶
func (in *LoadBalancerDriverCondition) DeepCopyInto(out *LoadBalancerDriverCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerDriverConditionType ¶
type LoadBalancerDriverConditionType string
const (
DriverAccepted LoadBalancerDriverConditionType = "Accepted"
)
type LoadBalancerDriverList ¶
type LoadBalancerDriverList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LoadBalancerDriver `json:"items"` }
LoadBalancerDriverList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.
func (*LoadBalancerDriverList) DeepCopy ¶
func (in *LoadBalancerDriverList) DeepCopy() *LoadBalancerDriverList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerDriverList.
func (*LoadBalancerDriverList) DeepCopyInto ¶
func (in *LoadBalancerDriverList) DeepCopyInto(out *LoadBalancerDriverList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadBalancerDriverList) DeepCopyObject ¶
func (in *LoadBalancerDriverList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LoadBalancerDriverSpec ¶
type LoadBalancerDriverSpec struct { DriverType string `json:"driverType"` URL string `json:"url"` AcceptDryRunCall bool `json:"acceptDryRunCall"` // +optional Webhooks []WebhookConfig `json:"webhooks,omitempty"` }
func (*LoadBalancerDriverSpec) DeepCopy ¶
func (in *LoadBalancerDriverSpec) DeepCopy() *LoadBalancerDriverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerDriverSpec.
func (*LoadBalancerDriverSpec) DeepCopyInto ¶
func (in *LoadBalancerDriverSpec) DeepCopyInto(out *LoadBalancerDriverSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerDriverStatus ¶
type LoadBalancerDriverStatus struct {
Conditions []LoadBalancerDriverCondition `json:"conditions"`
}
func (*LoadBalancerDriverStatus) DeepCopy ¶
func (in *LoadBalancerDriverStatus) DeepCopy() *LoadBalancerDriverStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerDriverStatus.
func (*LoadBalancerDriverStatus) DeepCopyInto ¶
func (in *LoadBalancerDriverStatus) DeepCopyInto(out *LoadBalancerDriverStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerList ¶
type LoadBalancerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LoadBalancer `json:"items"` }
LoadBalancerList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.
func (*LoadBalancerList) DeepCopy ¶
func (in *LoadBalancerList) DeepCopy() *LoadBalancerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerList.
func (*LoadBalancerList) DeepCopyInto ¶
func (in *LoadBalancerList) DeepCopyInto(out *LoadBalancerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadBalancerList) DeepCopyObject ¶
func (in *LoadBalancerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LoadBalancerSpec ¶
type LoadBalancerSpec struct { LBDriver string `json:"lbDriver"` LBSpec map[string]string `json:"lbSpec"` // +optional Attributes map[string]string `json:"attributes,omitempty"` // +optional EnsurePolicy *EnsurePolicyConfig `json:"ensurePolicy,omitempty"` }
func (*LoadBalancerSpec) DeepCopy ¶
func (in *LoadBalancerSpec) DeepCopy() *LoadBalancerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSpec.
func (*LoadBalancerSpec) DeepCopyInto ¶
func (in *LoadBalancerSpec) DeepCopyInto(out *LoadBalancerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerStatus ¶
type LoadBalancerStatus struct { LBInfo map[string]string `json:"lbInfo"` Conditions []LoadBalancerCondition `json:"conditions"` }
func (*LoadBalancerStatus) DeepCopy ¶
func (in *LoadBalancerStatus) DeepCopy() *LoadBalancerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerStatus.
func (*LoadBalancerStatus) DeepCopyInto ¶
func (in *LoadBalancerStatus) DeepCopyInto(out *LoadBalancerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeBackendRecord ¶
type NodeBackendRecord struct {
Name string `json:"name"`
}
func (*NodeBackendRecord) DeepCopy ¶
func (in *NodeBackendRecord) DeepCopy() *NodeBackendRecord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeBackendRecord.
func (*NodeBackendRecord) DeepCopyInto ¶
func (in *NodeBackendRecord) DeepCopyInto(out *NodeBackendRecord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodBackend ¶
type PodBackend struct { // +optional // Deprecated: use ports instead Port *PortSelector `json:"port"` Ports []PortSelector `json:"ports"` // +optional ByLabel *SelectPodByLabel `json:"byLabel,omitempty"` // +optional ByName []string `json:"byName,omitempty"` }
func (*PodBackend) DeepCopy ¶
func (in *PodBackend) DeepCopy() *PodBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodBackend.
func (*PodBackend) DeepCopyInto ¶
func (in *PodBackend) DeepCopyInto(out *PodBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PodBackend) GetPortSelectors ¶ added in v1.2.0
func (pb PodBackend) GetPortSelectors() []PortSelector
type PodBackendRecord ¶
type PodBackendRecord struct { Name string `json:"name"` Port PortSelector `json:"port"` }
func (*PodBackendRecord) DeepCopy ¶
func (in *PodBackendRecord) DeepCopy() *PodBackendRecord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodBackendRecord.
func (*PodBackendRecord) DeepCopyInto ¶
func (in *PodBackendRecord) DeepCopyInto(out *PodBackendRecord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortSelector ¶
type PortSelector struct { // +optional // Deprecated: use port instead PortNumber *int32 `json:"portNumber,omitempty"` Port int32 `json:"port"` // +optional Protocol string `json:"protocol,omitempty"` }
func (*PortSelector) DeepCopy ¶
func (in *PortSelector) DeepCopy() *PortSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortSelector.
func (*PortSelector) DeepCopyInto ¶
func (in *PortSelector) DeepCopyInto(out *PortSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PortSelector) GetPort ¶ added in v1.2.0
func (ps PortSelector) GetPort() int32
type SelectPodByLabel ¶
type SelectPodByLabel struct { Selector map[string]string `json:"selector"` // +optional Except []string `json:"except,omitempty"` }
func (*SelectPodByLabel) DeepCopy ¶
func (in *SelectPodByLabel) DeepCopy() *SelectPodByLabel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectPodByLabel.
func (*SelectPodByLabel) DeepCopyInto ¶
func (in *SelectPodByLabel) DeepCopyInto(out *SelectPodByLabel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceBackend ¶
type ServiceBackend struct { Name string `json:"name"` Port PortSelector `json:"port,omitempty"` // +optional NodeSelector map[string]string `json:"nodeSelector,omitempty"` }
func (*ServiceBackend) DeepCopy ¶
func (in *ServiceBackend) DeepCopy() *ServiceBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackend.
func (*ServiceBackend) DeepCopyInto ¶
func (in *ServiceBackend) DeepCopyInto(out *ServiceBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceBackendRecord ¶
type ServiceBackendRecord struct { Name string `json:"name"` Port PortSelector `json:"port"` NodePort int32 `json:"nodePort"` NodeName string `json:"nodeName"` }
func (*ServiceBackendRecord) DeepCopy ¶
func (in *ServiceBackendRecord) DeepCopy() *ServiceBackendRecord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceBackendRecord.
func (*ServiceBackendRecord) DeepCopyInto ¶
func (in *ServiceBackendRecord) DeepCopyInto(out *ServiceBackendRecord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServicePort ¶
type ServicePort struct { // +optional Name string `json:"name,omitempty"` // +optional Protocol string `json:"protocol,omitempty"` // The port that will be exposed by this service. Port int32 `json:"port" protobuf:"varint,3,opt,name=port"` // +optional TargetPort IntOrString `json:"targetPort,omitempty" protobuf:"bytes,4,opt,name=targetPort"` // The port on each node on which this service is exposed when type=NodePort or LoadBalancer. // Usually assigned by the system. If specified, it will be allocated to the service // if unused or else creation of the service will fail. // Default is to auto-allocate a port if the ServiceType of this Service requires one. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport // +optional NodePort int32 `json:"nodePort,omitempty" protobuf:"varint,5,opt,name=nodePort"` }
func (*ServicePort) DeepCopy ¶
func (in *ServicePort) DeepCopy() *ServicePort
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort.
func (*ServicePort) DeepCopyInto ¶
func (in *ServicePort) DeepCopyInto(out *ServicePort)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookConfig ¶
type WebhookConfig struct { Name string `json:"name"` // +optional Timeout Duration `json:"timeout,omitempty"` }
func (*WebhookConfig) DeepCopy ¶
func (in *WebhookConfig) DeepCopy() *WebhookConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookConfig.
func (*WebhookConfig) DeepCopyInto ¶
func (in *WebhookConfig) DeepCopyInto(out *WebhookConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.