Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the clb v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=bk-bcs/bcs-services/bcs-clb-controller/pkg/apis/clb +k8s:defaulter-gen=TypeMeta +groupName=clb.bmsf.tencent.com
Package v1 contains API Schema definitions for the clb v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=bk-bcs/bcs-services/bcs-clb-controller/pkg/apis/clb +k8s:defaulter-gen=TypeMeta +groupName=clb.bmsf.tencent.com
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type ClbBackendWeight
- type ClbHealthCheck
- type ClbHttpRule
- type ClbIngress
- type ClbIngressList
- type ClbIngressSpec
- type ClbIngressStatus
- type ClbLoadBalance
- type ClbRule
- type ClbStatefulSet
- type ClbStatefulSetHttpRule
- type ClbStatefulSetRule
- type ClbTls
Constants ¶
const ( // ClbIngressStatusNormal normal status for clb ingress ClbIngressStatusNormal = "Normal" // ClbIngressStatusAbnormal abnormal status for clb ingress ClbIngressStatusAbnormal = "Abnormal" // ClbIngressMessagePortConflict message for por conflict ClbIngressMessagePortConflict = "Port Conflict" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "clb.bmsf.tencent.com", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type ClbBackendWeight ¶
type ClbBackendWeight struct { LabelSeletor map[string]string `json:"labelSelector"` // +kubebuilder:validation:Maximum=100 // +kubebuilder:validation:Minimum=0 Weight int `json:"weight"` }
func (*ClbBackendWeight) DeepCopy ¶
func (in *ClbBackendWeight) DeepCopy() *ClbBackendWeight
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbBackendWeight.
func (*ClbBackendWeight) DeepCopyInto ¶
func (in *ClbBackendWeight) DeepCopyInto(out *ClbBackendWeight)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClbHealthCheck ¶
type ClbHealthCheck struct { Enabled bool `json:"enabled,omitempty"` // +kubebuilder:validation:Maximum=60 // +kubebuilder:validation:Minimum=2 Timeout int `json:"timeout,omitempty"` // +kubebuilder:validation:Maximum=300 // +kubebuilder:validation:Minimum=5 IntervalTime int `json:"intervalTime,omitempty"` // +kubebuilder:validation:Maximum=10 // +kubebuilder:validation:Minimum=2 HealthNum int `json:"healthNum,omitempty"` // +kubebuilder:validation:Maximum=10 // +kubebuilder:validation:Minimum=2 UnHealthNum int `json:"unHealthNum,omitempty"` // +kubebuilder:validation:Maximum=31 // +kubebuilder:validation:Minimum=1 HTTPCode int `json:"httpCode,omitempty"` // +kubebuilder:validation:MaxLength=80 // +kubebuilder:validation:MinLength=1 HTTPCheckPath string `json:"httpCheckPath,omitempty"` }
func (*ClbHealthCheck) DeepCopy ¶
func (in *ClbHealthCheck) DeepCopy() *ClbHealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbHealthCheck.
func (*ClbHealthCheck) DeepCopyInto ¶
func (in *ClbHealthCheck) DeepCopyInto(out *ClbHealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClbHealthCheck) Validate4LayerConfig ¶
func (hc *ClbHealthCheck) Validate4LayerConfig() error
func (*ClbHealthCheck) Validate7LayerConfig ¶
func (hc *ClbHealthCheck) Validate7LayerConfig() error
type ClbHttpRule ¶
type ClbHttpRule struct { // +kubebuilder:validation:MaxLength=80 // +kubebuilder:validation:MinLength=1 Host string `json:"host"` // +kubebuilder:validation:MaxLength=80 // +kubebuilder:validation:MinLength=1 Path string `json:"path"` TLS *ClbTls `json:"tls,omitempty"` ClbRule `json:",inline"` }
func (*ClbHttpRule) DeepCopy ¶
func (in *ClbHttpRule) DeepCopy() *ClbHttpRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbHttpRule.
func (*ClbHttpRule) DeepCopyInto ¶
func (in *ClbHttpRule) DeepCopyInto(out *ClbHttpRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClbHttpRule) ToString ¶
func (clbHttpRule *ClbHttpRule) ToString() string
ToString convert ClbHttpRule to String
func (*ClbHttpRule) ValidateHTTP ¶
func (httpRule *ClbHttpRule) ValidateHTTP() error
func (*ClbHttpRule) ValidateHTTPS ¶
func (httpRule *ClbHttpRule) ValidateHTTPS() error
type ClbIngress ¶
type ClbIngress struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClbIngressSpec `json:"spec,omitempty"` Status ClbIngressStatus `json:"status,omitempty"` }
ClbIngress is the Schema for the clbingresses API +k8s:openapi-gen=true
func (*ClbIngress) DeepCopy ¶
func (in *ClbIngress) DeepCopy() *ClbIngress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbIngress.
func (*ClbIngress) DeepCopyInto ¶
func (in *ClbIngress) DeepCopyInto(out *ClbIngress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClbIngress) DeepCopyObject ¶
func (in *ClbIngress) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClbIngress) SetStatusMessage ¶
func (c *ClbIngress) SetStatusMessage(status, message string)
SetStatusMessage set clb ingress status message
func (*ClbIngress) ToString ¶
func (c *ClbIngress) ToString() string
ToString convert ClbIngress to String
type ClbIngressList ¶
type ClbIngressList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClbIngress `json:"items"` }
ClbIngressList contains a list of ClbIngress
func (*ClbIngressList) DeepCopy ¶
func (in *ClbIngressList) DeepCopy() *ClbIngressList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbIngressList.
func (*ClbIngressList) DeepCopyInto ¶
func (in *ClbIngressList) DeepCopyInto(out *ClbIngressList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClbIngressList) DeepCopyObject ¶
func (in *ClbIngressList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClbIngressSpec ¶
type ClbIngressSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file HTTP []*ClbHttpRule `json:"http,omitempty"` HTTPS []*ClbHttpRule `json:"https,omitempty"` TCP []*ClbRule `json:"tcp,omitempty"` UDP []*ClbRule `json:"udp,omitempty"` StatefulSet *ClbStatefulSet `json:"statefulset,omitempty"` }
ClbIngressSpec defines the desired state of ClbIngress
func (*ClbIngressSpec) DeepCopy ¶
func (in *ClbIngressSpec) DeepCopy() *ClbIngressSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbIngressSpec.
func (*ClbIngressSpec) DeepCopyInto ¶
func (in *ClbIngressSpec) DeepCopyInto(out *ClbIngressSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClbIngressStatus ¶
type ClbIngressStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Status string `json:"status"` Message string `json:"message"` LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` }
ClbIngressStatus defines the observed state of ClbIngress
func (*ClbIngressStatus) DeepCopy ¶
func (in *ClbIngressStatus) DeepCopy() *ClbIngressStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbIngressStatus.
func (*ClbIngressStatus) DeepCopyInto ¶
func (in *ClbIngressStatus) DeepCopyInto(out *ClbIngressStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClbLoadBalance ¶
type ClbLoadBalance struct { // +kubebuilder:validation:Enum=wrr,ip_hash,least_conn Strategy string `json:"strategy"` BackendWeights []ClbBackendWeight `json:"backendWeights,omitempty"` }
func (*ClbLoadBalance) DeepCopy ¶
func (in *ClbLoadBalance) DeepCopy() *ClbLoadBalance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbLoadBalance.
func (*ClbLoadBalance) DeepCopyInto ¶
func (in *ClbLoadBalance) DeepCopyInto(out *ClbLoadBalance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClbRule ¶
type ClbRule struct { ServiceName string `json:"serviceName"` Namespace string `json:"namespace"` // +kubebuilder:validation:Maximum=65535 // +kubebuilder:validation:Minimum=1 ClbPort int `json:"clbPort"` // +kubebuilder:validation:Maximum=65535 // +kubebuilder:validation:Minimum=1 ServicePort int `json:"servicePort"` LbPolicy *ClbLoadBalance `json:"lbPolicy,omitempty"` HealthCheck *ClbHealthCheck `json:"healthCheck,omitempty"` // +kubebuilder:validation:Maximum=3600 // +kubebuilder:validation:Minimum=30 SessionTime int `json:"sessionTime,omitempty"` }
func (*ClbRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbRule.
func (*ClbRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClbStatefulSet ¶
type ClbStatefulSet struct { UDP []*ClbStatefulSetRule `json:"udp,omitempty"` TCP []*ClbStatefulSetRule `json:"tcp,omitempty"` HTTP []*ClbStatefulSetHttpRule `json:"http,omitempty"` HTTPS []*ClbStatefulSetHttpRule `json:"https,omitempty"` }
ClbStatefulSet ingress for Stateful Set
func (*ClbStatefulSet) DeepCopy ¶
func (in *ClbStatefulSet) DeepCopy() *ClbStatefulSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbStatefulSet.
func (*ClbStatefulSet) DeepCopyInto ¶
func (in *ClbStatefulSet) DeepCopyInto(out *ClbStatefulSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClbStatefulSetHttpRule ¶
type ClbStatefulSetHttpRule struct { StartPort int `json:"startPort"` StartIndex int `json:"startIndex,omitempty"` EndIndex int `json:"endIndex,omitempty"` SegmentLength int `json:"segmentLength,omitempty"` ClbHttpRule }
ClbStatefulSetHttPRule http rule for stateful set
func (*ClbStatefulSetHttpRule) DeepCopy ¶
func (in *ClbStatefulSetHttpRule) DeepCopy() *ClbStatefulSetHttpRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbStatefulSetHttpRule.
func (*ClbStatefulSetHttpRule) DeepCopyInto ¶
func (in *ClbStatefulSetHttpRule) DeepCopyInto(out *ClbStatefulSetHttpRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClbStatefulSetRule ¶
type ClbStatefulSetRule struct { StartPort int `json:"startPort"` StartIndex int `json:"startIndex,omitempty"` EndIndex int `json:"endIndex,omitempty"` SegmentLength int `json:"segmentLength,omitempty"` ClbRule }
ClbStatefulSetRule rule for stateful Set
func (*ClbStatefulSetRule) DeepCopy ¶
func (in *ClbStatefulSetRule) DeepCopy() *ClbStatefulSetRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbStatefulSetRule.
func (*ClbStatefulSetRule) DeepCopyInto ¶
func (in *ClbStatefulSetRule) DeepCopyInto(out *ClbStatefulSetRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClbTls ¶
type ClbTls struct { Mode string `json:"mode,omitempty"` CertID string `json:"certId,omitempty"` CertCaID string `json:"certCaId,omitempty"` CertServerName string `json:"certServerName,omitempty"` CertServerKey string `json:"certServerKey,omitempty"` CertServerContent string `json:"certServerContent,omitempty"` CertClientCaName string `json:"certClientCaName,omitempty"` CertClientCaContent string `json:"certCilentCaContent,omitempty"` }
func (*ClbTls) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClbTls.
func (*ClbTls) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.