Skip to content

Commit

Permalink
Updated the support for Provider cloud type
Browse files Browse the repository at this point in the history
  • Loading branch information
Shifna12Zarnaz committed Jun 7, 2024
1 parent 3b28847 commit 81054af
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,21 +273,21 @@ func (cp *CrossPlaneApp) createProviderConfigResource(provider agentmodel.Crossp
secretPath := fmt.Sprintf("%s/%s/%s", credentials.GenericCredentialType, cp.cfg.CloudProviderEntityName, provider.CloudProviderId)

switch provider.CloudType {
case "AWS":
case "AWS", "aws":
providerConfigString := fmt.Sprintf(
crossplaneAWSProviderTemplate,
cloudType, secretPath, secretPath,
cloudType, pkg, cloudType,
)
return providerConfigString, nil
case "GCP":
case "GCP", "gcp":
providerConfigString := fmt.Sprintf(
crossplaneGCPProviderTemplate,
cloudType, secretPath, secretPath,
cloudType, pkg, cloudType,
)
return providerConfigString, nil
case "AZURE":
case "AZURE", "azure":
providerConfigString := fmt.Sprintf(
crossplaneAzureProviderTemplate,
cloudType, pkg,
Expand Down

0 comments on commit 81054af

Please sign in to comment.