Documentation ¶
Overview ¶
+groupName=network.openshift.io Package api is the internal version of the API.
Index ¶
- Constants
- Variables
- func ClusterNetworkToSelectableFields(network *ClusterNetwork) fields.Set
- func DeepCopy_api_ClusterNetwork(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_ClusterNetworkList(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_EgressNetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_EgressNetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_EgressNetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_EgressNetworkPolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_EgressNetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_HostSubnet(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_HostSubnetList(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_NetNamespace(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeepCopy_api_NetNamespaceList(in interface{}, out interface{}, c *conversion.Cloner) error
- func DeleteChangePodNetworkAnnotation(netns *NetNamespace)
- func EgressNetworkPolicyToSelectableFields(obj *EgressNetworkPolicy) fields.Set
- func HostSubnetToSelectableFields(obj *HostSubnet) fields.Set
- func IsKindOrLegacy(kind string, gk unversioned.GroupKind) bool
- func IsOpenShiftMultitenantNetworkPlugin(pluginName string) bool
- func IsOpenShiftNetworkPlugin(pluginName string) bool
- func IsResourceOrLegacy(resource string, gr unversioned.GroupResource) bool
- func Kind(kind string) unversioned.GroupKind
- func LegacyKind(kind string) unversioned.GroupKind
- func LegacyResource(resource string) unversioned.GroupResource
- func NetNamespaceToSelectableFields(obj *NetNamespace) fields.Set
- func RegisterDeepCopies(scheme *runtime.Scheme) error
- func Resource(resource string) unversioned.GroupResource
- func SetChangePodNetworkAnnotation(netns *NetNamespace, action PodNetworkAction, params string)
- func ValidVNID(vnid uint32) error
- type ClusterNetwork
- type ClusterNetworkList
- type EgressNetworkPolicy
- type EgressNetworkPolicyList
- type EgressNetworkPolicyPeer
- type EgressNetworkPolicyRule
- type EgressNetworkPolicyRuleType
- type EgressNetworkPolicySpec
- type HostSubnet
- type HostSubnetList
- type NetNamespace
- type NetNamespaceList
- type PodNetworkAction
Constants ¶
const ( // Maximum VXLAN Virtual Network Identifier(VNID) as per RFC#7348 MaxVNID = uint32((1 << 24) - 1) // VNID: 1 to 9 are internally reserved for any special cases in the future MinVNID = uint32(10) // VNID: 0 reserved for default namespace and can reach any network in the cluster GlobalVNID = uint32(0) // 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" )
const ( SingleTenantPluginName = "redhat/openshift-ovs-subnet" MultiTenantPluginName = "redhat/openshift-ovs-multitenant" NetworkPolicyPluginName = "redhat/openshift-ovs-networkpolicy" // 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" // NetNamespace annotations MulticastEnabledAnnotation = "netnamespace.network.openshift.io/multicast-enabled" )
const ( GroupName = "network.openshift.io" LegacyGroupName = "" )
const ( ClusterNetworkDefault = "default" EgressNetworkPolicyMaxRules = 50 )
Variables ¶
var ( SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} LegacySchemeGroupVersion = unversioned.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
var (
ErrorPodNetworkAnnotationNotFound = fmt.Errorf("ChangePodNetworkAnnotation not found")
)
Functions ¶
func ClusterNetworkToSelectableFields ¶ added in v1.0.8
func ClusterNetworkToSelectableFields(network *ClusterNetwork) fields.Set
ClusterNetworkToSelectableFields returns a label set that represents the object
func DeepCopy_api_ClusterNetwork ¶ added in v1.3.0
func DeepCopy_api_ClusterNetwork(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_ClusterNetworkList ¶ added in v1.3.0
func DeepCopy_api_ClusterNetworkList(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_EgressNetworkPolicy ¶ added in v1.3.0
func DeepCopy_api_EgressNetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_EgressNetworkPolicyList ¶ added in v1.3.0
func DeepCopy_api_EgressNetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_EgressNetworkPolicyPeer ¶ added in v1.3.0
func DeepCopy_api_EgressNetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_EgressNetworkPolicyRule ¶ added in v1.3.0
func DeepCopy_api_EgressNetworkPolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_EgressNetworkPolicySpec ¶ added in v1.3.0
func DeepCopy_api_EgressNetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_HostSubnet ¶ added in v1.3.0
func DeepCopy_api_HostSubnet(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_HostSubnetList ¶ added in v1.3.0
func DeepCopy_api_HostSubnetList(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_NetNamespace ¶ added in v1.3.0
func DeepCopy_api_NetNamespace(in interface{}, out interface{}, c *conversion.Cloner) error
func DeepCopy_api_NetNamespaceList ¶ added in v1.3.0
func DeepCopy_api_NetNamespaceList(in interface{}, out interface{}, c *conversion.Cloner) error
func DeleteChangePodNetworkAnnotation ¶ added in v1.3.0
func DeleteChangePodNetworkAnnotation(netns *NetNamespace)
DeleteChangePodNetworkAnnotation removes network change intent from NetNamespace
func EgressNetworkPolicyToSelectableFields ¶ added in v1.3.0
func EgressNetworkPolicyToSelectableFields(obj *EgressNetworkPolicy) fields.Set
EgressNetworkPolicyToSelectableFields returns a label set that represents the object
func HostSubnetToSelectableFields ¶ added in v1.0.8
func HostSubnetToSelectableFields(obj *HostSubnet) fields.Set
HostSubnetToSelectableFields returns a label set that represents the object
func IsKindOrLegacy ¶
func IsKindOrLegacy(kind string, gk unversioned.GroupKind) bool
IsKindOrLegacy checks if the provided GroupKind matches with the given kind by looking up the API group and also the legacy API.
func IsOpenShiftMultitenantNetworkPlugin ¶ added in v1.4.0
func IsOpenShiftNetworkPlugin ¶ added in v1.4.0
func IsResourceOrLegacy ¶
func IsResourceOrLegacy(resource string, gr unversioned.GroupResource) bool
IsResourceOrLegacy checks if the provided GroupResources matches with the given resource by looking up the API group and also the legacy API.
func Kind ¶ added in v1.1.2
func Kind(kind string) unversioned.GroupKind
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func LegacyKind ¶
func LegacyKind(kind string) unversioned.GroupKind
LegacyKind takes an unqualified kind and returns back a Group qualified GroupKind
func LegacyResource ¶
func LegacyResource(resource string) unversioned.GroupResource
LegacyResource takes an unqualified resource and returns back a Group qualified GroupResource
func NetNamespaceToSelectableFields ¶ added in v1.0.8
func NetNamespaceToSelectableFields(obj *NetNamespace) fields.Set
NetNamespaceToSelectableFields returns a label set that represents the object
func RegisterDeepCopies ¶ added in v1.4.0
RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.
func Resource ¶ added in v1.1.2
func Resource(resource string) unversioned.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
func SetChangePodNetworkAnnotation ¶ added in v1.3.0
func SetChangePodNetworkAnnotation(netns *NetNamespace, action PodNetworkAction, params string)
SetChangePodNetworkAnnotation sets network change intent on NetNamespace
Types ¶
type ClusterNetwork ¶
type ClusterNetwork struct { unversioned.TypeMeta kapi.ObjectMeta Network string HostSubnetLength uint32 ServiceNetwork string PluginName string }
type ClusterNetworkList ¶
type ClusterNetworkList struct { unversioned.TypeMeta unversioned.ListMeta Items []ClusterNetwork }
type EgressNetworkPolicy ¶ added in v1.3.0
type EgressNetworkPolicy struct { unversioned.TypeMeta kapi.ObjectMeta Spec EgressNetworkPolicySpec }
EgressNetworkPolicy describes the current egress network policy
type EgressNetworkPolicyList ¶ added in v1.3.0
type EgressNetworkPolicyList struct { unversioned.TypeMeta unversioned.ListMeta Items []EgressNetworkPolicy }
EgressNetworkPolicyList is a collection of EgressNetworkPolicy
type EgressNetworkPolicyPeer ¶ added in v1.3.0
EgressNetworkPolicyPeer specifies a target to apply egress policy to
type EgressNetworkPolicyRule ¶ added in v1.3.0
type EgressNetworkPolicyRule struct { Type EgressNetworkPolicyRuleType To EgressNetworkPolicyPeer }
EgressNetworkPolicyRule contains a single egress network policy rule
type EgressNetworkPolicyRuleType ¶ added in v1.3.0
type EgressNetworkPolicyRuleType string
EgressNetworkPolicyRuleType gives the type of an EgressNetworkPolicyRule
const ( EgressNetworkPolicyRuleAllow EgressNetworkPolicyRuleType = "Allow" EgressNetworkPolicyRuleDeny EgressNetworkPolicyRuleType = "Deny" )
type EgressNetworkPolicySpec ¶ added in v1.3.0
type EgressNetworkPolicySpec struct {
Egress []EgressNetworkPolicyRule
}
EgressNetworkPolicySpec provides a list of policies on outgoing traffic
type HostSubnet ¶
type HostSubnet struct { unversioned.TypeMeta kapi.ObjectMeta // host may just be an IP address, resolvable hostname or a complete DNS Host string HostIP string Subnet string }
HostSubnet encapsulates the inputs needed to define the container subnet network on a node
type HostSubnetList ¶
type HostSubnetList struct { unversioned.TypeMeta unversioned.ListMeta Items []HostSubnet }
HostSubnetList is a collection of HostSubnets
type NetNamespace ¶ added in v1.0.5
type NetNamespace struct { unversioned.TypeMeta kapi.ObjectMeta NetName string NetID uint32 }
NetNamespace holds the network id against its name
type NetNamespaceList ¶ added in v1.0.5
type NetNamespaceList struct { unversioned.TypeMeta unversioned.ListMeta Items []NetNamespace }
NetNamespaceList is a collection of NetNamespaces
type PodNetworkAction ¶ added in v1.3.0
type PodNetworkAction string
func GetChangePodNetworkAnnotation ¶ added in v1.3.0
func GetChangePodNetworkAnnotation(netns *NetNamespace) (PodNetworkAction, string, error)
GetChangePodNetworkAnnotation fetches network change intent from NetNamespace
Source Files ¶
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. |