network

package
v3.10.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

+groupName=network.openshift.io Package api is the internal version of the API.

Index

Constants

View Source
const (

	// ChangePodNetworkAnnotation is an annotation on NetNamespace to request change of pod network
	ChangePodNetworkAnnotation string = "pod.network.openshift.io/multitenant.change-network"

	// Acceptable values for ChangePodNetworkAnnotation
	GlobalPodNetwork  PodNetworkAction = "global"
	JoinPodNetwork    PodNetworkAction = "join"
	IsolatePodNetwork PodNetworkAction = "isolate"
)
View Source
const (
	// Pod annotations
	IngressBandwidthAnnotation = "kubernetes.io/ingress-bandwidth"
	EgressBandwidthAnnotation  = "kubernetes.io/egress-bandwidth"
	AssignMacvlanAnnotation    = "pod.network.openshift.io/assign-macvlan"

	// HostSubnet annotations. (Note: should be "hostsubnet.network.openshift.io/", but the incorrect name is now part of the API.)
	AssignHostSubnetAnnotation = "pod.network.openshift.io/assign-subnet"
	FixedVNIDHostAnnotation    = "pod.network.openshift.io/fixed-vnid-host"
	NodeUIDAnnotation          = "pod.network.openshift.io/node-uid"

	// NetNamespace annotations
	MulticastEnabledAnnotation = "netnamespace.network.openshift.io/multicast-enabled"
)
View Source
const (
	GroupName       = "network.openshift.io"
	LegacyGroupName = ""
)
View Source
const (
	ClusterNetworkDefault       = "default"
	EgressNetworkPolicyMaxRules = 50
)

Variables

View Source
var (
	SchemeGroupVersion       = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
	LegacySchemeGroupVersion = schema.GroupVersion{Group: LegacyGroupName, Version: runtime.APIVersionInternal}

	LegacySchemeBuilder    = runtime.NewSchemeBuilder(addLegacyKnownTypes)
	AddToSchemeInCoreGroup = LegacySchemeBuilder.AddToScheme

	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

SchemeGroupVersion is group version used to register these objects

View Source
var (
	ErrorPodNetworkAnnotationNotFound = fmt.Errorf("ChangePodNetworkAnnotation not found")
)

Functions

func DeleteChangePodNetworkAnnotation added in v3.10.0

func DeleteChangePodNetworkAnnotation(netns *NetNamespace)

DeleteChangePodNetworkAnnotation removes network change intent from NetNamespace

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

func SetChangePodNetworkAnnotation added in v3.10.0

func SetChangePodNetworkAnnotation(netns *NetNamespace, action PodNetworkAction, params string)

SetChangePodNetworkAnnotation sets network change intent on NetNamespace

Types

type ClusterNetwork

type ClusterNetwork struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	ClusterNetworks  []ClusterNetworkEntry
	Network          string
	HostSubnetLength uint32
	ServiceNetwork   string
	PluginName       string
}

func (*ClusterNetwork) DeepCopy added in v3.8.0

func (in *ClusterNetwork) DeepCopy() *ClusterNetwork

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

func (*ClusterNetwork) DeepCopyInto added in v3.8.0

func (in *ClusterNetwork) DeepCopyInto(out *ClusterNetwork)

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

func (*ClusterNetwork) DeepCopyObject added in v3.8.0

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

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

type ClusterNetworkEntry

type ClusterNetworkEntry struct {
	CIDR             string
	HostSubnetLength uint32
}

func (*ClusterNetworkEntry) DeepCopy added in v3.8.0

func (in *ClusterNetworkEntry) DeepCopy() *ClusterNetworkEntry

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

func (*ClusterNetworkEntry) DeepCopyInto added in v3.8.0

func (in *ClusterNetworkEntry) DeepCopyInto(out *ClusterNetworkEntry)

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

type ClusterNetworkList

type ClusterNetworkList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []ClusterNetwork
}

func (*ClusterNetworkList) DeepCopy added in v3.8.0

func (in *ClusterNetworkList) DeepCopy() *ClusterNetworkList

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

func (*ClusterNetworkList) DeepCopyInto added in v3.8.0

func (in *ClusterNetworkList) DeepCopyInto(out *ClusterNetworkList)

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

func (*ClusterNetworkList) DeepCopyObject added in v3.8.0

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

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

type EgressNetworkPolicy

type EgressNetworkPolicy struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec EgressNetworkPolicySpec
}

EgressNetworkPolicy describes the current egress network policy

func (*EgressNetworkPolicy) DeepCopy added in v3.8.0

func (in *EgressNetworkPolicy) DeepCopy() *EgressNetworkPolicy

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

func (*EgressNetworkPolicy) DeepCopyInto added in v3.8.0

func (in *EgressNetworkPolicy) DeepCopyInto(out *EgressNetworkPolicy)

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

func (*EgressNetworkPolicy) DeepCopyObject added in v3.8.0

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

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

type EgressNetworkPolicyList

type EgressNetworkPolicyList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []EgressNetworkPolicy
}

