common

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchOnePodNetworking

func MatchOnePodNetworking(pod *corev1.Pod, ns *corev1.Namespace, networkings []v1beta1.PodNetworking) (*v1beta1.PodNetworking, error)

MatchOnePodNetworking will range all podNetworking and try to found a matched podNetworking for this pod for stateless pod Fixed ip config is never matched

func PodMatchSelector

func PodMatchSelector(labelSelector *metav1.LabelSelector, l labels.Set) (bool, error)

PodMatchSelector pod is selected by selector

func SetPodENIStatus

func SetPodENIStatus(ctx context.Context, c client.Client, update, old *v1beta1.PodENI) (*v1beta1.PodENI, error)

SetPodENIStatus set cr status

Types

type NodeInfo added in v1.1.1

type NodeInfo struct {
	InstanceID string
	Zone       string
	TrunkENIID string
}

NodeInfo is the type describe the eni config for this pod

func NewNodeInfo added in v1.1.1

func NewNodeInfo(node *corev1.Node) (*NodeInfo, error)

Jump to

Keyboard shortcuts

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