Skip to content

Commit

Permalink
Merge pull request #60 from volcengine/feat/vke
Browse files Browse the repository at this point in the history
Feat/vke
  • Loading branch information
xuyaming0800 authored Feb 16, 2023
2 parents ae748c2 + 429ff8f commit 43767c1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/common_volcengine_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package common

const (
TerraformProviderName = "terraform-provider-volcengine"
TerraformProviderVersion = "0.0.49"
TerraformProviderVersion = "0.0.50"
)
9 changes: 6 additions & 3 deletions volcengine/vke/cluster/resource_volcengine_vke_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,12 @@ func ResourceVolcengineVkeCluster() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"vpc_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return true
},
Description: "The private network where the cluster control plane network resides.",
},
"subnet_ids": {
Expand Down
6 changes: 6 additions & 0 deletions volcengine/vke/cluster/service_volcengine_vke_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ func (s *VolcengineVkeClusterService) CreateResource(resourceData *schema.Resour
"subnet_ids": {
ConvertType: ve.ConvertJsonArray,
},
"vpc_id": {
Ignore: true,
},
},
},
},
Expand Down Expand Up @@ -428,6 +431,9 @@ func (s *VolcengineVkeClusterService) ModifyResource(resourceData *schema.Resour
"subnet_ids": {
ConvertType: ve.ConvertJsonArray,
},
"vpc_id": {
Ignore: true,
},
},
},
},
Expand Down

0 comments on commit 43767c1

Please sign in to comment.