core

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package core is the core version of the API.

Package core contains API Schema definitions for the apinet core API group +groupName=core.apinet.ironcore.dev

Index

Constants

View Source
const (
	ReconcileRequestAnnotation = "reconcile.apinet.ironcore.dev/requestedAt"

	// APINetletsGroup is the system rbac group all apinetlets are in.
	APINetletsGroup = "apinet.ironcore.dev:system:apinetlets"

	// APINetletUserNamePrefix is the prefix all apinetlet users should have.
	APINetletUserNamePrefix = "apinet.ironcore.dev:system:apinetlet:"

	// MetalnetletsGroup is the system rbac group all metalnetlets are in.
	MetalnetletsGroup = "apinet.ironcore.dev:system:metalnetlets"

	// MetalnetletUserNamePrefix is the prefix all metalnetlet users should have.
	MetalnetletUserNamePrefix = "apinet.ironcore.dev:system:metalnetlet:"
)
View Source
const (
	ControllerRevisionHashLabel = "apinet.ironcore.dev/controller-revision-hash"

	IPFamilyLabel = "apinet.ironcore.dev/ip-family"
	IPIPLabel     = "apinet.ironcore.dev/ip"

	TopologyLabelPrefix    = "topology.core.apinet.ironcore.dev/"
	TopologyPartitionLabel = TopologyLabelPrefix + "partition"
	TopologyZoneLabel      = TopologyLabelPrefix + "zone"
)
View Source
const GroupName = "core.apinet.ironcore.dev"

GroupName is the name of the apinet group.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func APINetletCommonName

func APINetletCommonName(name string) string

APINetletCommonName constructs the common name for a certificate of an apinetlet user.

func GetLoadBalancerIPs

func GetLoadBalancerIPs(loadBalancer *LoadBalancer) []net.IP

func GetNATGatewayIPs

func GetNATGatewayIPs(natGateway *NATGateway) []net.IP

func GetNetworkInterfacePublicIPs

func GetNetworkInterfacePublicIPs(nic *NetworkInterface) []net.IP

func IsIPAddressClaimedBy

func IsIPAddressClaimedBy(addr *IPAddress, claimer metav1.Object) bool

func IsIPClaimedBy

func IsIPClaimedBy(ip *IP, claimer metav1.Object) bool

func IsNetworkIDClaimedBy

func IsNetworkIDClaimedBy(networkID *NetworkID, claimer metav1.Object) bool

func IsNetworkInterfaceNATClaimedBy

func IsNetworkInterfaceNATClaimedBy(nic *NetworkInterface, claimer *NATGateway) bool

func LoadBalancerDaemonSetName

func LoadBalancerDaemonSetName(lbName string) string

func MetalnetletCommonName

func MetalnetletCommonName(name string) string

MetalnetletCommonName constructs the common name for a certificate of a metalnetlet user.

func Resource

func Resource(resource string) schema.GroupResource

Types

type Affinity

type Affinity struct {
	NodeAffinity         *NodeAffinity
	InstanceAntiAffinity *InstanceAntiAffinity
}

func (*Affinity) DeepCopy

func (in *Affinity) DeepCopy() *Affinity

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

func (*Affinity) DeepCopyInto

func (in *Affinity) DeepCopyInto(out *Affinity)

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

type DaemonSet

type DaemonSet struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   DaemonSetSpec
	Status DaemonSetStatus
}

DaemonSet is the schema for the daemonsets API.

func (*DaemonSet) DeepCopy

func (in *DaemonSet) DeepCopy() *DaemonSet

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

func (*DaemonSet) DeepCopyInto

func (in *DaemonSet) DeepCopyInto(out *DaemonSet)

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

func (*DaemonSet) DeepCopyObject

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

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

type DaemonSetList

type DaemonSetList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []DaemonSet
}

DaemonSetList contains a list of DaemonSet.

func (*DaemonSetList) DeepCopy

func (in *DaemonSetList) DeepCopy() *DaemonSetList

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

func (*DaemonSetList) DeepCopyInto

func (in *DaemonSetList) DeepCopyInto(out *DaemonSetList)

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

func (*DaemonSetList) DeepCopyObject

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

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

type DaemonSetSpec

type DaemonSetSpec struct {
	// Selector selects all Instance that are managed by this daemon set.
	Selector *metav1.LabelSelector

	// Template is the instance template.
	Template InstanceTemplate
}

func (*DaemonSetSpec) DeepCopy

func (in *DaemonSetSpec) DeepCopy() *DaemonSetSpec

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

func (*DaemonSetSpec) DeepCopyInto

func (in *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec)

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

type DaemonSetStatus

type DaemonSetStatus struct {
	CollisionCount *int32
}

func (*DaemonSetStatus) DeepCopy

func (in *DaemonSetStatus) DeepCopy() *DaemonSetStatus

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

func (*DaemonSetStatus) DeepCopyInto

func (in *DaemonSetStatus) DeepCopyInto(out *DaemonSetStatus)

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

type IP

type IP struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   IPSpec
	Status IPStatus
}

IP is the schema for the ips API.

func (*IP) DeepCopy

func (in *IP) DeepCopy() *IP

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

func (*IP) DeepCopyInto

func (in *IP) DeepCopyInto(out *IP)

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

func (*IP) DeepCopyObject

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

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

type IPAddress

type IPAddress struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec IPAddressSpec
}

IPAddress is the schema for the ipaddresses API.

func (*IPAddress) DeepCopy

func (in *IPAddress) DeepCopy() *IPAddress

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

func (*IPAddress) DeepCopyInto

func (in *IPAddress) DeepCopyInto(out *IPAddress)

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

func (*IPAddress) DeepCopyObject

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

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

type IPAddressClaimRef

type IPAddressClaimRef struct {
	Group     string
	Resource  string
	Namespace string
	Name      string
	UID       types.UID
}

func (*IPAddressClaimRef) DeepCopy

func (in *IPAddressClaimRef) DeepCopy() *IPAddressClaimRef

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

func (*IPAddressClaimRef) DeepCopyInto

func (in *IPAddressClaimRef) DeepCopyInto(out *IPAddressClaimRef)

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

type IPAddressList

type IPAddressList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []IPAddress
}

IPAddressList contains a list of IPAddress.

func (*IPAddressList) DeepCopy

func (in *IPAddressList) DeepCopy() *IPAddressList

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

func (*IPAddressList) DeepCopyInto

