Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the nmstate v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=nmstate.io
Package v1beta1 contains API Schema definitions for the nmstate v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=nmstate.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "nmstate.io", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type NMState ¶
type NMState struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NMStateSpec `json:"spec,omitempty"`
}
NMState is the Schema for the nmstates API +kubebuilder:resource:path=nmstates,scope=Cluster +kubebuilder:storageversion
func (*NMState) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMState.
func (*NMState) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NMState) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NMStateList ¶
type NMStateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NMState `json:"items"`
}
NMStateList contains a list of NMState
func (*NMStateList) DeepCopy ¶
func (in *NMStateList) DeepCopy() *NMStateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMStateList.
func (*NMStateList) DeepCopyInto ¶
func (in *NMStateList) DeepCopyInto(out *NMStateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NMStateList) DeepCopyObject ¶
func (in *NMStateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NMStateSpec ¶
type NMStateSpec struct {
// NodeSelector is an optional selector that will be added to handler DaemonSet manifest
// for both workers and masters (https://github.com/nmstate/kubernetes-nmstate/blob/master/deploy/handler/operator.yaml).
// If NodeSelector is specified, the handler will run only on nodes that have each of the indicated key-value pairs
// as labels applied to the node.
// +optional
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
}
NMStateSpec defines the desired state of NMstate
func (*NMStateSpec) DeepCopy ¶
func (in *NMStateSpec) DeepCopy() *NMStateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMStateSpec.
func (*NMStateSpec) DeepCopyInto ¶
func (in *NMStateSpec) DeepCopyInto(out *NMStateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.