azureutil

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEnvVarsForAzureManagedIdentity added in v0.1.52

func CreateEnvVarsForAzureManagedIdentity(azureClientID, azureTenantID, azureCertificateName string) []corev1.EnvVar

func CreateVolumeForAzureSecretStoreProviderClass added in v0.1.52

func CreateVolumeForAzureSecretStoreProviderClass(secretStoreVolumeName, secretProviderClassName string) corev1.Volume

func CreateVolumeMountForAzureSecretStoreProviderClass added in v0.1.52

func CreateVolumeMountForAzureSecretStoreProviderClass(secretStoreVolumeName string) corev1.VolumeMount

func GetKeyVaultAuthorizedUser added in v0.1.50

func GetKeyVaultAuthorizedUser() string

func GetNameAndResourceGroupFromNetworkSecurityGroupID

func GetNameAndResourceGroupFromNetworkSecurityGroupID(nsgID string) (string, string, error)

GetNameAndResourceGroupFromNetworkSecurityGroupID extracts the network security group (nsg) name and its resourrce group name from a nsg ID Example nsg ID: /subscriptions/<subscriptionID>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/networkSecurityGroups/<nsgName>

func GetSubnetNameFromSubnetID

func GetSubnetNameFromSubnetID(subnetID string) (string, error)

GetSubnetNameFromSubnetID extracts the subnet name from a subnet ID Example subnet ID: /subscriptions/<subscriptionID>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/virtualNetworks/<vnetName>/subnets/<subnetName>

func GetVnetInfoFromVnetID

func GetVnetInfoFromVnetID(ctx context.Context, vnetID string, subscriptionID string, azureCreds azcore.TokenCredential) (armnetwork.VirtualNetworksClientGetResponse, error)

GetVnetInfoFromVnetID extracts the full information on a VNET from a VNET ID by first getting the VNET name and its resource group's name and then using those parameters to query the full information on the VNET using Azure's SDK

func GetVnetNameAndResourceGroupFromVnetID

func GetVnetNameAndResourceGroupFromVnetID(vnetID string) (string, string, error)

GetVnetNameAndResourceGroupFromVnetID extracts the VNET name and its resource group from a VNET ID Example VNET ID: /subscriptions/<subscriptionID>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/virtualNetworks/<vnetName>

func IsAroHCP added in v0.1.50

func IsAroHCP() bool

IsAroHCP returns true if the managed service environment variable is set to ARO-HCP

func VerifyResourceGroupLocationsMatch added in v0.1.37

func VerifyResourceGroupLocationsMatch(ctx context.Context, hc *hyperv1.HostedCluster, credentialsSecret *corev1.Secret) error

VerifyResourceGroupLocationsMatch verifies the locations match for the VNET, network security group, and managed resource groups

Types

This section is empty.

Jump to

Keyboard shortcuts

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