func (in *IPAddressList) DeepCopyInto(out *IPAddressList)

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

func (*IPAddressList) DeepCopyObject

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

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

type IPAddressSpec

type IPAddressSpec struct {
	IP       net.IP
	ClaimRef IPAddressClaimRef
}

func (*IPAddressSpec) DeepCopy

func (in *IPAddressSpec) DeepCopy() *IPAddressSpec

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

func (*IPAddressSpec) DeepCopyInto

func (in *IPAddressSpec) DeepCopyInto(out *IPAddressSpec)

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

type IPBlock

type IPBlock struct {
	// CIDR is a string representing the ip block.
	CIDR net.IPPrefix
	// Except is a slice of CIDRs that should not be included within the specified CIDR.
	// Values will be rejected if they are outside CIDR.
	Except []net.IPPrefix
}

IPBlock specifies an ip block with optional exceptions.

func (*IPBlock) DeepCopy

func (in *IPBlock) DeepCopy() *IPBlock

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

func (*IPBlock) DeepCopyInto

func (in *IPBlock) DeepCopyInto(out *IPBlock)

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

type IPClaimRef

type IPClaimRef struct {
	Group    string
	Resource string
	Name     string
	UID      types.UID
}

func (*IPClaimRef) DeepCopy

func (in *IPClaimRef) DeepCopy() *IPClaimRef

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

func (*IPClaimRef) DeepCopyInto

func (in *IPClaimRef) DeepCopyInto(out *IPClaimRef)

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

type IPList

type IPList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []IP
}

IPList contains a list of IP.

func (*IPList) DeepCopy

func (in *IPList) DeepCopy() *IPList

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

func (*IPList) DeepCopyInto

func (in *IPList) DeepCopyInto(out *IPList)

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

func (*IPList) DeepCopyObject

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

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

type IPSpec

type IPSpec struct {
	Type     IPType
	IPFamily corev1.IPFamily
	IP       net.IP
	ClaimRef *IPClaimRef
}

func (*IPSpec) DeepCopy

func (in *IPSpec) DeepCopy() *IPSpec

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

func (*IPSpec) DeepCopyInto

func (in *IPSpec) DeepCopyInto(out *IPSpec)

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

type IPStatus

type IPStatus struct {
}

func (*IPStatus) DeepCopy

func (in *IPStatus) DeepCopy() *IPStatus

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

func (*IPStatus) DeepCopyInto

func (in *IPStatus) DeepCopyInto(out *IPStatus)

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

type IPType

type IPType string
const (
	IPTypePublic IPType = "Public"
)

type Instance

type Instance struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   InstanceSpec
	Status InstanceStatus
}

Instance is the schema for the instances API.

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

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

func (*Instance) DeepCopyObject

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

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

type InstanceAffinityTerm

type InstanceAffinityTerm struct {
	// LabelSelector over a set of resources, in this case instances.
	LabelSelector *metav1.LabelSelector
	// TopologyKey indicates that this instance should be co-located (affinity) or not co-located (anti-affinity)
	// with the instances matching the labelSelector, where co-located is defined as running on a
	// node whose value of the label with key topologyKey matches that of any node on which any of the
	// selected instances is running.
	// Empty topologyKey is not allowed.
	TopologyKey string
}

InstanceAffinityTerm defines a set of instances (namely those matching the labelSelector that this instance should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a instance of the set of instances is running.

func (*InstanceAffinityTerm) DeepCopy

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

func (*InstanceAffinityTerm) DeepCopyInto

func (in *InstanceAffinityTerm) DeepCopyInto(out *InstanceAffinityTerm)

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

type InstanceAntiAffinity

type InstanceAntiAffinity struct {
	// RequiredDuringSchedulingIgnoredDuringExecution specifies anti-affinity requirements at
	// scheduling time, that, if not met, will cause the instance not be scheduled onto the node.
	// When there are multiple elements, the lists of nodes corresponding to each
	// instanceAffinityTerm are intersected, i.e. all terms must be satisfied.
	RequiredDuringSchedulingIgnoredDuringExecution []InstanceAffinityTerm
}

func (*InstanceAntiAffinity) DeepCopy

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

func (*InstanceAntiAffinity) DeepCopyInto

func (in *InstanceAntiAffinity) DeepCopyInto(out *InstanceAntiAffinity)

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

type InstanceList

type InstanceList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Instance
}

InstanceList contains a list of Instance.

func (*InstanceList) DeepCopy

func (in *InstanceList) DeepCopy() *InstanceList

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

func (*InstanceList) DeepCopyInto

func (in *InstanceList) DeepCopyInto(out *InstanceList)

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

func (*InstanceList) DeepCopyObject

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

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

type InstanceSpec

type InstanceSpec struct {
	// Type specifies the InstanceType to deploy.
	Type InstanceType

	// LoadBalancerType is the load balancer type this instance is for.
	LoadBalancerType LoadBalancerType

	// NetworkRef references the network the instance is on.
	NetworkRef corev1.LocalObjectReference

	// IPs are the IPs of the instance.
	IPs []net.IP

	// LoadBalancerPorts are the load balancer ports of this instance.
	LoadBalancerPorts []LoadBalancerPort

	// Affinity are affinity constraints.
	Affinity *Affinity

	// TopologySpreadConstraints describes how a group of instances ought to spread across topology
	// domains. Scheduler will schedule instances in a way which abides by the constraints.
	// All topologySpreadConstraints are ANDed.
	TopologySpreadConstraints []TopologySpreadConstraint

	// NodeRef references the node hosting the load balancer instance.
	// Will be set by the scheduler if empty.
	NodeRef *corev1.LocalObjectReference
}

func (*InstanceSpec) DeepCopy

func (in *InstanceSpec) DeepCopy() *InstanceSpec

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

func (*InstanceSpec) DeepCopyInto

func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)

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

type InstanceStatus

type InstanceStatus struct {
	IPs            []net.IP
	CollisionCount *int32
}

func (*InstanceStatus) DeepCopy

func (in *InstanceStatus) DeepCopy() *InstanceStatus

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

func (*InstanceStatus) DeepCopyInto

func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)

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

type InstanceTemplate

type InstanceTemplate struct {
	metav1.ObjectMeta
	Spec InstanceSpec
}

func (*InstanceTemplate) DeepCopy

func (in *InstanceTemplate) DeepCopy() *InstanceTemplate

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

func (*InstanceTemplate) DeepCopyInto

