utils

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AzureClientIDEnv           = "AZURE_CLIENT_ID"
	AzureClientSecretEnv       = "AZURE_CLIENT_SECRET"
	ManagedIdentityClientIDEnv = "AZURE_MANAGED_IDENTITY_CLIENT_ID"
	SubscriptionIDEnv          = "AZURE_SUBSCRIPTION_ID"
	TenantIDEnv                = "AZURE_TENANT_ID"
)

Variables

This section is empty.

Functions

func CreateAzureClients

func CreateAzureClients() (azclient.ClientFactory, error)

func CreateCurlPodManifest

func CreateCurlPodManifest(nsName, gwName, curlTarget string) *corev1.Pod

func CreateK8sClient

func CreateK8sClient() (k8sClient client.Client, podLogClient clientset.Interface, err error)

func CreateK8sObject

func CreateK8sObject(obj client.Object, c client.Client) error

func CreateNamespace

func CreateNamespace(namespaceName string, c client.Client) error

func CreateNginxPodManifest

func CreateNginxPodManifest(nsName, gwName string) *corev1.Pod

func DeleteNamespace

func DeleteNamespace(namespaceName string, c client.Client) error

func GetExpectedPodLog

func GetExpectedPodLog(pod *corev1.Pod, c clientset.Interface, expectLogRegex *regexp.Regexp) (string, error)

func GetGatewayVmssProfile

func GetGatewayVmssProfile(c client.Client) (resourceGroup, vmssName, location string, prefixLen int32, err error)

func Logf

func Logf(format string, args ...interface{})

Logf prints info logs

func WaitGetPodIP

func WaitGetPodIP(pod *corev1.Pod, c clientset.Interface) (string, error)

func WaitPipPrefixDeletion

func WaitPipPrefixDeletion(resourceGroup, pipName string, c publicipprefixclient.Interface) error

func WaitStaticGatewayDeletion

func WaitStaticGatewayDeletion(sgw *v1alpha1.StaticGatewayConfiguration, c client.Client) error

func WaitStaticGatewayProvision

func WaitStaticGatewayProvision(sgw *v1alpha1.StaticGatewayConfiguration, c client.Client) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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