runner

package
v0.0.0-...-e7f266b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SubscriptionIDVarName is the name of the subscriptionId
	SubscriptionIDVarName = "subscriptionId"

	// ResourceGroupNameVarName is the name of the applicationGatewayResourceGroup
	ResourceGroupNameVarName = "applicationGatewayResourceGroup"

	// AppGwNameVarName is the name of the applicationGatewayName
	AppGwNameVarName = "applicationGatewayName"

	// KubeConfigVarName is the name of the KUBECONFIG
	KubeConfigVarName = "KUBECONFIG"

	// ObjectIDVarName is the name of the identityObjectId
	ObjectIDVarName = "identityObjectId"

	// AzureAuthLocationVarName is the name of the AZURE_AUTH_LOCATION
	AzureAuthLocationVarName = "AZURE_AUTH_LOCATION"

	// SubResourceNamePrefixVarName is the name of the subResourceNamePrefix
	SubResourceNamePrefixVarName = "subResourceNamePrefix"
)
View Source
const (
	// KubeConfigEnvVar is the environment variable for KUBECONFIG.
	KubeConfigEnvVar = "KUBECONFIG"

	// AGICNamespace is namespace where AGIC is installed
	AGICNamespace = "agic"

	// Contributor is the role definition ID for the corresponding role in AAD
	Contributor = "b24988ac-6180-42a0-ab88-20f7382dd24c"

	// UserAgent is the user agent used when making Azure requests
	UserAgent = "ingress-appgw-e2e"
)

Variables

View Source
var (

	// UseNetworkingV1Ingress specifies whether to use ingress networking/v1 to parse the ingress resource
	UseNetworkingV1Ingress bool

	// UseNetworkingV1Ingress specifies whether to use ingress extensions/v1beta1 to parse the ingress resource
	UseExtensionsV1Beta1Ingress bool
)

Functions

func GetEnvironmentVariable

func GetEnvironmentVariable(environmentVariable, defaultValue string, validator *regexp.Regexp) string

GetEnvironmentVariable is an augmentation of os.Getenv, providing it with a default value.

Types

type EnvVariables

type EnvVariables struct {
	SubscriptionID        string
	ResourceGroupName     string
	AppGwName             string
	SubResourceNamePrefix string
	KubeConfigFilePath    string
	ObjectID              string
	AzureAuthLocation     string
}

EnvVariables is a struct storing values for environment variables.

func GetEnv

func GetEnv() *EnvVariables

GetEnv returns values for defined environment variables for Ingress Controller.

func (*EnvVariables) GetApplicationGatewayResourceID

func (env *EnvVariables) GetApplicationGatewayResourceID() string

GetApplicationGatewayResourceID returns gateway's resource id

func (*EnvVariables) GetResourceGroupID

func (env *EnvVariables) GetResourceGroupID() string

GetResourceGroupID returns group's resource id

Jump to

Keyboard shortcuts

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