func (in *InstanceTemplate) DeepCopyInto(out *InstanceTemplate)

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

type InstanceType

type InstanceType string
const (
	InstanceTypeLoadBalancer InstanceType = "LoadBalancer"
)

type LoadBalancer

type LoadBalancer struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   LoadBalancerSpec
	Status LoadBalancerStatus
}

LoadBalancer is the schema for the loadbalancers API.

func (*LoadBalancer) DeepCopy

func (in *LoadBalancer) DeepCopy() *LoadBalancer

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

func (*LoadBalancer) DeepCopyInto

func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)

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

func (*LoadBalancer) DeepCopyObject

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

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

type LoadBalancerDestination

type LoadBalancerDestination struct {
	// IP is the target IP.
	IP net.IP
	// TargetRef is the target providing the destination.
	TargetRef *LoadBalancerTargetRef
}

LoadBalancerDestination is the destination of the load balancer.

func (*LoadBalancerDestination) DeepCopy

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

func (*LoadBalancerDestination) DeepCopyInto

func (in *LoadBalancerDestination) DeepCopyInto(out *LoadBalancerDestination)

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

type LoadBalancerIP

type LoadBalancerIP struct {
	// Name is the name of the load balancer IP.
	Name string
	// IPFamily is the IP family of the IP. Has to match IP if specified. If unspecified and IP is specified,
	// will be defaulted by using the IP family of IP.
	// If only IPFamily is specified, a random IP of that family will be allocated if possible.
	IPFamily corev1.IPFamily
	// IP specifies a specific IP to allocate. If empty, a random IP will be allocated if possible.
	IP net.IP
}

func (*LoadBalancerIP) DeepCopy

func (in *LoadBalancerIP) DeepCopy() *LoadBalancerIP

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

func (*LoadBalancerIP) DeepCopyInto

func (in *LoadBalancerIP) DeepCopyInto(out *LoadBalancerIP)

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

type LoadBalancerList

type LoadBalancerList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []LoadBalancer
}

LoadBalancerList contains a list of LoadBalancer.

func (*LoadBalancerList) DeepCopy

func (in *LoadBalancerList) DeepCopy() *LoadBalancerList

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

func (*LoadBalancerList) DeepCopyInto

func (in *LoadBalancerList) DeepCopyInto(out *LoadBalancerList)

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

func (*LoadBalancerList) DeepCopyObject

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

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

type LoadBalancerPort

type LoadBalancerPort struct {
	// Protocol is the protocol the load balancer should allow.
	// If not specified, defaults to TCP.
	Protocol *corev1.Protocol
	// Port is the port to allow.
	Port int32
	// EndPort marks the end of the port range to allow.
	// If unspecified, only a single port, Port, will be allowed.
	EndPort *int32
}

func (*LoadBalancerPort) DeepCopy

func (in *LoadBalancerPort) DeepCopy() *LoadBalancerPort

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

func (*LoadBalancerPort) DeepCopyInto

func (in *LoadBalancerPort) DeepCopyInto(out *LoadBalancerPort)

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

type LoadBalancerRouting

type LoadBalancerRouting struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Destinations []LoadBalancerDestination
}

LoadBalancerRouting is the schema for the loadbalancerroutings API.

func (*LoadBalancerRouting) DeepCopy

func (in *LoadBalancerRouting) DeepCopy() *LoadBalancerRouting

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

func (*LoadBalancerRouting) DeepCopyInto

func (in *LoadBalancerRouting) DeepCopyInto(out *LoadBalancerRouting)

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

func (*LoadBalancerRouting) DeepCopyObject

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

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

type LoadBalancerRoutingList

type LoadBalancerRoutingList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []LoadBalancerRouting
}

LoadBalancerRoutingList contains a list of LoadBalancerRouting.

func (*LoadBalancerRoutingList) DeepCopy

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

func (*LoadBalancerRoutingList) DeepCopyInto

func (in *LoadBalancerRoutingList) DeepCopyInto(out *LoadBalancerRoutingList)

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

func (*LoadBalancerRoutingList) DeepCopyObject

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

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

type LoadBalancerSpec

type LoadBalancerSpec struct {
	// Type specifies the type of load balancer.
	Type LoadBalancerType

	// NetworkRef references the network the load balancer is part of.
	NetworkRef corev1.LocalObjectReference

	// IPs specifies the IPs of the load balancer.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	IPs []LoadBalancerIP

	// Ports are the ports the load balancer should allow.
	// If empty, the load balancer allows all ports.
	Ports []LoadBalancerPort

	// Selector selects all Instance that are managed by this daemon set.
	Selector *metav1.LabelSelector

	// Template is the instance template.
	Template InstanceTemplate
}

func (*LoadBalancerSpec) DeepCopy

func (in *LoadBalancerSpec) DeepCopy() *LoadBalancerSpec

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

func (*LoadBalancerSpec) DeepCopyInto

func (in *LoadBalancerSpec) DeepCopyInto(out *LoadBalancerSpec)

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

type LoadBalancerStatus

type LoadBalancerStatus struct {
	// CollisionCount is used to construct names for IP addresses for the load balancer.
	CollisionCount *int32
}

func (*LoadBalancerStatus) DeepCopy

func (in *LoadBalancerStatus) DeepCopy() *LoadBalancerStatus

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

func (*LoadBalancerStatus) DeepCopyInto

func (in *LoadBalancerStatus) DeepCopyInto(out *LoadBalancerStatus)

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

type LoadBalancerTargetRef

type LoadBalancerTargetRef struct {
	// UID is the UID of the target.
	UID types.UID
	// Name is the name of the target.
	Name string
	// NodeRef references the node the destination network interface is on.
	NodeRef corev1.LocalObjectReference
}

LoadBalancerTargetRef is a load balancer target.

func (*LoadBalancerTargetRef) DeepCopy

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

func (*LoadBalancerTargetRef) DeepCopyInto

func (in *LoadBalancerTargetRef) DeepCopyInto(out *LoadBalancerTargetRef)

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

type LoadBalancerType

type LoadBalancerType string
const (
	LoadBalancerTypePublic   LoadBalancerType = "Public"
	LoadBalancerTypeInternal LoadBalancerType = "Internal"
)

type LocalUIDReference

type LocalUIDReference struct {
	// Name is the name of the referenced entity.
	Name string `json:"name"`
	// UID is the UID of the referenced entity.
	UID types.UID `json:"uid"`
}

LocalUIDReference is a reference to another entity including its UID +structType=atomic

