Skip to content

Commit

Permalink
ResourceGroup.azure example manifest now uses a randomized name
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Nov 15, 2023
1 parent 36a8263 commit cc15a2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/azure/resourcegroup.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
name: example-resources
name: example-resources-${Rand.RFC1123Subdomain}
spec:
forProvider:
location: "West Europe"
Expand Down
6 changes: 5 additions & 1 deletion internal/clients/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ func TerraformSetupBuilder(version, providerSource, providerVersion string, sche
func configureNoForkAzureClient(ctx context.Context, pc *v1beta1.ProviderConfig, ps *terraform.Setup) error {
cb := xpprovider.AzureClientBuilder{}
switch pc.Spec.Credentials.Source { //nolint:exhaustive
case xpv1.CredentialsSourceSecret:
// TODO: we need to add support for the other schemes
case credentialsSourceSystemAssignedManagedIdentity, credentialsSourceUserAssignedManagedIdentity:
case credentialsSourceOIDCTokenFile:
case credentialsSourceUpbound:
default:
cb.SubscriptionID = ps.Configuration[keySubscriptionID].(string)
cb.AuthConfig = &auth.Credentials{
ClientID: ps.Configuration[keyClientID].(string),
Expand Down

0 comments on commit cc15a2e

Please sign in to comment.