Documentation ¶
Index ¶
- func ConfigFromConfigMConfigFromConfigMap(ctx context.Context, client client.Client, nodeName string) (*types.Configure, error)
- func MatchOnePodNetworking(pod *corev1.Pod, ns *corev1.Namespace, networkings []v1beta1.PodNetworking) (*v1beta1.PodNetworking, error)
- func NodeNameFromCtx(ctx context.Context) string
- func NodeNameWithCtx(ctx context.Context, name string) context.Context
- func PatchPodENIStatus(ctx context.Context, c client.Client, update, old *v1beta1.PodENI) (*v1beta1.PodENI, error)
- func PodMatchSelector(labelSelector *metav1.LabelSelector, l labels.Set) (bool, error)
- func UpdatePodENI(ctx context.Context, c client.Client, update *v1beta1.PodENI) (*v1beta1.PodENI, error)
- func UpdatePodENIStatus(ctx context.Context, c client.Client, update *v1beta1.PodENI) (*v1beta1.PodENI, error)
- type NodeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFromConfigMConfigFromConfigMap ¶ added in v1.3.0
func ConfigFromConfigMConfigFromConfigMap(ctx context.Context, client client.Client, nodeName string) (*types.Configure, error)
ConfigFromConfigMConfigFromConfigMap get eni-config form configmap if nodeName is not empty dynamic config is read
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 NodeNameFromCtx ¶ added in v1.4.1
func NodeNameWithCtx ¶ added in v1.4.1
func PatchPodENIStatus ¶ added in v1.2.1
func PatchPodENIStatus(ctx context.Context, c client.Client, update, old *v1beta1.PodENI) (*v1beta1.PodENI, error)
PatchPodENIStatus set cr status
func PodMatchSelector ¶
PodMatchSelector pod is selected by selector
Types ¶
Click to show internal directories.
Click to hide internal directories.