func (*LocalUIDReference) DeepCopy

func (in *LocalUIDReference) DeepCopy() *LocalUIDReference

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

func (*LocalUIDReference) DeepCopyInto

func (in *LocalUIDReference) DeepCopyInto(out *LocalUIDReference)

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

type NATGateway

type NATGateway struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   NATGatewaySpec
	Status NATGatewayStatus
}

NATGateway is the schema for the natgateways API.

func (*NATGateway) DeepCopy

func (in *NATGateway) DeepCopy() *NATGateway

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

func (*NATGateway) DeepCopyInto

func (in *NATGateway) DeepCopyInto(out *NATGateway)

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

func (*NATGateway) DeepCopyObject

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

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

type NATGatewayAutoscaler

type NATGatewayAutoscaler struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   NATGatewayAutoscalerSpec
	Status NATGatewayAutoscalerStatus
}

NATGatewayAutoscaler is the schema for the natgatewayautoscalers API.

func (*NATGatewayAutoscaler) DeepCopy

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

func (*NATGatewayAutoscaler) DeepCopyInto

func (in *NATGatewayAutoscaler) DeepCopyInto(out *NATGatewayAutoscaler)

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

func (*NATGatewayAutoscaler) DeepCopyObject

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

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

type NATGatewayAutoscalerList

type NATGatewayAutoscalerList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NATGatewayAutoscaler
}

NATGatewayAutoscalerList contains a list of NATGatewayAutoscaler.

func (*NATGatewayAutoscalerList) DeepCopy

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

func (*NATGatewayAutoscalerList) DeepCopyInto

func (in *NATGatewayAutoscalerList) DeepCopyInto(out *NATGatewayAutoscalerList)

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

func (*NATGatewayAutoscalerList) DeepCopyObject

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

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

type NATGatewayAutoscalerSpec

type NATGatewayAutoscalerSpec struct {
	// NATGatewayRef points to the target NATGateway to scale.
	NATGatewayRef corev1.LocalObjectReference

	// MinPublicIPs is the minimum number of public IPs to allocate for a NAT Gateway.
	MinPublicIPs *int32
	// MaxPublicIPs is the maximum number of public IPs to allocate for a NAT Gateway.
	MaxPublicIPs *int32
}

func (*NATGatewayAutoscalerSpec) DeepCopy

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

func (*NATGatewayAutoscalerSpec) DeepCopyInto

func (in *NATGatewayAutoscalerSpec) DeepCopyInto(out *NATGatewayAutoscalerSpec)

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

type NATGatewayAutoscalerStatus

type NATGatewayAutoscalerStatus struct {
}

func (*NATGatewayAutoscalerStatus) DeepCopy

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

func (*NATGatewayAutoscalerStatus) DeepCopyInto

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

type NATGatewayIP

type NATGatewayIP struct {
	// Name is the semantic name of the NAT gateway IP.
	Name string
	// IP specifies a specific IP to allocate. If empty, a random IP will be allocated if possible.
	IP net.IP
}

func (*NATGatewayIP) DeepCopy

func (in *NATGatewayIP) DeepCopy() *NATGatewayIP

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

func (*NATGatewayIP) DeepCopyInto

func (in *NATGatewayIP) DeepCopyInto(out *NATGatewayIP)

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

type NATGatewayList

type NATGatewayList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NATGateway
}

NATGatewayList contains a list of NATGateway.

func (*NATGatewayList) DeepCopy

func (in *NATGatewayList) DeepCopy() *NATGatewayList

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

func (*NATGatewayList) DeepCopyInto

func (in *NATGatewayList) DeepCopyInto(out *NATGatewayList)

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

func (*NATGatewayList) DeepCopyObject

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

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

type NATGatewaySpec

type NATGatewaySpec struct {
	// IPFamily is the IP family of the NAT gateway.
	IPFamily corev1.IPFamily

	// NetworkRef references the network the NAT gateway is part of.
	NetworkRef corev1.LocalObjectReference

	// IPs specifies the IPs of the NAT gateway.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	IPs []NATGatewayIP

	// PortsPerNetworkInterface specifies how many ports to allocate per network interface.
	PortsPerNetworkInterface int32
}

func (*NATGatewaySpec) DeepCopy

func (in *NATGatewaySpec) DeepCopy() *NATGatewaySpec

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

func (*NATGatewaySpec) DeepCopyInto

func (in *NATGatewaySpec) DeepCopyInto(out *NATGatewaySpec)

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

type NATGatewayStatus

type NATGatewayStatus struct {
	// UsedNATIPs is the number of NAT IPs in-use.
	UsedNATIPs int64
	// RequestedNATIPs is the number of requested NAT IPs.
	RequestedNATIPs int64
}

func (*NATGatewayStatus) DeepCopy

func (in *NATGatewayStatus) DeepCopy() *NATGatewayStatus

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

func (*NATGatewayStatus) DeepCopyInto

func (in *NATGatewayStatus) DeepCopyInto(out *NATGatewayStatus)

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

type NATIP

type NATIP struct {
	// IP is the IP to NAT.
	IP net.IP
	// Sections are the sections of the NATIP.
	Sections []NATIPSection
}

func (*NATIP) DeepCopy

func (in *NATIP) DeepCopy() *NATIP

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

func (*NATIP) DeepCopyInto

func (in *NATIP) DeepCopyInto(out *NATIP)

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

type NATIPSection

type NATIPSection struct {
	// IP is the source IP.
	IP net.IP
	// Port is the start port of the section.
	Port int32
	// EndPort is the end port of the section
	EndPort int32
	// TargetRef references the entity having the IP.
	TargetRef *NATTableIPTargetRef
}

func (*NATIPSection) DeepCopy

func (in *NATIPSection) DeepCopy() *NATIPSection

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

func (*NATIPSection) DeepCopyInto

func (in *NATIPSection) DeepCopyInto(out *NATIPSection)

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

type NATTable

type NATTable struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// IPs specifies how to NAT the IPs for the NAT gateway.
	IPs []NATIP
}

NATTable is the schema for the nattables API.

func (*NATTable) DeepCopy

func (in *NATTable) DeepCopy() *NATTable

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

func (*NATTable) DeepCopyInto

func (in *NATTable) DeepCopyInto(out *NATTable)

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

func (*NATTable) DeepCopyObject

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

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

type NATTableIPTargetRef

