hierarchy

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeploymentNameFromPod added in v0.2.1

func GetDeploymentNameFromPod(ctx context.Context, r client.Reader, ns string, pod *corev1.Pod) (string, error)

GetDeploymentNameFromPod retrieves the name of the Deployment owning the given pod.

func GetDeploymentSelector

func GetDeploymentSelector(ctx context.Context, r client.Reader) (labels.Selector, error)

GetDeploymentSelector retrieves the selector for the owning Deployment of the pod.

func GetPeers

func GetPeers(ctx context.Context, r client.Reader) (map[string]string, error)

GetPeers returns a map of peer IPs and their associated names.

func GetPeersFrom

func GetPeersFrom(ep *corev1.Endpoints) map[string]string

GetPeersFrom extracts peer IPs and their names from the given Endpoints object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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