Documentation
¶
Index ¶
- func MatchOnePodNetworking(pod *corev1.Pod, ns *corev1.Namespace, networkings []v1beta1.PodNetworking) (*v1beta1.PodNetworking, error)
- func PodMatchSelector(labelSelector *metav1.LabelSelector, l labels.Set) (bool, error)
- func SetPodENIStatus(ctx context.Context, c client.Client, update, old *v1beta1.PodENI) (*v1beta1.PodENI, error)
- type PodConf
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 ¶
PodMatchSelector pod is selected by selector
Types ¶
type PodConf ¶
type PodConf struct {
SecurityGroups []string
VSwitchID string
UseFixedIP bool
IPAllocType v1beta1.IPAllocType
FixedIPReleaseAfter time.Duration
ReleaseStrategy v1beta1.ReleaseStrategy
// from node
InstanceID string
Zone string
TrunkENIID string
}
PodConf is the type describe the eni config for this pod
func (*PodConf) SetNodeConf ¶
SetNodeConf parse from node
func (*PodConf) SetPodENIConf ¶
SetPodENIConf parse from podENI
func (*PodConf) SetPodNetworkingConf ¶
func (p *PodConf) SetPodNetworkingConf(podNetworking *v1beta1.PodNetworking) error
SetPodNetworkingConf set config from podNetworking
Click to show internal directories.
Click to hide internal directories.