v1

package
v0.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2021 License: GPL-2.0 Imports: 6 Imported by: 3

Documentation

Overview

Package v1 contains API Schema definitions for the nmstate.io v1 API group +kubebuilder:object:generate=true +groupName=nmstate.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "nmstate.io", 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 NMState

type NMState struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NMStateSpec   `json:"spec,omitempty"`
	Status            NMStateStatus `json:"status,omitempty"`
}

NMState is the Schema for the nmstates API

func (*NMState) DeepCopy

func (in *NMState) DeepCopy() *NMState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMState.

func (*NMState) DeepCopyInto

func (in *NMState) DeepCopyInto(out *NMState)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NMState) DeepCopyObject

func (in *NMState) DeepCopyObject() runtime.Object

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 control-plane (https://github.com/nmstate/kubernetes-nmstate/blob/main/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"`
	// Tolerations is an optional list of tolerations to be added to handler DaemonSet manifest
	// If Tolerations is specified, the handler daemonset will be also scheduled on nodes with corresponding taints
	// +optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
	// InfraNodeSelector is an optional selector that will be added to webhook & certmanager Deployment manifests
	// If InfraNodeSelector is specified, the webhook and certmanager will run only on nodes that have each of the indicated
	// key-value pairs as labels applied to the node.
	// +optional
	InfraNodeSelector map[string]string `json:"infraNodeSelector,omitempty"`
	// InfraTolerations is an optional list of tolerations to be added to webhook & certmanager Deployment manifests
	// If InfraTolerations is specified, the handler daemonset will be able to be scheduled on nodes with corresponding taints
	// +optional
	InfraTolerations []corev1.Toleration `json:"infraTolerations,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.

type NMStateStatus

type NMStateStatus struct {
	Conditions shared.ConditionList `json:"conditions,omitempty"`
}

NMStateStatus defines the observed state of NMState

func (*NMStateStatus) DeepCopy

func (in *NMStateStatus) DeepCopy() *NMStateStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NMStateStatus.

func (*NMStateStatus) DeepCopyInto

func (in *NMStateStatus) DeepCopyInto(out *NMStateStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeNetworkConfigurationPolicy

type NodeNetworkConfigurationPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   shared.NodeNetworkConfigurationPolicySpec   `json:"spec,omitempty"`
	Status shared.NodeNetworkConfigurationPolicyStatus `json:"status,omitempty"`
}

NodeNetworkConfigurationPolicy is the Schema for the nodenetworkconfigurationpolicies API

func (*NodeNetworkConfigurationPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeNetworkConfigurationPolicy.

func (*NodeNetworkConfigurationPolicy) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeNetworkConfigurationPolicy) DeepCopyObject

func (in *NodeNetworkConfigurationPolicy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeNetworkConfigurationPolicyList

type NodeNetworkConfigurationPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NodeNetworkConfigurationPolicy `json:"items"`
}

NodeNetworkConfigurationPolicyList contains a list of NodeNetworkConfigurationPolicy

func (*NodeNetworkConfigurationPolicyList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeNetworkConfigurationPolicyList.

func (*NodeNetworkConfigurationPolicyList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeNetworkConfigurationPolicyList) DeepCopyObject

func (in *NodeNetworkConfigurationPolicyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL