shared

package
v0.53.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package shared contains types and functions used by API definitions +k8s:deepcopy-gen=package,register +groupName=networkaddonsoperator.network.kubevirt.io

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ParentKind string `json:"parentKind"`
	ParentName string `json:"parentName"`
	Name       string `json:"name"`
	Image      string `json:"image"`
}

func (*Container) DeepCopy

func (in *Container) DeepCopy() *Container

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

func (*Container) DeepCopyInto

func (in *Container) DeepCopyInto(out *Container)

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

type KubeMacPool

type KubeMacPool struct {
	// RangeStart defines the first mac in range
	RangeStart string `json:"rangeStart,omitempty"`
	// RangeEnd defines the last mac in range
	RangeEnd string `json:"rangeEnd,omitempty"`
}

KubeMacPool plugin manages MAC allocation to Pods and VMs in Kubernetes +k8s:openapi-gen=true

func (*KubeMacPool) DeepCopy

func (in *KubeMacPool) DeepCopy() *KubeMacPool

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

func (*KubeMacPool) DeepCopyInto

func (in *KubeMacPool) DeepCopyInto(out *KubeMacPool)

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

type LinuxBridge

type LinuxBridge struct{}

LinuxBridge plugin allows users to create a bridge and add the host and the container to it +k8s:openapi-gen=true

func (*LinuxBridge) DeepCopy

func (in *LinuxBridge) DeepCopy() *LinuxBridge

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

func (*LinuxBridge) DeepCopyInto

func (in *LinuxBridge) DeepCopyInto(out *LinuxBridge)

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

type MacvtapCni

type MacvtapCni struct{}

MacvtapCni plugin allows users to define Kubernetes networks on top of existing host interfaces +k8s:openapi-gen=true

func (*MacvtapCni) DeepCopy

func (in *MacvtapCni) DeepCopy() *MacvtapCni

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

func (*MacvtapCni) DeepCopyInto

func (in *MacvtapCni) DeepCopyInto(out *MacvtapCni)

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

type Multus

type Multus struct{}

Multus plugin enables attaching multiple network interfaces to Pods in Kubernetes +k8s:openapi-gen=true

func (*Multus) DeepCopy

func (in *Multus) DeepCopy() *Multus

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

func (*Multus) DeepCopyInto

func (in *Multus) DeepCopyInto(out *Multus)

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

type NMState

type NMState struct{}

NMState is a declarative node network configuration driven through Kubernetes API +k8s:openapi-gen=true

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.

type NetworkAddonsConfig

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

	Spec   NetworkAddonsConfigSpec   `json:"spec,omitempty"`
	Status NetworkAddonsConfigStatus `json:"status,omitempty"`
}

NetworkAddonsConfig is the Schema for the networkaddonsconfigs API This struct is no exposed/registered as part of the CRD, but is used by the v1alpha1 and v1 as kind of inside-helper struct

func (*NetworkAddonsConfig) DeepCopy

func (in *NetworkAddonsConfig) DeepCopy() *NetworkAddonsConfig

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

func (*NetworkAddonsConfig) DeepCopyInto

func (in *NetworkAddonsConfig) DeepCopyInto(out *NetworkAddonsConfig)

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

type NetworkAddonsConfigSpec

type NetworkAddonsConfigSpec struct {
	Multus                 *Multus                 `json:"multus,omitempty"`
	LinuxBridge            *LinuxBridge            `json:"linuxBridge,omitempty"`
	Ovs                    *Ovs                    `json:"ovs,omitempty"`
	KubeMacPool            *KubeMacPool            `json:"kubeMacPool,omitempty"`
	ImagePullPolicy        corev1.PullPolicy       `json:"imagePullPolicy,omitempty"`
	NMState                *NMState                `json:"nmstate,omitempty"`
	MacvtapCni             *MacvtapCni             `json:"macvtap,omitempty"`
	SelfSignConfiguration  *SelfSignConfiguration  `json:"selfSignConfiguration,omitempty"`
	PlacementConfiguration *PlacementConfiguration `json:"placementConfiguration,omitempty"`
}

NetworkAddonsConfigSpec defines the desired state of NetworkAddonsConfig +k8s:openapi-gen=true

func (*NetworkAddonsConfigSpec) DeepCopy

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

func (*NetworkAddonsConfigSpec) DeepCopyInto

func (in *NetworkAddonsConfigSpec) DeepCopyInto(out *NetworkAddonsConfigSpec)

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

type NetworkAddonsConfigStatus

type NetworkAddonsConfigStatus struct {
	OperatorVersion string                   `json:"operatorVersion,omitempty"`
	ObservedVersion string                   `json:"observedVersion,omitempty"`
	TargetVersion   string                   `json:"targetVersion,omitempty"`
	Conditions      []conditionsv1.Condition `json:"conditions,omitempty"  patchStrategy:"merge" patchMergeKey:"type"`
	Containers      []Container              `json:"containers,omitempty"`
}

NetworkAddonsConfigStatus defines the observed state of NetworkAddonsConfig +k8s:openapi-gen=true

func (*NetworkAddonsConfigStatus) DeepCopy

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

func (*NetworkAddonsConfigStatus) DeepCopyInto

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

type Ovs

type Ovs struct{}

Ovs plugin allows users to define Kubernetes networks on top of Open vSwitch bridges available on nodes +k8s:openapi-gen=true

func (*Ovs) DeepCopy

func (in *Ovs) DeepCopy() *Ovs

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

func (*Ovs) DeepCopyInto

func (in *Ovs) DeepCopyInto(out *Ovs)

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

type Placement

type Placement struct {
	NodeSelector map[string]string   `json:"nodeSelector,omitempty"`
	Affinity     corev1.Affinity     `json:"affinity,omitempty"`
	Tolerations  []corev1.Toleration `json:"tolerations,omitempty"`
}

+k8s:openapi-gen=true

func (*Placement) DeepCopy

func (in *Placement) DeepCopy() *Placement

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

func (*Placement) DeepCopyInto

func (in *Placement) DeepCopyInto(out *Placement)

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

type PlacementConfiguration

type PlacementConfiguration struct {
	// Infra defines placement configuration for master nodes
	Infra *Placement `json:"infra,omitempty"`
	// Workloads defines placement configuration for worker nodes
	Workloads *Placement `json:"workloads,omitempty"`
}

+k8s:openapi-gen=true PlacementConfiguration defines node placement configuration

func (*PlacementConfiguration) DeepCopy

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

func (*PlacementConfiguration) DeepCopyInto

func (in *PlacementConfiguration) DeepCopyInto(out *PlacementConfiguration)

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

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

+k8s:openapi-gen=true SelfSignConfiguration defines self sign configuration

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