v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Package v1alpha1 contains API Schema definitions for the apinet v1alpha1 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: "v1alpha1"}

	// 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 RegisterDefaults added in v0.2.2

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Types

type Affinity

type Affinity struct {
	NodeAffinity         *NodeAffinity         `json:"nodeAffinity,omitempty"`
	InstanceAntiAffinity *InstanceAntiAffinity `json:"instanceAntiAffinity,omitempty"`
}

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.

func (Affinity) OpenAPIModelName added in v0.4.0

func (in Affinity) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type DaemonSet

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

	Spec   DaemonSetSpec   `json:"spec,omitempty"`
	Status DaemonSetStatus `json:"status,omitempty"`
}

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.

func (DaemonSet) OpenAPIModelName added in v0.4.0

func (in DaemonSet) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type DaemonSetList

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

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.

func (DaemonSetList) OpenAPIModelName added in v0.4.0

func (in DaemonSetList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type DaemonSetSpec

type DaemonSetSpec struct {
	// Selector selects all Instance that are managed by this daemon set.
	Selector *metav1.LabelSelector `json:"nodeSelector,omitempty"`

	// Template is the instance template.
	Template InstanceTemplate `json:"template"`
}

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.

func (DaemonSetSpec) OpenAPIModelName added in v0.4.0

func (in DaemonSetSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type DaemonSetStatus

type DaemonSetStatus struct {
	CollisionCount *int32 `json:"collisionCount,omitempty"`
}

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.

func (DaemonSetStatus) OpenAPIModelName added in v0.4.0

func (in DaemonSetStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IP

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

	Spec   IPSpec   `json:"spec,omitempty"`
	Status IPStatus `json:"status,omitempty"`
}

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.

func (IP) OpenAPIModelName added in v0.4.0

func (in IP) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPAddress

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

	Spec IPAddressSpec `json:"spec,omitempty"`
}

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.

func (IPAddress) OpenAPIModelName added in v0.4.0

func (in IPAddress) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPAddressClaimRef

type IPAddressClaimRef struct {
	Group     string    `json:"group,omitempty"`
	Resource  string    `json:"resource,omitempty"`
	Namespace string    `json:"namespace,omitempty"`
	Name      string    `json:"name,omitempty"`
	UID       types.UID `json:"uid,omitempty"`
}

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.

func (IPAddressClaimRef) OpenAPIModelName added in v0.4.0

func (in IPAddressClaimRef) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPAddressList

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

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.

func (IPAddressList) OpenAPIModelName added in v0.4.0

func (in IPAddressList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPAddressSpec

type IPAddressSpec struct {
	IP       net.IP            `json:"ip,omitempty"`
	ClaimRef IPAddressClaimRef `json:"claimRef,omitempty"`
}

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.

func (IPAddressSpec) OpenAPIModelName added in v0.4.0

func (in IPAddressSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPBlock

type IPBlock struct {
	// CIDR is a string representing the ip block.
	CIDR net.IPPrefix `json:"cidr"`
	// 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 `json:"except,omitempty"`
}

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.

func (IPBlock) OpenAPIModelName added in v0.4.0

func (in IPBlock) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPClaimRef

type IPClaimRef struct {
	Group    string    `json:"group,omitempty"`
	Resource string    `json:"resource,omitempty"`
	Name     string    `json:"name,omitempty"`
	UID      types.UID `json:"uid,omitempty"`
}

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.

func (IPClaimRef) OpenAPIModelName added in v0.4.0

func (in IPClaimRef) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPList

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

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.

func (IPList) OpenAPIModelName added in v0.4.0

func (in IPList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPSpec

type IPSpec struct {
	Type     IPType          `json:"type"`
	IPFamily corev1.IPFamily `json:"ipFamily,omitempty"`
	IP       net.IP          `json:"ip,omitempty"`
	ClaimRef *IPClaimRef     `json:"claimRef,omitempty"`
}

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.

func (IPSpec) OpenAPIModelName added in v0.4.0

func (in IPSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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.

func (IPStatus) OpenAPIModelName added in v0.4.0

func (in IPStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type IPType

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

type Instance

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

	Spec   InstanceSpec   `json:"spec,omitempty"`
	Status InstanceStatus `json:"status,omitempty"`
}

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.

func (Instance) OpenAPIModelName added in v0.4.0

func (in Instance) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type InstanceAffinityTerm

type InstanceAffinityTerm struct {
	// LabelSelector over a set of resources, in this case instances.
	LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
	// 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 `json:"topologyKey"`
}

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.

func (InstanceAffinityTerm) OpenAPIModelName added in v0.4.0

func (in InstanceAffinityTerm) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

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.

func (InstanceAntiAffinity) OpenAPIModelName added in v0.4.0

func (in InstanceAntiAffinity) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type InstanceList

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

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.

func (InstanceList) OpenAPIModelName added in v0.4.0

func (in InstanceList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type InstanceSpec

type InstanceSpec struct {
	// Type specifies the InstanceType to deploy.
	Type InstanceType `json:"type"`

	// LoadBalancerType is the load balancer type this instance is for.
	LoadBalancerType LoadBalancerType `json:"loadBalancerType"`

	// NetworkRef references the network the instance is on.
	NetworkRef corev1.LocalObjectReference `json:"networkRef"`

	// IPs are the IPs of the instance.
	IPs []net.IP `json:"ips,omitempty"`

	// LoadBalancerPorts are the load balancer ports of this instance.
	LoadBalancerPorts []LoadBalancerPort `json:"loadBalancerPorts,omitempty"`

	// Affinity are affinity constraints.
	Affinity *Affinity `json:"affinity,omitempty"`

	// 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 `json:"topologySpreadConstraints,omitempty"`

	// NodeRef references the node hosting the load balancer instance.
	// Will be set by the scheduler if empty.
	NodeRef *corev1.LocalObjectReference `json:"nodeRef,omitempty"`
}

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.

func (InstanceSpec) OpenAPIModelName added in v0.4.0

func (in InstanceSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type InstanceStatus

type InstanceStatus struct {
	IPs            []net.IP `json:"ips,omitempty"`
	CollisionCount *int32   `json:"collisionCount,omitempty"`
}

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.

func (InstanceStatus) OpenAPIModelName added in v0.4.0

func (in InstanceStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type InstanceTemplate

type InstanceTemplate struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              InstanceSpec `json:"spec,omitempty"`
}

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.

func (InstanceTemplate) OpenAPIModelName added in v0.4.0

func (in InstanceTemplate) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type InstanceType

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

type LoadBalancer

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

	Spec   LoadBalancerSpec   `json:"spec,omitempty"`
	Status LoadBalancerStatus `json:"status,omitempty"`
}

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.

func (LoadBalancer) OpenAPIModelName added in v0.4.0

func (in LoadBalancer) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerDestination

type LoadBalancerDestination struct {
	// IP is the target IP.
	IP net.IP `json:"ip"`
	// TargetRef is the target providing the destination.
	TargetRef *LoadBalancerTargetRef `json:"targetRef,omitempty"`
}

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.

func (LoadBalancerDestination) OpenAPIModelName added in v0.4.0

func (in LoadBalancerDestination) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerIP

type LoadBalancerIP struct {
	// Name is the name of the load balancer IP.
	Name string `json:"name"`
	// 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 `json:"ipFamily,omitempty"`
	// IP specifies a specific IP to allocate. If empty, a random IP will be allocated if possible.
	IP net.IP `json:"ip,omitempty"`
}

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.

func (LoadBalancerIP) OpenAPIModelName added in v0.4.0

func (in LoadBalancerIP) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerList

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

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.

func (LoadBalancerList) OpenAPIModelName added in v0.4.0

func (in LoadBalancerList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerPort

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

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.

func (LoadBalancerPort) OpenAPIModelName added in v0.4.0

func (in LoadBalancerPort) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerRouting

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

	Destinations []LoadBalancerDestination `json:"destinations,omitempty"`
}

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.

func (LoadBalancerRouting) OpenAPIModelName added in v0.4.0

func (in LoadBalancerRouting) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerRoutingList

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

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.

func (LoadBalancerRoutingList) OpenAPIModelName added in v0.4.0

func (in LoadBalancerRoutingList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerSpec

type LoadBalancerSpec struct {
	// Type specifies the type of load balancer.
	Type LoadBalancerType `json:"type"`

	// NetworkRef references the network the load balancer is part of.
	NetworkRef corev1.LocalObjectReference `json:"networkRef"`

	// IPs specifies the IPs of the load balancer.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	IPs []LoadBalancerIP `json:"ips,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name"`

	// Ports are the ports the load balancer should allow.
	// If empty, the load balancer allows all ports.
	Ports []LoadBalancerPort `json:"ports,omitempty"`

	// Selector selects all Instances matching the given labels
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	// Template is the instance template.
	Template InstanceTemplate `json:"template"`
}

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.

func (LoadBalancerSpec) OpenAPIModelName added in v0.4.0

func (in LoadBalancerSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerStatus

type LoadBalancerStatus struct {
	// CollisionCount is used to construct names for IP addresses for the load balancer.
	CollisionCount *int32 `json:"collisionCount,omitempty"`
}

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.

func (LoadBalancerStatus) OpenAPIModelName added in v0.4.0

func (in LoadBalancerStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type LoadBalancerTargetRef

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

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.

func (LoadBalancerTargetRef) OpenAPIModelName added in v0.4.0

func (in LoadBalancerTargetRef) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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.

func (LocalUIDReference) OpenAPIModelName added in v0.4.0

func (in LocalUIDReference) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATGateway

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

	Spec   NATGatewaySpec   `json:"spec,omitempty"`
	Status NATGatewayStatus `json:"status,omitempty"`
}

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.

func (NATGateway) OpenAPIModelName added in v0.4.0

func (in NATGateway) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATGatewayAutoscaler

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

	Spec   NATGatewayAutoscalerSpec   `json:"spec,omitempty"`
	Status NATGatewayAutoscalerStatus `json:"status,omitempty"`
}

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.

func (NATGatewayAutoscaler) OpenAPIModelName added in v0.4.0

func (in NATGatewayAutoscaler) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATGatewayAutoscalerList

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

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.

func (NATGatewayAutoscalerList) OpenAPIModelName added in v0.4.0

func (in NATGatewayAutoscalerList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATGatewayAutoscalerSpec

type NATGatewayAutoscalerSpec struct {
	// NATGatewayRef points to the target NATGateway to scale.
	NATGatewayRef corev1.LocalObjectReference `json:"natGatewayRef"`

	// MinPublicIPs is the minimum number of public IPs to allocate for a NAT Gateway.
	MinPublicIPs *int32 `json:"minPublicIPs,omitempty"`
	// MaxPublicIPs is the maximum number of public IPs to allocate for a NAT Gateway.
	MaxPublicIPs *int32 `json:"maxPublicIPs,omitempty"`
}

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.

func (NATGatewayAutoscalerSpec) OpenAPIModelName added in v0.4.0

func (in NATGatewayAutoscalerSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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.

func (NATGatewayAutoscalerStatus) OpenAPIModelName added in v0.4.0

func (in NATGatewayAutoscalerStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATGatewayIP

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

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.

func (NATGatewayIP) OpenAPIModelName added in v0.4.0

func (in NATGatewayIP) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATGatewayList

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

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.

func (NATGatewayList) OpenAPIModelName added in v0.4.0

func (in NATGatewayList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATGatewaySpec

type NATGatewaySpec struct {
	// IPFamily is the IP family of the NAT gateway.
	IPFamily corev1.IPFamily `json:"ipFamily"`

	// NetworkRef references the network the NAT gateway is part of.
	NetworkRef corev1.LocalObjectReference `json:"networkRef"`

	// IPs specifies the IPs of the NAT gateway.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	IPs []NATGatewayIP `json:"ips,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name"`

	// PortsPerNetworkInterface specifies how many ports to allocate per network interface.
	PortsPerNetworkInterface int32 `json:"portsPerNetworkInterface"`
}

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.

func (NATGatewaySpec) OpenAPIModelName added in v0.4.0

func (in NATGatewaySpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATGatewayStatus

type NATGatewayStatus struct {
	// UsedNATIPs is the number of NAT IPs in-use.
	UsedNATIPs int64 `json:"usedNATIPs,omitempty"`
	// RequestedNATIPs is the number of requested NAT IPs.
	RequestedNATIPs int64 `json:"requestedNATIPs,omitempty"`
}

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.

func (NATGatewayStatus) OpenAPIModelName added in v0.4.0

func (in NATGatewayStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATIP

type NATIP struct {
	// IP is the IP to NAT.
	IP net.IP `json:"ip"`
	// Sections are the sections of the NATIP.
	Sections []NATIPSection `json:"sections,omitempty"`
}

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.

func (NATIP) OpenAPIModelName added in v0.4.0

func (in NATIP) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATIPSection

type NATIPSection struct {
	// IP is the source IP.
	IP net.IP `json:"ip"`
	// Port is the start port of the section.
	Port int32 `json:"port"`
	// EndPort is the end port of the section
	EndPort int32 `json:"endPort"`
	// TargetRef references the entity having the IP.
	TargetRef *NATTableIPTargetRef `json:"targetRef,omitempty"`
}

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.

func (NATIPSection) OpenAPIModelName added in v0.4.0

func (in NATIPSection) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATTable

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

	// IPs specifies how to NAT the IPs for the NAT gateway.
	IPs []NATIP `json:"ips,omitempty"`
}

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.

func (NATTable) OpenAPIModelName added in v0.4.0

func (in NATTable) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATTableIPTargetRef

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

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.

func (NATTableIPTargetRef) OpenAPIModelName added in v0.4.0

func (in NATTableIPTargetRef) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NATTableList

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

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.

func (NATTableList) OpenAPIModelName added in v0.4.0

func (in NATTableList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type Network

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

	Spec   NetworkSpec   `json:"spec,omitempty"`
	Status NetworkStatus `json:"status,omitempty"`
}

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.

func (Network) OpenAPIModelName added in v0.4.0

func (in Network) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkID

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

	Spec NetworkIDSpec `json:"spec,omitempty"`
}

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.

func (NetworkID) OpenAPIModelName added in v0.4.0

func (in NetworkID) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkIDClaimRef

type NetworkIDClaimRef struct {
	Group     string    `json:"group,omitempty"`
	Resource  string    `json:"resource,omitempty"`
	Namespace string    `json:"namespace,omitempty"`
	Name      string    `json:"name,omitempty"`
	UID       types.UID `json:"uid,omitempty"`
}

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.

func (NetworkIDClaimRef) OpenAPIModelName added in v0.4.0

func (in NetworkIDClaimRef) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkIDList

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

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.

func (NetworkIDList) OpenAPIModelName added in v0.4.0

func (in NetworkIDList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkIDSpec

type NetworkIDSpec struct {
	ClaimRef NetworkIDClaimRef `json:"claimRef"`
}

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.

func (NetworkIDSpec) OpenAPIModelName added in v0.4.0

func (in NetworkIDSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterface

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

	Spec   NetworkInterfaceSpec   `json:"spec,omitempty"`
	Status NetworkInterfaceStatus `json:"status,omitempty"`
}

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.

func (NetworkInterface) OpenAPIModelName added in v0.4.0

func (in NetworkInterface) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterfaceList

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

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.

func (NetworkInterfaceList) OpenAPIModelName added in v0.4.0

func (in NetworkInterfaceList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterfaceNAT

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

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.

func (NetworkInterfaceNAT) OpenAPIModelName added in v0.4.0

func (in NetworkInterfaceNAT) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterfaceNATClaimRef

type NetworkInterfaceNATClaimRef struct {
	// Name is the name of the claiming NAT gateway.
	Name string `json:"name"`
	// UID is the uid of the claiming NAT gateway.
	UID types.UID `json:"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.

func (NetworkInterfaceNATClaimRef) OpenAPIModelName added in v0.4.0

func (in NetworkInterfaceNATClaimRef) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterfacePublicIP

type NetworkInterfacePublicIP struct {
	// Name is the semantic name of the network interface public IP.
	Name string `json:"name"`
	// 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 `json:"ipFamily,omitempty"`
	// IP specifies a specific IP to allocate. If empty, a random ephemeral IP will be allocated.
	IP net.IP `json:"ip,omitempty"`
}

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.

func (NetworkInterfacePublicIP) OpenAPIModelName added in v0.4.0

func (in NetworkInterfacePublicIP) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkInterfaceSpec

type NetworkInterfaceSpec struct {
	// NodeRef is the node the network interface is hosted on.
	NodeRef corev1.LocalObjectReference `json:"nodeRef"`

	// NetworkRef references the network that the network interface is in.
	NetworkRef corev1.LocalObjectReference `json:"networkRef"`

	// IPs are the internal IPs of the network interface.
	IPs []net.IP `json:"ips,omitempty"`

	// Prefixes are additional prefixes to route to the network interface.
	Prefixes []net.IPPrefix `json:"prefixes,omitempty"`

	// 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 `json:"natGateways,omitempty"`

	// Hostname is the hostname which should be announced by the network interface.
	Hostname string `json:"hostname,omitempty"`

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

NetworkInterfaceSpec defines the desired state of NetworkInterface.

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.

func (NetworkInterfaceSpec) OpenAPIModelName added in v0.4.0

func (in NetworkInterfaceSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 is the state of the network interface.
	State NetworkInterfaceState `json:"state,omitempty"`
	// PCIAddress is the PCI address of the network interface.
	PCIAddress *PCIAddress `json:"pciAddress,omitempty"`
	// TAPDevice is the TAP device of the network interface.
	TAPDevice *TAPDevice `json:"tapDevice,omitempty"`
	// Prefixes are the prefixes of the network interface.
	Prefixes []net.IPPrefix `json:"prefixes,omitempty"`
	// PublicIPs are the public IPs of the network interface.
	PublicIPs []net.IP `json:"publicIPs,omitempty"`
	// NATIPs are the NAT IPs of the network interface.
	NATIPs []net.IP `json:"natIPs,omitempty"`
}

NetworkInterfaceStatus defines the observed state of NetworkInterface.

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.

func (NetworkInterfaceStatus) OpenAPIModelName added in v0.4.0

func (in NetworkInterfaceStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkList

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

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.

func (NetworkList) OpenAPIModelName added in v0.4.0

func (in NetworkList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkPeering

type NetworkPeering struct {
	// Name is the semantical name of the network peering.
	Name string `json:"name"`
	// ID is the ID of the network to peer with.
	ID string `json:"id"`
	// 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.

func (NetworkPeering) OpenAPIModelName added in v0.4.0

func (in NetworkPeering) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"state,omitempty"`
}

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.

func (NetworkPeeringStatus) OpenAPIModelName added in v0.4.0

func (in NetworkPeeringStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkPolicy

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

	Spec NetworkPolicySpec `json:"spec,omitempty"`
}

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.

func (NetworkPolicy) OpenAPIModelName added in v0.4.0

func (in NetworkPolicy) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"ports,omitempty"`
	// 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 `json:"to,omitempty"`
}

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.

func (NetworkPolicyEgressRule) OpenAPIModelName added in v0.4.0

func (in NetworkPolicyEgressRule) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"from,omitempty"`
	// 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 `json:"ports,omitempty"`
}

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.

func (NetworkPolicyIngressRule) OpenAPIModelName added in v0.4.0

func (in NetworkPolicyIngressRule) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkPolicyList

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

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.

func (NetworkPolicyList) OpenAPIModelName added in v0.4.0

func (in NetworkPolicyList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkPolicyPeer

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

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.

func (NetworkPolicyPeer) OpenAPIModelName added in v0.4.0

func (in NetworkPolicyPeer) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"protocol,omitempty"`

	// 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 `json:"port,omitempty"`

	// 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 `json:"endPort,omitempty" protobuf:"bytes,3,opt,name=endPort"`
}

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.

func (NetworkPolicyPort) OpenAPIModelName added in v0.4.0

func (in NetworkPolicyPort) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkPolicyRule

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

	// NetworkRef is the network to which network policy is applied.
	NetworkRef LocalUIDReference `json:"networkRef"`
	// Targets are the targets of the network policy.
	Targets []TargetNetworkInterface `json:"targets,omitempty"`
	// Priority is an optional field that specifies the order in which the policy is applied.
	Priority *int32 `json:"priority,omitempty"`
	// IngressRules are the ingress rules.
	IngressRules []Rule `json:"ingressRule,omitempty"`
	// EgressRules are the egress rules.
	EgressRules []Rule `json:"egressRule,omitempty"`
}

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.

func (NetworkPolicyRule) OpenAPIModelName added in v0.4.0

func (in NetworkPolicyRule) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkPolicyRuleList

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

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.

func (NetworkPolicyRuleList) OpenAPIModelName added in v0.4.0

func (in NetworkPolicyRuleList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkPolicySpec

type NetworkPolicySpec struct {
	// NetworkRef is the network to regulate using this policy.
	NetworkRef corev1.LocalObjectReference `json:"networkRef"`
	// NetworkInterfaceSelector selects the network interfaces that are subject to this policy.
	NetworkInterfaceSelector metav1.LabelSelector `json:"networkInterfaceSelector"`
	// 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 `json:"priority,omitempty"`
	// Ingress specifies rules for ingress traffic.
	Ingress []NetworkPolicyIngressRule `json:"ingress,omitempty"`
	// Egress specifies rules for egress traffic.
	Egress []NetworkPolicyEgressRule `json:"egress,omitempty"`
	// PolicyTypes specifies the types of policies this network policy contains.
	PolicyTypes []PolicyType `json:"policyTypes,omitempty"`
}

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.

func (NetworkPolicySpec) OpenAPIModelName added in v0.4.0

func (in NetworkPolicySpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NetworkSpec

type NetworkSpec struct {
	// ID is the ID of the network.
	ID string `json:"id,omitempty"`
	// Peerings are the network peerings with this network
	Peerings []NetworkPeering `json:"peerings,omitempty"`
}

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.

func (NetworkSpec) OpenAPIModelName added in v0.4.0

func (in NetworkSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"peerings,omitempty"`
}

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.

func (NetworkStatus) OpenAPIModelName added in v0.4.0

func (in NetworkStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type Node

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

	Spec   NodeSpec   `json:"spec,omitempty"`
	Status NodeStatus `json:"status,omitempty"`
}

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.

func (Node) OpenAPIModelName added in v0.4.0

func (in Node) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NodeAffinity

type NodeAffinity struct {
	RequiredDuringSchedulingIgnoredDuringExecution *NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

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.

func (NodeAffinity) OpenAPIModelName added in v0.4.0

func (in NodeAffinity) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NodeList

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

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.

func (NodeList) OpenAPIModelName added in v0.4.0

func (in NodeList) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NodeSelector

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

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.

func (NodeSelector) OpenAPIModelName added in v0.4.0

func (in NodeSelector) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"key"`
	// Operator represents the key's relationship to the values.
	// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
	Operator NodeSelectorOperator `json:"operator"`
	// Values are the values to relate the key to via the operator.
	Values []string `json:"values,omitempty"`
}

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.

func (NodeSelectorRequirement) OpenAPIModelName added in v0.4.0

func (in NodeSelectorRequirement) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type NodeSelectorTerm

type NodeSelectorTerm struct {
	// MatchExpressions matches nodes by the label selector requirements.
	MatchExpressions []NodeSelectorRequirement `json:"matchExpressions,omitempty"`
	// MatchFields matches the nodes by their fields.
	MatchFields []NodeSelectorRequirement `json:"matchFields,omitempty"`
}

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.

func (NodeSelectorTerm) OpenAPIModelName added in v0.4.0

func (in NodeSelectorTerm) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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.

func (NodeSpec) OpenAPIModelName added in v0.4.0

func (in NodeSpec) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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.

func (NodeStatus) OpenAPIModelName added in v0.4.0

func (in NodeStatus) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"ipFamily,omitempty"`
	// Prefix is the prefix of the IP.
	Prefix net.IPPrefix `json:"prefix,omitempty"`
}

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.

func (ObjectIP) OpenAPIModelName added in v0.4.0

func (in ObjectIP) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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.

func (ObjectSelector) OpenAPIModelName added in v0.4.0

func (in ObjectSelector) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type PCIAddress

type PCIAddress struct {
	Domain   string `json:"domain,omitempty"`
	Bus      string `json:"bus,omitempty"`
	Slot     string `json:"slot,omitempty"`
	Function string `json:"function,omitempty"`
}

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.

func (PCIAddress) OpenAPIModelName added in v0.4.0

func (in PCIAddress) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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

PeeringPrefix 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.

func (PeeringPrefix) OpenAPIModelName added in v0.4.0

func (in PeeringPrefix) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"ipBlock,omitempty"`
	// ObjectIPs are the object IPs the rule applies to.
	ObjectIPs []ObjectIP `json:"ips,omitempty"`
	// NetworkPolicyPorts are the protocol type and ports.
	NetworkPolicyPorts []NetworkPolicyPort `json:"networkPolicyPorts,omitempty"`
}

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.

func (Rule) OpenAPIModelName added in v0.4.0

func (in Rule) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type TAPDevice added in v0.2.2

type TAPDevice struct {
	// Name is the name of the TAP device.
	Name string `json:"name,omitempty"`
}

TAPDevice is a TAP device.

func (*TAPDevice) DeepCopy added in v0.2.2

func (in *TAPDevice) DeepCopy() *TAPDevice

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

func (*TAPDevice) DeepCopyInto added in v0.2.2

func (in *TAPDevice) DeepCopyInto(out *TAPDevice)

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

func (TAPDevice) OpenAPIModelName added in v0.4.0

func (in TAPDevice) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type TargetNetworkInterface

type TargetNetworkInterface struct {
	// IP is the IP address of the target network interface.
	IP net.IP `json:"ip"`
	// TargetRef is the target providing the destination.
	TargetRef *LocalUIDReference `json:"targetRef,omitempty"`
}

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.

func (TargetNetworkInterface) OpenAPIModelName added in v0.4.0

func (in TargetNetworkInterface) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

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 `json:"maxSkew"`
	// 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 `json:"topologyKey"`
	// 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 `json:"whenUnsatisfiable"`
	// 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 `json:"labelSelector,omitempty"`
}

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.

func (TopologySpreadConstraint) OpenAPIModelName added in v0.4.0

func (in TopologySpreadConstraint) OpenAPIModelName() string

OpenAPIModelName returns the OpenAPI model name for this type.

type UnsatisfiableConstraintAction

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

Jump to

Keyboard shortcuts

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