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 ¶
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
Click to show internal directories.
Click to hide internal directories.