type NATTableIPTargetRef struct {
	// UID is the UID of the target.
	UID types.UID
	// Name is the name of the target.
	Name string
	// NodeRef references the node the destination network interface is on.
	NodeRef corev1.LocalObjectReference
}

func (*NATTableIPTargetRef) DeepCopy

func (in *NATTableIPTargetRef) DeepCopy() *NATTableIPTargetRef

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

func (*NATTableIPTargetRef) DeepCopyInto

func (in *NATTableIPTargetRef) DeepCopyInto(out *NATTableIPTargetRef)

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

type NATTableList

type NATTableList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NATTable
}

NATTableList contains a list of NATTable.

func (*NATTableList) DeepCopy

func (in *NATTableList) DeepCopy() *NATTableList

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

func (*NATTableList) DeepCopyInto

func (in *NATTableList) DeepCopyInto(out *NATTableList)

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

func (*NATTableList) DeepCopyObject

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

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

type Network

type Network struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   NetworkSpec
	Status NetworkStatus
}

Network is the schema for the networks API.

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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

func (*Network) DeepCopyObject

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

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

type NetworkID

type NetworkID struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec NetworkIDSpec
}

NetworkID is the schema for the networkids API.

func (*NetworkID) DeepCopy

func (in *NetworkID) DeepCopy() *NetworkID

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

func (*NetworkID) DeepCopyInto

func (in *NetworkID) DeepCopyInto(out *NetworkID)

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

func (*NetworkID) DeepCopyObject

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

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

type NetworkIDClaimRef

type NetworkIDClaimRef struct {
	Group     string
	Resource  string
	Namespace string
	Name      string
	UID       types.UID
}

func (*NetworkIDClaimRef) DeepCopy

func (in *NetworkIDClaimRef) DeepCopy() *NetworkIDClaimRef

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

func (*NetworkIDClaimRef) DeepCopyInto

func (in *NetworkIDClaimRef) DeepCopyInto(out *NetworkIDClaimRef)

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

type NetworkIDList

type NetworkIDList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NetworkID
}

NetworkIDList contains a list of NetworkID.

func (*NetworkIDList) DeepCopy

func (in *NetworkIDList) DeepCopy() *NetworkIDList

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

func (*NetworkIDList) DeepCopyInto

func (in *NetworkIDList) DeepCopyInto(out *NetworkIDList)

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

func (*NetworkIDList) DeepCopyObject

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

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

type NetworkIDSpec

type NetworkIDSpec struct {
	ClaimRef NetworkIDClaimRef
}

func (*NetworkIDSpec) DeepCopy

func (in *NetworkIDSpec) DeepCopy() *NetworkIDSpec

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

func (*NetworkIDSpec) DeepCopyInto

func (in *NetworkIDSpec) DeepCopyInto(out *NetworkIDSpec)

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

type NetworkInterface

type NetworkInterface struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   NetworkInterfaceSpec
	Status NetworkInterfaceStatus
}

NetworkInterface is the schema for the networkinterfaces API.

func (*NetworkInterface) DeepCopy

func (in *NetworkInterface) DeepCopy() *NetworkInterface

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

func (*NetworkInterface) DeepCopyInto

func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)

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

func (*NetworkInterface) DeepCopyObject

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

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

type NetworkInterfaceList

type NetworkInterfaceList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NetworkInterface
}

NetworkInterfaceList contains a list of NetworkInterface.

func (*NetworkInterfaceList) DeepCopy

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

func (*NetworkInterfaceList) DeepCopyInto

func (in *NetworkInterfaceList) DeepCopyInto(out *NetworkInterfaceList)

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

func (*NetworkInterfaceList) DeepCopyObject

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

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

type NetworkInterfaceNAT

type NetworkInterfaceNAT struct {
	// IPFamily is the IP family of the handling NAT gateway.
	IPFamily corev1.IPFamily
	// ClaimRef references the NAT claim handling the network interface's NAT.
	ClaimRef NetworkInterfaceNATClaimRef
}

func (*NetworkInterfaceNAT) DeepCopy

func (in *NetworkInterfaceNAT) DeepCopy() *NetworkInterfaceNAT

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

func (*NetworkInterfaceNAT) DeepCopyInto

func (in *NetworkInterfaceNAT) DeepCopyInto(out *NetworkInterfaceNAT)

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

type NetworkInterfaceNATClaimRef

type NetworkInterfaceNATClaimRef struct {
	// Name is the name of the claiming NAT gateway.
	Name string
	// UID is the uid of the claiming NAT gateway.
	UID types.UID
}

func GetNetworkInterfaceNATClaimer

func GetNetworkInterfaceNATClaimer(nic *NetworkInterface, ipFamily corev1.IPFamily) *NetworkInterfaceNATClaimRef

func (*NetworkInterfaceNATClaimRef) DeepCopy

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

func (*NetworkInterfaceNATClaimRef) DeepCopyInto

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

type NetworkInterfacePublicIP

type NetworkInterfacePublicIP struct {
	// Name is the semantic name of the network interface public IP.
	Name string
	// IPFamily is the IP family of the IP. Has to match IP if specified. If unspecified and IP is specified,
	// will be defaulted by using the IP family of IP.
	// If only IPFamily is specified, a random IP of that family will be allocated if possible.
	IPFamily corev1.IPFamily
	// IP specifies a specific IP to allocate. If empty, a random ephemeral IP will be allocated.
	IP net.IP
}

func (*NetworkInterfacePublicIP) DeepCopy

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

func (*NetworkInterfacePublicIP) DeepCopyInto

func (in *NetworkInterfacePublicIP) DeepCopyInto(out *NetworkInterfacePublicIP)

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

type NetworkInterfaceSpec

type NetworkInterfaceSpec struct {
	// NodeRef is the node the network interface is hosted on.
	NodeRef corev1.LocalObjectReference

	// NetworkRef references the network that the network interface is in.
	NetworkRef corev1.LocalObjectReference

	// IPs are the internal IPs of the network interface.
	IPs []net.IP

	// Prefixes are additional prefixes to route to the network interface.
	Prefixes []net.IPPrefix

	// NATs specify the NAT of the network interface IP family.
	// Can only be set if there is no matching IP family in PublicIPs.
	NATs []NetworkInterfaceNAT

	// PublicIPs are the public IPs the network interface should have.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	PublicIPs []NetworkInterfacePublicIP
}

func (*NetworkInterfaceSpec) DeepCopy

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

func (*NetworkInterfaceSpec) DeepCopyInto

