Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the mesh v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=bk-bcs/bmsf-mesh/pkg/apis/mesh +k8s:defaulter-gen=TypeMeta +groupName=mesh.bmsf.tencent.com
Package v1 contains API Schema definitions for the mesh v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=bk-bcs/bmsf-mesh/pkg/apis/mesh +k8s:defaulter-gen=TypeMeta +groupName=mesh.bmsf.tencent.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "mesh.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 AppNode ¶
type AppNode struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AppNodeSpec `json:"spec,omitempty"` Status AppNodeStatus `json:"status,omitempty"` }
AppNode is the Schema for the appnodes API +k8s:openapi-gen=true
func (*AppNode) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppNode.
func (*AppNode) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppNode) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppNodeList ¶
type AppNodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AppNode `json:"items"` }
AppNodeList contains a list of AppNode
func (*AppNodeList) DeepCopy ¶
func (in *AppNodeList) DeepCopy() *AppNodeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppNodeList.
func (*AppNodeList) DeepCopyInto ¶
func (in *AppNodeList) DeepCopyInto(out *AppNodeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppNodeList) DeepCopyObject ¶
func (in *AppNodeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppNodeSpec ¶
type AppNodeSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file // node key, pod instance name/taskgroup name // +kubebuilder:validation:MaxLength=200 // +kubebuilder:validation:MinLength=1 Index string `json:"index"` // node version, like v1, v1.1, v12.01.1, come from env[BCS_DISCOVERY_VERSION] Version string `json:"version,omitempty"` // node weight, it's a Relative value // +kubebuilder:validation:Maximum=100 // +kubebuilder:validation:Minimum=0 Weight uint `json:"weight,omitempty"` // app node network mode Network string `json:"network,omitempty"` // node ip address NodeIP string `json:"nodeIP"` // proxy ip address for this node ProxyIP string `json:"proxyIP,omitempty"` // port info for container Ports []NodePort `json:"ports,omitempty"` }
AppNodeSpec defines the desired state of AppNode
func (*AppNodeSpec) DeepCopy ¶
func (in *AppNodeSpec) DeepCopy() *AppNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppNodeSpec.
func (*AppNodeSpec) DeepCopyInto ¶
func (in *AppNodeSpec) DeepCopyInto(out *AppNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppNodeStatus ¶
type AppNodeStatus struct { // last updated timestamp LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` }
AppNodeStatus defines the observed state of AppNode
func (*AppNodeStatus) DeepCopy ¶
func (in *AppNodeStatus) DeepCopy() *AppNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppNodeStatus.
func (*AppNodeStatus) DeepCopyInto ¶
func (in *AppNodeStatus) DeepCopyInto(out *AppNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppSvc ¶
type AppSvc struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AppSvcSpec `json:"spec,omitempty"` Status AppSvcStatus `json:"status,omitempty"` }
AppSvc is the Schema for the appsvcs API +k8s:openapi-gen=true
func (*AppSvc) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSvc.
func (*AppSvc) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppSvc) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppSvcList ¶
type AppSvcList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AppSvc `json:"items"` }
AppSvcList contains a list of AppSvc
func (*AppSvcList) DeepCopy ¶
func (in *AppSvcList) DeepCopy() *AppSvcList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSvcList.
func (*AppSvcList) DeepCopyInto ¶
func (in *AppSvcList) DeepCopyInto(out *AppSvcList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppSvcList) DeepCopyObject ¶
func (in *AppSvcList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppSvcSpec ¶
type AppSvcSpec struct { Selector map[string]string `json:"selector"` // service type, ClusterIP, Intergration or Empty // +kubebuilder:validation:Enum=ClusterIP,Intergration,None Type string `json:"type,omitempty"` // service version Version string `json:"version,omitempty"` // frontend represents service ip address, use for proxy or intergate Frontend []string `json:"frontend,omitempty"` // domain alias Alias string `json:"alias,omitempty"` // use for wan export WANIP []string `json:"wanip,omitempty"` ServicePorts []ServicePort `json:"ports"` //BcsService.Ports }
AppSvcSpec defines the desired state of AppSvc
func (*AppSvcSpec) DeepCopy ¶
func (in *AppSvcSpec) DeepCopy() *AppSvcSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSvcSpec.
func (*AppSvcSpec) DeepCopyInto ¶
func (in *AppSvcSpec) DeepCopyInto(out *AppSvcSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppSvcStatus ¶
type AppSvcStatus struct { // last updated timestamp LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` }
AppSvcStatus defines the observed state of AppSvc
func (*AppSvcStatus) DeepCopy ¶
func (in *AppSvcStatus) DeepCopy() *AppSvcStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSvcStatus.
func (*AppSvcStatus) DeepCopyInto ¶
func (in *AppSvcStatus) DeepCopyInto(out *AppSvcStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodePort ¶
type NodePort struct { // name for port, must equal to one service port // +kubebuilder:validation:MaxLength=100 // +kubebuilder:validation:MinLength=2 Name string `json:"name"` // protocol for this port // +kubebuilder:validation:Enum=tcp,udp,http Protocol string `json:"protocol"` // node port // +kubebuilder:validation:Maximum=65535 // +kubebuilder:validation:Minimum=1 NodePort int `json:"nodeport"` // proxy port if exists // +kubebuilder:validation:Maximum=65535 // +kubebuilder:validation:Minimum=-10 ProxyPort int `json:"proxyport,omitempty"` }
NodePort port info for one node of service
func (*NodePort) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePort.
func (*NodePort) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServicePort ¶
type ServicePort struct { // name for service port // +kubebuilder:validation:MaxLength=100 // +kubebuilder:validation:MinLength=2 Name string `json:"name"` // protocol for service port // +kubebuilder:validation:Enum=tcp,udp,http Protocol string `json:"protocol"` // domain value for http proxy // +kubebuilder:validation:MaxLength=255 // +kubebuilder:validation:MinLength=3 Domain string `json:"domain,omitempty"` // http url path Path string `json:"path,omitempty"` // service port for all AppNode, ServicePort.Name == AppNode.Ports[i].Name // +kubebuilder:validation:Maximum=65535 // +kubebuilder:validation:Minimum=1 ServicePort int `json:"serviceport"` // proxy port for this Service Port if exist // +kubebuilder:validation:Maximum=65535 // +kubebuilder:validation:Minimum=0 ProxyPort int `json:"proxyport,omitempty"` }
ServicePort port definition for application
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.