Skip to content

Commit 0026fba

Browse files
fix(cce): deprecate parameter support_istio in cluster (#6136)
1 parent f2717a9 commit 0026fba

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/resources/cce_cluster.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,6 @@ The following arguments are supported:
286286
* `ipv6_enable` - (Optional, Bool, ForceNew) Specifies whether to enable IPv6 in the cluster.
287287
Changing this parameter will create a new cluster resource.
288288

289-
* `support_istio` - (Optional, Bool, ForceNew) Specifies whether to support Istio in the cluster.
290-
Changing this parameter will create a new cluster resource.
291-
292289
* `extend_params` - (Optional, List, ForceNew) Specifies the extended parameter.
293290
The [object](#cce_cluster_extend_params) structure is documented below.
294291
Changing this parameter will create a new cluster resource.
@@ -418,6 +415,8 @@ In addition to all arguments above, the following attributes are exported:
418415

419416
* `kube_config_raw` - Raw Kubernetes config to be used by kubectl and other compatible tools.
420417

418+
* `support_istio` - Whether Istio is supported in the cluster.
419+
421420
The `certificate_clusters` block supports:
422421

423422
* `name` - The cluster name.

huaweicloud/services/cce/resource_huaweicloud_cce_cluster.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,6 @@ func ResourceCluster() *schema.Resource {
342342
ForceNew: true,
343343
Computed: true,
344344
},
345-
"support_istio": {
346-
Type: schema.TypeBool,
347-
Optional: true,
348-
ForceNew: true,
349-
Computed: true,
350-
},
351345
"tags": common.TagsSchema(),
352346

353347
// charge info: charging_mode, period_unit, period, auto_renew, auto_pay
@@ -386,6 +380,14 @@ func ResourceCluster() *schema.Resource {
386380
Type: schema.TypeString,
387381
Computed: true,
388382
},
383+
"support_istio": {
384+
Type: schema.TypeBool,
385+
Optional: true,
386+
Computed: true,
387+
Description: utils.SchemaDesc("", utils.SchemaDescInput{
388+
Computed: true,
389+
}),
390+
},
389391
"certificate_clusters": {
390392
Type: schema.TypeList,
391393
Computed: true,
@@ -697,7 +699,6 @@ func resourceClusterCreate(ctx context.Context, d *schema.ResourceData, meta int
697699
CustomSan: utils.ExpandToStringList(d.Get("custom_san").([]interface{})),
698700
IPv6Enable: d.Get("ipv6_enable").(bool),
699701
KubeProxyMode: d.Get("kube_proxy_mode").(string),
700-
SupportIstio: d.Get("support_istio").(bool),
701702
},
702703
}
703704

0 commit comments

Comments
 (0)