Documentation ¶
Overview ¶
Package sdn provides OpenShift-internal SDN-related APIs
Index ¶
- Constants
- Variables
- func DeleteChangePodNetworkAnnotation(netns *sdnapi.NetNamespace)
- func IsOpenShiftMultitenantNetworkPlugin(pluginName string) bool
- func IsOpenShiftNetworkPlugin(pluginName string) bool
- func SetChangePodNetworkAnnotation(netns *sdnapi.NetNamespace, action PodNetworkAction, params string)
- func ValidVNID(vnid uint32) error
- type NodeInterface
- type PodNetworkAction
- type ProxyInterface
Constants ¶
View Source
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" )
View Source
const ( SingleTenantPluginName = "redhat/openshift-ovs-subnet" MultiTenantPluginName = "redhat/openshift-ovs-multitenant" NetworkPolicyPluginName = "redhat/openshift-ovs-networkpolicy" )
Variables ¶
View Source
var (
ErrorPodNetworkAnnotationNotFound = fmt.Errorf("ChangePodNetworkAnnotation not found")
)
Functions ¶
func DeleteChangePodNetworkAnnotation ¶
func DeleteChangePodNetworkAnnotation(netns *sdnapi.NetNamespace)
DeleteChangePodNetworkAnnotation removes network change intent from NetNamespace
func SetChangePodNetworkAnnotation ¶
func SetChangePodNetworkAnnotation(netns *sdnapi.NetNamespace, action PodNetworkAction, params string)
SetChangePodNetworkAnnotation sets network change intent on NetNamespace
Types ¶
type NodeInterface ¶
type NodeInterface interface {
Start() error
}
type PodNetworkAction ¶
type PodNetworkAction string
func GetChangePodNetworkAnnotation ¶
func GetChangePodNetworkAnnotation(netns *sdnapi.NetNamespace) (PodNetworkAction, string, error)
GetChangePodNetworkAnnotation fetches network change intent from NetNamespace
type ProxyInterface ¶
type ProxyInterface interface { proxyconfig.EndpointsHandler Start(proxyconfig.EndpointsHandler) error }
Directories ¶
Path | Synopsis |
---|---|
apis
|
|
network
+groupName=network.openshift.io Package api is the internal version of the API.
|
+groupName=network.openshift.io Package api is the internal version of the API. |
network/v1
+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. |
generated
|
|
clientset
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
clientset/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
clientset/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
clientset/typed/network/v1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
clientset/typed/network/v1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
internalclientset
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
internalclientset/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
internalclientset/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
internalclientset/typed/network/internalversion
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
internalclientset/typed/network/internalversion/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
registry
|
|
Click to show internal directories.
Click to hide internal directories.