func (in *NetworkInterfaceSpec) DeepCopyInto(out *NetworkInterfaceSpec)

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

type NetworkInterfaceState

type NetworkInterfaceState string
const (
	// NetworkInterfaceStateReady is used for any NetworkInterface that is ready.
	NetworkInterfaceStateReady NetworkInterfaceState = "Ready"
	// NetworkInterfaceStatePending is used for any NetworkInterface that is in an intermediate state.
	NetworkInterfaceStatePending NetworkInterfaceState = "Pending"
	// NetworkInterfaceStateError is used for any NetworkInterface that is some error occurred.
	NetworkInterfaceStateError NetworkInterfaceState = "Error"
)

type NetworkInterfaceStatus

type NetworkInterfaceStatus struct {
	State      NetworkInterfaceState
	PCIAddress *PCIAddress
	Prefixes   []net.IPPrefix
	PublicIPs  []net.IP
	NATIPs     []net.IP
}

func (*NetworkInterfaceStatus) DeepCopy

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

func (*NetworkInterfaceStatus) DeepCopyInto

func (in *NetworkInterfaceStatus) DeepCopyInto(out *NetworkInterfaceStatus)

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

type NetworkList

type NetworkList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Network
}

NetworkList contains a list of Network.

func (*NetworkList) DeepCopy

func (in *NetworkList) DeepCopy() *NetworkList

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

func (*NetworkList) DeepCopyInto

func (in *NetworkList) DeepCopyInto(out *NetworkList)

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

func (*NetworkList) DeepCopyObject

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

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

type NetworkPeering

type NetworkPeering struct {
	// Name is the semantical name of the network peering.
	Name string
	// ID is the ID of the network to peer with.
	ID string
	// Prefixes is a list of prefixes that we want only to be exposed
	// to the peered network, if no prefixes are specified no filtering will be done.
	Prefixes []PeeringPrefix `json:"prefixes,omitempty"`
}

NetworkPeering defines a network peering with another network.

func (*NetworkPeering) DeepCopy

func (in *NetworkPeering) DeepCopy() *NetworkPeering

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

func (*NetworkPeering) DeepCopyInto

func (in *NetworkPeering) DeepCopyInto(out *NetworkPeering)

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

type NetworkPeeringState

type NetworkPeeringState string

NetworkPeeringState is the state a NetworkPeering can be in

const (
	// NetworkPeeringStatePending signals that the network peering is not applied.
	NetworkPeeringStatePending NetworkPeeringState = "Pending"
	// NetworkPeeringStateReady signals that the network peering is ready.
	NetworkPeeringStateReady NetworkPeeringState = "Ready"
	// NetworkPeeringStateError signals that the network peering is in error state.
	NetworkPeeringStateError NetworkPeeringState = "Error"
)

type NetworkPeeringStatus

type NetworkPeeringStatus struct {
	// ID is the ID of network
	ID int32 `json:"id"`
	// State represents the network peering state
	State NetworkPeeringState
}

NetworkPeeringStatus is the status of a network peering.

func (*NetworkPeeringStatus) DeepCopy

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

func (*NetworkPeeringStatus) DeepCopyInto

func (in *NetworkPeeringStatus) DeepCopyInto(out *NetworkPeeringStatus)

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

type NetworkPolicy

type NetworkPolicy struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec NetworkPolicySpec
}

NetworkPolicy is the Schema for the networkpolicies API.

func (*NetworkPolicy) DeepCopy

func (in *NetworkPolicy) DeepCopy() *NetworkPolicy

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

func (*NetworkPolicy) DeepCopyInto

func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy)

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

func (*NetworkPolicy) DeepCopyObject

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

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

type NetworkPolicyEgressRule

type NetworkPolicyEgressRule struct {
	// Ports specifies the list of destination ports that can be called with
	// this rule. Each item in this list is combined using a logical OR. Empty matches all ports.
	// As soon as a single item is present, only these ports are allowed.
	Ports []NetworkPolicyPort
	// To specifies the list of destinations which the selected network interfaces should be
	// able to send traffic to. Fields are combined using a logical OR. Empty matches all destinations.
	// As soon as a single item is present, only these peers are allowed.
	To []NetworkPolicyPeer
}

NetworkPolicyEgressRule describes a rule to regulate egress traffic with.

func (*NetworkPolicyEgressRule) DeepCopy

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

func (*NetworkPolicyEgressRule) DeepCopyInto

func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule)

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

type NetworkPolicyIngressRule

type NetworkPolicyIngressRule struct {
	// From specifies the list of sources which should be able to send traffic to the
	// selected network interfaces. Fields are combined using a logical OR. Empty matches all sources.
	// As soon as a single item is present, only these peers are allowed.
	From []NetworkPolicyPeer
	// Ports specifies the list of ports which should be made accessible for
	// this rule. Each item in this list is combined using a logical OR. Empty matches all ports.
	// As soon as a single item is present, only these ports are allowed.
	Ports []NetworkPolicyPort
}

NetworkPolicyIngressRule describes a rule to regulate ingress traffic with.

func (*NetworkPolicyIngressRule) DeepCopy

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

func (*NetworkPolicyIngressRule) DeepCopyInto

func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule)

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

type NetworkPolicyList

type NetworkPolicyList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NetworkPolicy
}

NetworkPolicyList contains a list of NetworkPolicy.

func (*NetworkPolicyList) DeepCopy

func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList

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

func (*NetworkPolicyList) DeepCopyInto

func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList)

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

func (*NetworkPolicyList) DeepCopyObject

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

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

type NetworkPolicyPeer

type NetworkPolicyPeer struct {
	// ObjectSelector selects peers with the given kind matching the label selector.
	// Exclusive with other peer specifiers.
	ObjectSelector *ObjectSelector
	// IPBlock specifies the ip block from or to which network traffic may come.
	IPBlock *IPBlock
}

NetworkPolicyPeer describes a peer to allow traffic to / from.

func (*NetworkPolicyPeer) DeepCopy

func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer

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

func (*NetworkPolicyPeer) DeepCopyInto

func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer)

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

type NetworkPolicyPort

type NetworkPolicyPort struct {
	// Protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
	// field defaults to TCP.
	Protocol *corev1.Protocol

	// The port on the given protocol. If this field is not provided, this matches
	// all port names and numbers.
	// If present, only traffic on the specified protocol AND port will be matched.
	Port int32

	// EndPort indicates that the range of ports from Port to EndPort, inclusive,
	// should be allowed by the policy. This field cannot be defined if the port field
	// is not defined. The endPort must be equal or greater than port.
	EndPort *int32
}

