v1beta1

package
v0.0.0-...-7373c75 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 7 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1beta1 contains API Schema definitions for the nmstate.io v1beta1 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: "v1beta1"}

	// 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"`

	// +kubebuilder:default:={}
	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 NMStateDNSProbeConfiguration

type NMStateDNSProbeConfiguration struct {
	// +kubebuilder:default:="root-servers.net"
	// +required
	Host string `json:"host,omitempty"`
}

func (*NMStateDNSProbeConfiguration) DeepCopy

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

func (*NMStateDNSProbeConfiguration) DeepCopyInto

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

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 NMStateMetricsConfiguration

type NMStateMetricsConfiguration struct {
	// BindAddress is the TCP address that the controller should bind to
	// for serving metrics. It can be set to "0" to disable the metrics serving.
	// +kubebuilder:default:=":8089"
	// +optional
	BindAddress string `json:"bindAddress,omitempty"`
}

func (*NMStateMetricsConfiguration) DeepCopy

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

func (*NMStateMetricsConfiguration) DeepCopyInto

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

type NMStateProbeConfiguration

type NMStateProbeConfiguration struct {
	// +kubebuilder:default={"host": "root-servers.net"}
	DNS NMStateDNSProbeConfiguration `json:"dns,omitempty"`
}

func (*NMStateProbeConfiguration) DeepCopy

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

func (*NMStateProbeConfiguration) DeepCopyInto

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

type NMStateSpec

type NMStateSpec struct {
	// Affinity is an optional affinity selector that will be added to handler DaemonSet manifest.
	// +optional
	Affinity *corev1.Affinity `json:"affinity,omitempty"`
	// InfraAffinity is an optional affinity selector that will be added to webhook, metrics & console-plugin Deployment manifests.
	// +optional
	InfraAffinity *corev1.Affinity `json:"infraAffinity,omitempty"`
	// 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, metrics & console-plugin Deployment manifests
	// If InfraNodeSelector is specified, the webhook, metrics and the console plugin 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, metrics & console-plugin Deployment manifests
	// If InfraTolerations is specified, the webhook, metrics and the console plugin will be able to be scheduled on nodes with
	// corresponding taints
	// +optional
	InfraTolerations []corev1.Toleration `json:"infraTolerations,omitempty"`
	// SelfSignConfiguration defines self signed certificate configuration
	SelfSignConfiguration *SelfSignConfiguration `json:"selfSignConfiguration,omitempty"`
	// ProbeConfiguration is an optional configuration of NMstate probes testing various functionalities.
	// If ProbeConfiguration is specified, the handler will use the config defined here instead of its default values.
	// +kubebuilder:default:={}
	// +optional
	ProbeConfiguration NMStateProbeConfiguration `json:"probeConfiguration,omitempty"`
	// MetricsConfiguration is an optional configuration for metrics server.
	// If MetricsConfiguration is specified, the handler will use the config defined here instead of its default values.
	// +optional
	MetricsConfiguration *NMStateMetricsConfiguration `json:"metricsConfiguration,omitempty"`
	// LogLevel defines the log level for nmstate operations.
	// Valid values are "info" (default, minimal output) and "debug" (verbose output for debugging).
	// +kubebuilder:default:="info"
	// +kubebuilder:validation:Enum=info;debug
	// +optional
	LogLevel shared.LogLevel `json:"logLevel,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 {
	// +optional
	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 NodeNetworkConfigurationEnactment

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

	Status shared.NodeNetworkConfigurationEnactmentStatus `json:"status,omitempty"`
}

NodeNetworkConfigurationEnactment is the Schema for the nodenetworkconfigurationenactments API

func (*NodeNetworkConfigurationEnactment) DeepCopy

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

func (*NodeNetworkConfigurationEnactment) DeepCopyInto

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

func (*NodeNetworkConfigurationEnactment) DeepCopyObject

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

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

type NodeNetworkConfigurationEnactmentList

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

NodeNetworkConfigurationEnactmentList contains a list of NodeNetworkConfigurationEnactment

func (*NodeNetworkConfigurationEnactmentList) DeepCopy

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

func (*NodeNetworkConfigurationEnactmentList) DeepCopyInto

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

func (*NodeNetworkConfigurationEnactmentList) DeepCopyObject

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

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.

type NodeNetworkState

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

	Status shared.NodeNetworkStateStatus `json:"status,omitempty"`
}

NodeNetworkState is the Schema for the nodenetworkstates API

func (*NodeNetworkState) DeepCopy

func (in *NodeNetworkState) DeepCopy() *NodeNetworkState

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

func (*NodeNetworkState) DeepCopyInto

func (in *NodeNetworkState) DeepCopyInto(out *NodeNetworkState)

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

func (*NodeNetworkState) DeepCopyObject

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

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

type NodeNetworkStateList

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

NodeNetworkStateList contains a list of NodeNetworkState

func (*NodeNetworkStateList) DeepCopy

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

func (*NodeNetworkStateList) DeepCopyInto

func (in *NodeNetworkStateList) DeepCopyInto(out *NodeNetworkStateList)

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

func (*NodeNetworkStateList) DeepCopyObject

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

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

type SelfSignConfiguration

type SelfSignConfiguration struct {
	// CARotateInterval defines duration for CA expiration
	CARotateInterval string `json:"caRotateInterval,omitempty"`
	// CAOverlapInterval defines the duration where expired CA certificate
	// can overlap with new one, in order to allow fluent CA rotation transitioning
	CAOverlapInterval string `json:"caOverlapInterval,omitempty"`
	// CertRotateInterval defines duration for of service certificate expiration
	CertRotateInterval string `json:"certRotateInterval,omitempty"`
	// CertOverlapInterval defines the duration where expired service certificate
	// can overlap with new one, in order to allow fluent service rotation transitioning
	CertOverlapInterval string `json:"certOverlapInterval,omitempty"`
}

func (*SelfSignConfiguration) DeepCopy

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

func (*SelfSignConfiguration) DeepCopyInto

func (in *SelfSignConfiguration) DeepCopyInto(out *SelfSignConfiguration)

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

Jump to

Keyboard shortcuts

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