v1alpha1

package
v0.29.13 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIGroup   = "network.deckhouse.io"
	APIVersion = "v1alpha1"
)
View Source
const (
	ConditionSucceeded = "Succeeded"
)

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{
		Group:   APIGroup,
		Version: APIVersion,
	}
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

SchemeGroupVersion is group version used to register these objects.

Functions

This section is empty.

Types

type CNIMigration

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

	// Spec defines the desired state of CNIMigration.
	Spec CNIMigrationSpec `json:"spec"`
	// Status defines the observed state of CNIMigration.
	Status CNIMigrationStatus `json:"status"`
}

CNIMigration is the schema for the CNIMigration API. It is a cluster-level resource that serves as the "single source of truth".

func (*CNIMigration) DeepCopy

func (in *CNIMigration) DeepCopy() *CNIMigration

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

func (*CNIMigration) DeepCopyInto

func (in *CNIMigration) DeepCopyInto(out *CNIMigration)

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

func (*CNIMigration) DeepCopyObject

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

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

type CNIMigrationList

type CNIMigrationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []CNIMigration `json:"items"`
}

CNIMigrationList contains a list of CNIMigration. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CNIMigrationList) DeepCopy

func (in *CNIMigrationList) DeepCopy() *CNIMigrationList

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

func (*CNIMigrationList) DeepCopyInto

func (in *CNIMigrationList) DeepCopyInto(out *CNIMigrationList)

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

func (*CNIMigrationList) DeepCopyObject

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

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

type CNIMigrationSpec

type CNIMigrationSpec struct {
	// TargetCNI is the CNI to switch to.
	TargetCNI string `json:"targetCNI"`
}

func (*CNIMigrationSpec) DeepCopy

func (in *CNIMigrationSpec) DeepCopy() *CNIMigrationSpec

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

func (*CNIMigrationSpec) DeepCopyInto

func (in *CNIMigrationSpec) DeepCopyInto(out *CNIMigrationSpec)

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

type CNIMigrationStatus

type CNIMigrationStatus struct {
	// CurrentCNI is the detected CNI from which the switch is being made.
	CurrentCNI string `json:"currentCNI,omitempty"`
	// NodesTotal is the total number of nodes involved in the migration.
	NodesTotal int `json:"nodesTotal,omitempty"`
	// NodesSucceeded is the number of nodes that have successfully completed the migration.
	NodesSucceeded int `json:"nodesSucceeded,omitempty"`
	// NodesFailed is the number of nodes where an error occurred.
	NodesFailed int `json:"nodesFailed,omitempty"`
	// FailedSummary contains details about nodes that failed the migration.
	FailedSummary []FailedNodeSummary `json:"failedSummary,omitempty"`
	// Phase reflects the current high-level stage of the migration.
	Phase string `json:"phase,omitempty"`
	// Conditions reflect the state of the migration as a whole.
	// The d8 cli aggregates statuses from all CNINodeMigrations here.
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

CNIMigrationStatus defines the observed state of CNIMigration. +k8s:deepcopy-gen=true

func (*CNIMigrationStatus) DeepCopy

func (in *CNIMigrationStatus) DeepCopy() *CNIMigrationStatus

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

func (*CNIMigrationStatus) DeepCopyInto

func (in *CNIMigrationStatus) DeepCopyInto(out *CNIMigrationStatus)

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

type CNINodeMigration

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

	// Spec can be empty, as all configuration is taken from the parent CNIMigration resource.
	Spec CNINodeMigrationSpec `json:"spec"`
	// Status defines the observed state of CNINodeMigration.
	Status CNINodeMigrationStatus `json:"status"`
}

CNINodeMigration is the schema for the CNINodeMigration API. This resource is created for each node in the cluster.

func (*CNINodeMigration) DeepCopy

func (in *CNINodeMigration) DeepCopy() *CNINodeMigration

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

func (*CNINodeMigration) DeepCopyInto

func (in *CNINodeMigration) DeepCopyInto(out *CNINodeMigration)

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

func (*CNINodeMigration) DeepCopyObject

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

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

type CNINodeMigrationList

type CNINodeMigrationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []CNINodeMigration `json:"items"`
}

CNINodeMigrationList contains a list of CNINodeMigration. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CNINodeMigrationList) DeepCopy

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

func (*CNINodeMigrationList) DeepCopyInto

func (in *CNINodeMigrationList) DeepCopyInto(out *CNINodeMigrationList)

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

func (*CNINodeMigrationList) DeepCopyObject

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

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

type CNINodeMigrationSpec

type CNINodeMigrationSpec struct {
}

CNINodeMigrationSpec defines the desired state of CNINodeMigration. +k8s:deepcopy-gen=true

func (*CNINodeMigrationSpec) DeepCopy

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

func (*CNINodeMigrationSpec) DeepCopyInto

func (in *CNINodeMigrationSpec) DeepCopyInto(out *CNINodeMigrationSpec)

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

type CNINodeMigrationStatus

type CNINodeMigrationStatus struct {
	// Conditions are the detailed conditions reflecting the steps performed on the node.
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

func (*CNINodeMigrationStatus) DeepCopy

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

func (*CNINodeMigrationStatus) DeepCopyInto

func (in *CNINodeMigrationStatus) DeepCopyInto(out *CNINodeMigrationStatus)

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

type FailedNodeSummary

type FailedNodeSummary struct {
	Node   string `json:"node"`
	Reason string `json:"reason"`
}

FailedNodeSummary captures the error state of a specific node. +k8s:deepcopy-gen=true

func (*FailedNodeSummary) DeepCopy

func (in *FailedNodeSummary) DeepCopy() *FailedNodeSummary

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

func (*FailedNodeSummary) DeepCopyInto

func (in *FailedNodeSummary) DeepCopyInto(out *FailedNodeSummary)

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