NetworkPolicyPort describes a port to allow traffic on

func (*NetworkPolicyPort) DeepCopy

func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort

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

func (*NetworkPolicyPort) DeepCopyInto

func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort)

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

type NetworkPolicyRule

type NetworkPolicyRule struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// NetworkRef is the network the load balancer is assigned to.
	NetworkRef LocalUIDReference
	// Targets are the targets of the network policy.
	Targets []TargetNetworkInterface
	// Priority is an optional field that specifies the order in which the policy is applied.
	Priority *int32
	// IngressRules are the ingress rules.
	IngressRules []Rule
	// EgressRules are the egress rules.
	EgressRules []Rule
}

NetworkPolicyRule is the schema for the networkpolicyrules API.

func (*NetworkPolicyRule) DeepCopy

func (in *NetworkPolicyRule) DeepCopy() *NetworkPolicyRule

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

func (*NetworkPolicyRule) DeepCopyInto

func (in *NetworkPolicyRule) DeepCopyInto(out *NetworkPolicyRule)

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

func (*NetworkPolicyRule) DeepCopyObject

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

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

type NetworkPolicyRuleList

type NetworkPolicyRuleList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NetworkPolicyRule
}

NetworkPolicyRulesList contains a list of NetworkPolicyRule.

func (*NetworkPolicyRuleList) DeepCopy

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

func (*NetworkPolicyRuleList) DeepCopyInto

func (in *NetworkPolicyRuleList) DeepCopyInto(out *NetworkPolicyRuleList)

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

func (*NetworkPolicyRuleList) DeepCopyObject

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

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

type NetworkPolicySpec

type NetworkPolicySpec struct {
	// NetworkRef is the network to regulate using this policy.
	NetworkRef corev1.LocalObjectReference
	// NetworkInterfaceSelector selects the network interfaces that are subject to this policy.
	NetworkInterfaceSelector metav1.LabelSelector
	// Priority is an optional field that specifies the order in which the policy is applied.
	// Policies with higher "order" are applied after those with lower
	// order.  If the order is omitted, it may be considered to be "infinite" - i.e. the
	// policy will be applied last.  Policies with identical order will be applied in
	// alphanumerical order based on the Policy "Name".
	Priority *int32
	// Ingress specifies rules for ingress traffic.
	Ingress []NetworkPolicyIngressRule
	// Egress specifies rules for egress traffic.
	Egress []NetworkPolicyEgressRule
	// PolicyTypes specifies the types of policies this network policy contains.
	PolicyTypes []PolicyType
}

func (*NetworkPolicySpec) DeepCopy

func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec

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

func (*NetworkPolicySpec) DeepCopyInto

func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec)

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

type NetworkSpec

type NetworkSpec struct {
	// ID is the ID of the network.
	ID string
	// Peerings are the network peerings with this network
	Peerings []NetworkPeering
}

func (*NetworkSpec) DeepCopy

func (in *NetworkSpec) DeepCopy() *NetworkSpec

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

func (*NetworkSpec) DeepCopyInto

func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)

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

type NetworkState

type NetworkState string

NetworkState is the state of a network. +enum

type NetworkStatus

type NetworkStatus struct {
	// Peerings contains the states of the network peerings for the network.
	Peerings map[string][]NetworkPeeringStatus
}

func (*NetworkStatus) DeepCopy

func (in *NetworkStatus) DeepCopy() *NetworkStatus

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

func (*NetworkStatus) DeepCopyInto

func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)

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

type Node

type Node struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   NodeSpec
	Status NodeStatus
}

Node is the schema for the nodes API.

func (*Node) DeepCopy

func (in *Node) DeepCopy() *Node

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

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

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

func (*Node) DeepCopyObject

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

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

type NodeAffinity

type NodeAffinity struct {
	RequiredDuringSchedulingIgnoredDuringExecution *NodeSelector
}

func (*NodeAffinity) DeepCopy

func (in *NodeAffinity) DeepCopy() *NodeAffinity

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

func (*NodeAffinity) DeepCopyInto

func (in *NodeAffinity) DeepCopyInto(out *NodeAffinity)

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

type NodeList

type NodeList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Node
}

NodeList contains a list of Node.

func (*NodeList) DeepCopy

func (in *NodeList) DeepCopy() *NodeList

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

func (*NodeList) DeepCopyInto

func (in *NodeList) DeepCopyInto(out *NodeList)

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

func (*NodeList) DeepCopyObject

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

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

type NodeSelector

type NodeSelector struct {
	// Required. A list of node selector terms. The terms are ORed.
	NodeSelectorTerms []NodeSelectorTerm
}

NodeSelector represents the union of the results of one or more queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.

func (*NodeSelector) DeepCopy

func (in *NodeSelector) DeepCopy() *NodeSelector

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

func (*NodeSelector) DeepCopyInto

func (in *NodeSelector) DeepCopyInto(out *NodeSelector)

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

type NodeSelectorOperator

type NodeSelectorOperator string

NodeSelectorOperator is the set of operators that can be used in a node selector requirement.

const (
	NodeSelectorOpIn           NodeSelectorOperator = "In"
	NodeSelectorOpNotIn        NodeSelectorOperator = "NotIn"
	NodeSelectorOpExists       NodeSelectorOperator = "Exists"
	NodeSelectorOpDoesNotExist NodeSelectorOperator = "DoesNotExist"
	NodeSelectorOpGt           NodeSelectorOperator = "Gt"
	NodeSelectorOpLt           NodeSelectorOperator = "Lt"
)

type NodeSelectorRequirement

type NodeSelectorRequirement struct {
	// Key is the key the selector applies to.
	Key string
	// Operator represents the key's relationship to the values.
	// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
	Operator NodeSelectorOperator
	// Values are the values to relate the key to via the operator.
	Values []string
}

NodeSelectorRequirement is a requirement for a selector. It's a combination of the key to match, the operator to match with, and zero to n values, depending on the operator.

func (*NodeSelectorRequirement) DeepCopy

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

func (*NodeSelectorRequirement) DeepCopyInto

func (in *NodeSelectorRequirement) DeepCopyInto(out *NodeSelectorRequirement)

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

type NodeSelectorTerm

