Documentation
¶
Index ¶
- Variables
- func DeleteNamespace(kubeconfig, namespace string) error
- func DeletePod(kubeconfig, namespace, podName string) error
- func DeletePodNetwork(kubeconfig, pnName string) error
- func DeletePodNetworkInstance(kubeconfig, namespace, pniName string) error
- func EnsureNamespaceExists(kubeconfig, namespace string) error
- func ExecInPod(kubeconfig, namespace, podName, command string) (string, error)
- func GetClusterNodes(kubeconfig string) ([]string, error)
- func GetPodDelegatedIP(kubeconfig, namespace, podName string) (string, error)
- func GetPodIP(kubeconfig, namespace, podName string) (string, error)
- func GetSubnetARMID(rg, vnet, subnet string) (string, error)
- func GetSubnetGUID(rg, vnet, subnet string) (string, error)
- func GetVnetGUID(rg, vnet string) (string, error)
- func VerifyNoMTPNC(kubeconfig, buildID string) error
- func WaitForPodRunning(kubeconfig, namespace, podName string, maxRetries, sleepSeconds int) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrPodNotRunning = errors.New("pod did not reach Running state") ErrPodNoIP = errors.New("pod has no IP address assigned") ErrPodNoEth1IP = errors.New("pod has no eth1 IP address (delegated subnet not configured?)") ErrPodContainerNotReady = errors.New("pod container not ready") ErrMTPNCStuckDeletion = errors.New("MTPNC resources should have been deleted but were found") ErrPodDeletionFailed = errors.New("pod still exists after deletion attempts") ErrPNIDeletionFailed = errors.New("PodNetworkInstance still exists after deletion attempts") ErrPNDeletionFailed = errors.New("PodNetwork still exists after deletion attempts") ErrNamespaceDeletionFailed = errors.New("namespace still exists after deletion attempts") )
Functions ¶
func DeleteNamespace ¶
DeleteNamespace deletes a namespace and waits for it to be removed
func DeletePod ¶
DeletePod deletes a pod in the specified namespace and waits for it to be fully removed
func DeletePodNetwork ¶
func EnsureNamespaceExists ¶
EnsureNamespaceExists checks if a namespace exists and creates it if it doesn't
func GetClusterNodes ¶
GetClusterNodes returns a slice of node names from a cluster using the given kubeconfig
func GetPodDelegatedIP ¶
GetPodDelegatedIP retrieves the eth1 IP address (delegated subnet IP) of a pod This is the IP used for cross-VNet communication and is subject to NSG rules
func GetSubnetARMID ¶
func GetSubnetGUID ¶
func GetVnetGUID ¶
func VerifyNoMTPNC ¶
VerifyNoMTPNC checks if there are any pending MTPNC (MultiTenantPodNetworkConfig) resources associated with a specific build ID that should have been cleaned up
func WaitForPodRunning ¶
WaitForPodRunning waits for a pod to reach Running state with retries
Types ¶
This section is empty.