Skip to content

Commit

Permalink
feat: support azure byon (#92)
Browse files Browse the repository at this point in the history
## Motivation
Azure BYON is now supported.
  • Loading branch information
maxsxu authored Dec 16, 2024
1 parent 61603fe commit 2dbae5c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cloud/resource_cloud_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,6 @@ func resourceCloudEnvironmentCreate(ctx context.Context, d *schema.ResourceData,
return diag.FromErr(fmt.Errorf("ERROR_CREATE_CLOUD_ENVIRONMENT: " + "One of network.id or network.cidr must be set"))
}

if cloudEnvironment.Spec.Network.ID != "" {
if cc.Spec.ConnectionType == cloudv1alpha1.ConnectionTypeAzure {
return diag.FromErr(fmt.Errorf("ERROR_CREATE_CLOUD_ENVIRONMENT: Azure doesn't support specify network id yet. Please use network cidr"))
}
}

expandDns := func() error {
for _, l := range dns {
if l == nil {
Expand Down

0 comments on commit 2dbae5c

Please sign in to comment.