EgressNetworkPolicyList is a collection of EgressNetworkPolicy

func (*EgressNetworkPolicyList) DeepCopy added in v3.8.0

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

func (*EgressNetworkPolicyList) DeepCopyInto added in v3.8.0

func (in *EgressNetworkPolicyList) DeepCopyInto(out *EgressNetworkPolicyList)

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

func (*EgressNetworkPolicyList) DeepCopyObject added in v3.8.0

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

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

type EgressNetworkPolicyPeer

type EgressNetworkPolicyPeer struct {
	CIDRSelector string
	DNSName      string
}

EgressNetworkPolicyPeer specifies a target to apply egress policy to

func (*EgressNetworkPolicyPeer) DeepCopy added in v3.8.0

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

func (*EgressNetworkPolicyPeer) DeepCopyInto added in v3.8.0

func (in *EgressNetworkPolicyPeer) DeepCopyInto(out *EgressNetworkPolicyPeer)

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

type EgressNetworkPolicyRule

type EgressNetworkPolicyRule struct {
	Type EgressNetworkPolicyRuleType
	To   EgressNetworkPolicyPeer
}

EgressNetworkPolicyRule contains a single egress network policy rule

func (*EgressNetworkPolicyRule) DeepCopy added in v3.8.0

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

func (*EgressNetworkPolicyRule) DeepCopyInto added in v3.8.0

func (in *EgressNetworkPolicyRule) DeepCopyInto(out *EgressNetworkPolicyRule)

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

type EgressNetworkPolicyRuleType

type EgressNetworkPolicyRuleType string

EgressNetworkPolicyRuleType gives the type of an EgressNetworkPolicyRule

const (
	EgressNetworkPolicyRuleAllow EgressNetworkPolicyRuleType = "Allow"
	EgressNetworkPolicyRuleDeny  EgressNetworkPolicyRuleType = "Deny"
)

type EgressNetworkPolicySpec

type EgressNetworkPolicySpec struct {
	Egress []EgressNetworkPolicyRule
}

EgressNetworkPolicySpec provides a list of policies on outgoing traffic

func (*EgressNetworkPolicySpec) DeepCopy added in v3.8.0

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

func (*EgressNetworkPolicySpec) DeepCopyInto added in v3.8.0

func (in *EgressNetworkPolicySpec) DeepCopyInto(out *EgressNetworkPolicySpec)

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

type HostSubnet

type HostSubnet struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// host may just be an IP address, resolvable hostname or a complete DNS
	Host   string
	HostIP string
	Subnet string

	EgressIPs []string
}

HostSubnet encapsulates the inputs needed to define the container subnet network on a node

func (*HostSubnet) DeepCopy added in v3.8.0

func (in *HostSubnet) DeepCopy() *HostSubnet

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

func (*HostSubnet) DeepCopyInto added in v3.8.0

func (in *HostSubnet) DeepCopyInto(out *HostSubnet)

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

func (*HostSubnet) DeepCopyObject added in v3.8.0

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

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

type HostSubnetList

type HostSubnetList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []HostSubnet
}

HostSubnetList is a collection of HostSubnets

func (*HostSubnetList) DeepCopy added in v3.8.0

func (in *HostSubnetList) DeepCopy() *HostSubnetList

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

func (*HostSubnetList) DeepCopyInto added in v3.8.0

func (in *HostSubnetList) DeepCopyInto(out *HostSubnetList)

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

func (*HostSubnetList) DeepCopyObject added in v3.8.0

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

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

type NetNamespace

type NetNamespace struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	NetName string
	NetID   uint32

	EgressIPs []string
}

NetNamespace holds information about the SDN configuration of a Namespace

func (*NetNamespace) DeepCopy added in v3.8.0

func (in *NetNamespace) DeepCopy() *NetNamespace

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

func (*NetNamespace) DeepCopyInto added in v3.8.0

func (in *NetNamespace) DeepCopyInto(out *NetNamespace)

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

func (*NetNamespace) DeepCopyObject added in v3.8.0

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

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

type NetNamespaceList

type NetNamespaceList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []NetNamespace
}

NetNamespaceList is a collection of NetNamespaces

func (*NetNamespaceList) DeepCopy added in v3.8.0

func (in *NetNamespaceList) DeepCopy() *NetNamespaceList

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

func (*NetNamespaceList) DeepCopyInto added in v3.8.0

func (in *NetNamespaceList) DeepCopyInto(out *NetNamespaceList)

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

func (*NetNamespaceList) DeepCopyObject added in v3.8.0

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

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

type PodNetworkAction added in v3.10.0

type PodNetworkAction string

func GetChangePodNetworkAnnotation added in v3.10.0

func GetChangePodNetworkAnnotation(netns *NetNamespace) (PodNetworkAction, string, error)

GetChangePodNetworkAnnotation fetches network change intent from NetNamespace

Directories

Path Synopsis
+groupName=network.openshift.io Package v1 is the v1 version of the API.
+groupName=network.openshift.io Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

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