type NodeSelectorTerm struct {
	// MatchExpressions matches nodes by the label selector requirements.
	MatchExpressions []NodeSelectorRequirement
	// MatchFields matches the nodes by their fields.
	MatchFields []NodeSelectorRequirement
}

NodeSelectorTerm matches no objects if it's empty. The requirements of the selector are ANDed.

func (*NodeSelectorTerm) DeepCopy

func (in *NodeSelectorTerm) DeepCopy() *NodeSelectorTerm

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

func (*NodeSelectorTerm) DeepCopyInto

func (in *NodeSelectorTerm) DeepCopyInto(out *NodeSelectorTerm)

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

type NodeSpec

type NodeSpec struct {
}

func (*NodeSpec) DeepCopy

func (in *NodeSpec) DeepCopy() *NodeSpec

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

func (*NodeSpec) DeepCopyInto

func (in *NodeSpec) DeepCopyInto(out *NodeSpec)

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

type NodeStatus

type NodeStatus struct {
}

func (*NodeStatus) DeepCopy

func (in *NodeStatus) DeepCopy() *NodeStatus

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

func (*NodeStatus) DeepCopyInto

func (in *NodeStatus) DeepCopyInto(out *NodeStatus)

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

type ObjectIP

type ObjectIP struct {
	// IPFamily is the IPFamily of the prefix.
	// If unset but Prefix is set, this can be inferred.
	IPFamily corev1.IPFamily
	// Prefix is the prefix of the IP.
	Prefix net.IPPrefix
}

func (*ObjectIP) DeepCopy

func (in *ObjectIP) DeepCopy() *ObjectIP

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

func (*ObjectIP) DeepCopyInto

func (in *ObjectIP) DeepCopyInto(out *ObjectIP)

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

type ObjectSelector

type ObjectSelector struct {
	// Kind is the kind of object to select.
	Kind string `json:"kind"`
	// LabelSelector is the label selector to select objects of the specified Kind by.
	metav1.LabelSelector `json:",inline"`
}

ObjectSelector specifies how to select objects of a certain kind.

func (*ObjectSelector) DeepCopy

func (in *ObjectSelector) DeepCopy() *ObjectSelector

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

func (*ObjectSelector) DeepCopyInto

func (in *ObjectSelector) DeepCopyInto(out *ObjectSelector)

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

type PCIAddress

type PCIAddress struct {
	Domain   string
	Bus      string
	Slot     string
	Function string
}

PCIAddress is a PCI address.

func (*PCIAddress) DeepCopy

func (in *PCIAddress) DeepCopy() *PCIAddress

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

func (*PCIAddress) DeepCopyInto

func (in *PCIAddress) DeepCopyInto(out *PCIAddress)

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

type PeeringPrefix

type PeeringPrefix struct {
	// Name is the semantical name of the peering prefixes
	Name string `json:"name"`
	// CIDR to be exposed to the peered network
	Prefix *net.IPPrefix `json:"prefix,omitempty"`
}

PeeringPrefixes defines prefixes to be exposed to the peered network

func (*PeeringPrefix) DeepCopy

func (in *PeeringPrefix) DeepCopy() *PeeringPrefix

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

func (*PeeringPrefix) DeepCopyInto

func (in *PeeringPrefix) DeepCopyInto(out *PeeringPrefix)

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

type PolicyType

type PolicyType string

PolicyType is a type of policy.

const (
	// PolicyTypeIngress is a policy that describes ingress traffic.
	PolicyTypeIngress PolicyType = "Ingress"
	// PolicyTypeEgress is a policy that describes egress traffic.
	PolicyTypeEgress PolicyType = "Egress"
)

type Rule

type Rule struct {
	// CIDRBlock specifies the CIDR block from which network traffic may come or go.
	CIDRBlock []IPBlock
	// ObjectIPs are the object IPs the rule applies to.
	ObjectIPs []ObjectIP
	// NetworkPolicyPorts are the protocol type and ports.
	NetworkPolicyPorts []NetworkPolicyPort
}

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

type TargetNetworkInterface

type TargetNetworkInterface struct {
	// IP is the IP address of the target network interface.
	IP net.IP
	// TargetRef is the target providing the destination.
	TargetRef *LocalUIDReference
}

TargetNetworkInterface is the target of the network policy.

func (*TargetNetworkInterface) DeepCopy

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

func (*TargetNetworkInterface) DeepCopyInto

func (in *TargetNetworkInterface) DeepCopyInto(out *TargetNetworkInterface)

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

type TopologySpreadConstraint

type TopologySpreadConstraint struct {
	// MaxSkew describes the degree to which instances may be unevenly distributed.
	// When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
	// between the number of matching instances in the target topology and the global minimum.
	// The global minimum is the minimum number of matching instances in an eligible domain
	// or zero if the number of eligible domains is less than MinDomains.
	MaxSkew int32
	// TopologyKey is the key of node labels. Nodes that have a label with this key
	// and identical values are considered to be in the same topology.
	// We consider each <key, value> as a "bucket", and try to put balanced number
	// of instances into each bucket.
	// We define a domain as a particular instance of a topology.
	// Also, we define an eligible domain as a domain whose nodes meet the requirements of
	// nodeAffinityPolicy and nodeTaintsPolicy.
	TopologyKey string
	// WhenUnsatisfiable indicates how to deal with a instance if it doesn't satisfy
	// the spread constraint.
	// - DoNotSchedule (default) tells the scheduler not to schedule it.
	// - ScheduleAnyway tells the scheduler to schedule the instance in any location,
	//   but giving higher precedence to topologies that would help reduce the
	//   skew.
	WhenUnsatisfiable UnsatisfiableConstraintAction
	// LabelSelector is used to find matching instances.
	// Instances that match this label selector are counted to determine the number of instances
	// in their corresponding topology domain.
	LabelSelector *metav1.LabelSelector
}

TopologySpreadConstraint specifies how to spread matching instances among the given topology.

func (*TopologySpreadConstraint) DeepCopy

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

func (*TopologySpreadConstraint) DeepCopyInto

func (in *TopologySpreadConstraint) DeepCopyInto(out *TopologySpreadConstraint)

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

type UnsatisfiableConstraintAction

type UnsatisfiableConstraintAction string
const (
	// DoNotSchedule instructs the scheduler not to schedule the instance
	// when constraints are not satisfied.
	DoNotSchedule UnsatisfiableConstraintAction = "DoNotSchedule"
)

Directories

Path Synopsis
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.

Jump to

Keyboard shortcuts

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