Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the static-route v1 API group +kubebuilder:object:generate=true +groupName=static-route.ibm.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "static-route.ibm.com", Version: "v1"} // 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 StaticRoute ¶
type StaticRoute struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StaticRouteSpec `json:"spec,omitempty"` Status StaticRouteStatus `json:"status,omitempty"` }
StaticRoute is the Schema for the staticroutes API +kubebuilder:subresource:status +kubebuilder:resource:path=staticroutes,scope=Cluster
func (*StaticRoute) DeepCopy ¶
func (in *StaticRoute) DeepCopy() *StaticRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticRoute.
func (*StaticRoute) DeepCopyInto ¶
func (in *StaticRoute) DeepCopyInto(out *StaticRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StaticRoute) DeepCopyObject ¶
func (in *StaticRoute) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StaticRouteList ¶
type StaticRouteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []StaticRoute `json:"items"` }
StaticRouteList contains a list of StaticRoute
func (*StaticRouteList) DeepCopy ¶
func (in *StaticRouteList) DeepCopy() *StaticRouteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticRouteList.
func (*StaticRouteList) DeepCopyInto ¶
func (in *StaticRouteList) DeepCopyInto(out *StaticRouteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StaticRouteList) DeepCopyObject ¶
func (in *StaticRouteList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StaticRouteNodeStatus ¶
type StaticRouteNodeStatus struct { Hostname string `json:"hostname"` State StaticRouteSpec `json:"state"` Error string `json:"error"` }
StaticRouteNodeStatus defines the observed state of one IKS node, related to the StaticRoute
func (*StaticRouteNodeStatus) DeepCopy ¶
func (in *StaticRouteNodeStatus) DeepCopy() *StaticRouteNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticRouteNodeStatus.
func (*StaticRouteNodeStatus) DeepCopyInto ¶
func (in *StaticRouteNodeStatus) DeepCopyInto(out *StaticRouteNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StaticRouteSpec ¶
type StaticRouteSpec struct { // Subnet defines the required IP subnet in the form of: "x.x.x.x/x" // +kubebuilder:validation:Pattern=`^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$` Subnet string `json:"subnet"` // Gateway the gateway the subnet is routed through (optional, discovered if not set) // +kubebuilder:validation:Pattern=`^([0-9]{1,3}\.){3}[0-9]{1,3}$` Gateway string `json:"gateway,omitempty"` // Selector defines the target nodes by requirement (optional, default is apply to all) Selectors []metav1.LabelSelectorRequirement `json:"selectors,omitempty"` }
StaticRouteSpec defines the desired state of StaticRoute
func (*StaticRouteSpec) DeepCopy ¶
func (in *StaticRouteSpec) DeepCopy() *StaticRouteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticRouteSpec.
func (*StaticRouteSpec) DeepCopyInto ¶
func (in *StaticRouteSpec) DeepCopyInto(out *StaticRouteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StaticRouteStatus ¶
type StaticRouteStatus struct {
NodeStatus []StaticRouteNodeStatus `json:"nodeStatus"`
}
StaticRouteStatus defines the observed state of StaticRoute
func (*StaticRouteStatus) DeepCopy ¶
func (in *StaticRouteStatus) DeepCopy() *StaticRouteStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticRouteStatus.
func (*StaticRouteStatus) DeepCopyInto ¶
func (in *StaticRouteStatus) DeepCopyInto(out *StaticRouteStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.