From 2dbae5c734e879759080fe87ef9463230ce10d8b Mon Sep 17 00:00:00 2001 From: Max Xu Date: Mon, 16 Dec 2024 20:38:50 +0800 Subject: [PATCH] feat: support azure byon (#92) ## Motivation Azure BYON is now supported. --- cloud/resource_cloud_environment.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cloud/resource_cloud_environment.go b/cloud/resource_cloud_environment.go index ff6cf88..4a86043 100644 --- a/cloud/resource_cloud_environment.go +++ b/cloud/resource_cloud_environment.go @@ -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 {