Documentation ¶
Index ¶
- Variables
- func CheckObjectExistence(ctx context.Context, c client.Reader, namespacedName types.NamespacedName, ...) (bool, error)
- func DetectNetworkAttachmentOfNode(ctx context.Context, client client.Reader, node *corev1.Node) (underlayAttached, overlayAttached bool, err error)
- func FindBGPUnderlayNetworkForNode(ctx context.Context, client client.Reader, nodeLabels map[string]string) (underlayNetworkName string, err error)
- func FindGlobalBGPNetwork(ctx context.Context, client client.Reader) (globalBGPNetworkName string, err error)
- func FindOverlayNetwork(ctx context.Context, client client.Reader) (overlayNetworkName string, err error)
- func FindOverlayNetworkNetID(ctx context.Context, client client.Reader) (*int32, error)
- func FindUnderlayNetworkForNode(ctx context.Context, client client.Reader, nodeLabels map[string]string) (underlayNetworkName string, err error)
- func FindUnderlayNetworkForNodeName(ctx context.Context, client client.Reader, nodeName string) (underlayNetworkName string, err error)
- func GetClusterUUID(ctx context.Context, c client.Reader) (types.UID, error)
- func GetIndexFromName(name string) int
- func GetNetwork(ctx context.Context, client client.Reader, name string) (*networkingv1.Network, error)
- func GetPod(ctx context.Context, client client.Reader, name, namespace string) (*corev1.Pod, error)
- func GetRemoteCluster(ctx context.Context, client client.Reader, name string) (*multiclusterv1.RemoteCluster, error)
- func GetSubnet(ctx context.Context, client client.Reader, name string) (*networkingv1.Subnet, error)
- func ListActiveNodesToNames(ctx context.Context, client client.Reader, opts ...client.ListOption) ([]string, error)
- func ListActiveSubnetsToNames(ctx context.Context, client client.Reader, opts ...client.ListOption) ([]string, error)
- func ListAllocatedIPInstances(ctx context.Context, c client.Reader, opts ...client.ListOption) (ips []*networkingv1.IPInstance, err error)
- func ListAllocatedIPInstancesOfPod(ctx context.Context, c client.Reader, pod *corev1.Pod) (ips []*networkingv1.IPInstance, err error)
- func ListIPInstances(ctx context.Context, client client.Reader, opts ...client.ListOption) (*networkingv1.IPInstanceList, error)
- func ListNetworks(ctx context.Context, client client.Reader, opts ...client.ListOption) (*networkingv1.NetworkList, error)
- func ListRemoteClusters(ctx context.Context, client client.Reader, opts ...client.ListOption) (*multiclusterv1.RemoteClusterList, error)
- func ListRemoteSubnets(ctx context.Context, client client.Reader, opts ...client.ListOption) (*multiclusterv1.RemoteSubnetList, error)
- func ListRemoteVteps(ctx context.Context, client client.Reader, opts ...client.ListOption) (*multiclusterv1.RemoteVtepList, error)
- func ListSubnets(ctx context.Context, client client.Reader, opts ...client.ListOption) (*networkingv1.SubnetList, error)
- func NetworkTypePredicate(networkType networkingv1.NetworkType) predicate.Predicate
- func NewRestConfigFromRemoteCluster(remoteCluster *multiclusterv1.RemoteCluster) (*rest.Config, error)
- func PodIsCompleted(pod *v1.Pod) bool
- func PodIsEvicted(pod *v1.Pod) bool
- func PodIsScheduled(pod *v1.Pod) bool
- func ToIPFormat(name string) string
- type IPInstancePhaseChangePredicate
- type IgnoreDeletePredicate
- type IgnoreUpdatePredicate
- type NetworkOfNodeChangePredicate
- type NetworkSpecChangePredicate
- type NetworkStatusChangePredicate
- type RemoteClusterUUIDChangePredicate
- type SpecifiedAnnotationChangedPredicate
- type SpecifiedLabelChangedPredicate
- type SubnetSpecChangePredicate
- type TerminatingPredicate
Constants ¶
This section is empty.
Variables ¶
View Source
var ParseNetworkConfigOfPodByPriority = utils.ParseNetworkConfigOfPodByPriority
View Source
var (
ToDNSFormat = utils.ToDNSFormat
)
Functions ¶
func CheckObjectExistence ¶ added in v0.7.0
func FindBGPUnderlayNetworkForNode ¶ added in v0.5.0
func FindGlobalBGPNetwork ¶ added in v0.5.0
func FindOverlayNetwork ¶
func FindOverlayNetworkNetID ¶
func GetIndexFromName ¶
func GetNetwork ¶
func GetRemoteCluster ¶
func GetRemoteCluster(ctx context.Context, client client.Reader, name string) (*multiclusterv1.RemoteCluster, error)
func ListActiveNodesToNames ¶ added in v0.7.0
func ListActiveSubnetsToNames ¶ added in v0.7.0
func ListAllocatedIPInstances ¶ added in v0.6.0
func ListAllocatedIPInstances(ctx context.Context, c client.Reader, opts ...client.ListOption) (ips []*networkingv1.IPInstance, err error)
ListAllocatedIPInstances will list allocated (non-terminating) IPInstances by some specified filters
func ListAllocatedIPInstancesOfPod ¶
func ListAllocatedIPInstancesOfPod(ctx context.Context, c client.Reader, pod *corev1.Pod) (ips []*networkingv1.IPInstance, err error)
func ListIPInstances ¶
func ListIPInstances(ctx context.Context, client client.Reader, opts ...client.ListOption) (*networkingv1.IPInstanceList, error)
func ListNetworks ¶
func ListNetworks(ctx context.Context, client client.Reader, opts ...client.ListOption) (*networkingv1.NetworkList, error)
func ListRemoteClusters ¶
func ListRemoteClusters(ctx context.Context, client client.Reader, opts ...client.ListOption) (*multiclusterv1.RemoteClusterList, error)
func ListRemoteSubnets ¶
func ListRemoteSubnets(ctx context.Context, client client.Reader, opts ...client.ListOption) (*multiclusterv1.RemoteSubnetList, error)
func ListRemoteVteps ¶
func ListRemoteVteps(ctx context.Context, client client.Reader, opts ...client.ListOption) (*multiclusterv1.RemoteVtepList, error)
func ListSubnets ¶
func ListSubnets(ctx context.Context, client client.Reader, opts ...client.ListOption) (*networkingv1.SubnetList, error)
func NetworkTypePredicate ¶ added in v0.7.0
func NetworkTypePredicate(networkType networkingv1.NetworkType) predicate.Predicate
func NewRestConfigFromRemoteCluster ¶
func NewRestConfigFromRemoteCluster(remoteCluster *multiclusterv1.RemoteCluster) (*rest.Config, error)
func PodIsCompleted ¶
func PodIsEvicted ¶
func PodIsScheduled ¶ added in v0.7.7
func ToIPFormat ¶
Types ¶
type IPInstancePhaseChangePredicate ¶
func (IPInstancePhaseChangePredicate) Update ¶
func (IPInstancePhaseChangePredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for checking whether IPInstance phase change
type IgnoreDeletePredicate ¶
IgnoreDeletePredicate will ignore the delete event, if finalizer is used, this predicate will help to reduce reconciliation count
func (IgnoreDeletePredicate) Delete ¶
func (IgnoreDeletePredicate) Delete(e event.DeleteEvent) bool
type IgnoreUpdatePredicate ¶
IgnoreUpdatePredicate will ignore the update event
func (IgnoreUpdatePredicate) Update ¶
func (IgnoreUpdatePredicate) Update(e event.UpdateEvent) bool
type NetworkOfNodeChangePredicate ¶
type NetworkOfNodeChangePredicate struct { Context context.Context Client client.Client predicate.Funcs }
func (NetworkOfNodeChangePredicate) Update ¶
func (n NetworkOfNodeChangePredicate) Update(e event.UpdateEvent) bool
type NetworkSpecChangePredicate ¶
func (NetworkSpecChangePredicate) Update ¶
func (NetworkSpecChangePredicate) Update(e event.UpdateEvent) bool
type NetworkStatusChangePredicate ¶
func (NetworkStatusChangePredicate) Update ¶
func (NetworkStatusChangePredicate) Update(e event.UpdateEvent) bool
type RemoteClusterUUIDChangePredicate ¶
func (RemoteClusterUUIDChangePredicate) Update ¶
func (RemoteClusterUUIDChangePredicate) Update(e event.UpdateEvent) bool
type SpecifiedAnnotationChangedPredicate ¶
func (SpecifiedAnnotationChangedPredicate) Update ¶
func (s SpecifiedAnnotationChangedPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating specified annotations change
type SpecifiedLabelChangedPredicate ¶
func (SpecifiedLabelChangedPredicate) Update ¶
func (s SpecifiedLabelChangedPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating specified annotations change
type SubnetSpecChangePredicate ¶
func (SubnetSpecChangePredicate) Update ¶
func (SubnetSpecChangePredicate) Update(e event.UpdateEvent) bool
type TerminatingPredicate ¶
func (TerminatingPredicate) Create ¶
func (TerminatingPredicate) Create(e event.CreateEvent) bool
func (TerminatingPredicate) Update ¶
func (TerminatingPredicate) Update(e event.UpdateEvent) bool
Click to show internal directories.
Click to hide internal directories.