Skip to content

Commit 23c6137

Browse files
authored
fix(tke): [123970928] tencentcloud_kubernetes_cluster support is_dual_stack (#3394)
* add * add * add
1 parent b054381 commit 23c6137

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

.changelog/3394.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_kubernetes_cluster: support `is_dual_stack`
3+
```

tencentcloud/services/tke/resource_tc_kubernetes_cluster.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tencentcloud/services/tke/resource_tc_kubernetes_cluster_extension.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ func resourceTencentCloudKubernetesClusterReadPostHandleResponse0(ctx context.Co
557557
if cluster.ClusterNetworkSettings != nil {
558558
clusterInfo.KubeProxyMode = helper.PString(cluster.ClusterNetworkSettings.KubeProxyMode)
559559
clusterInfo.ServiceCIDR = helper.PString(cluster.ClusterNetworkSettings.ServiceCIDR)
560+
clusterInfo.IsDualStack = helper.PBool(cluster.ClusterNetworkSettings.IsDualStack)
560561
}
561562
clusterInfo.ContainerRuntime = helper.PString(cluster.ContainerRuntime)
562563
clusterInfo.OsCustomizeType = helper.PString(cluster.OsCustomizeType)
@@ -710,6 +711,7 @@ func resourceTencentCloudKubernetesClusterReadPostHandleResponse0(ctx context.Co
710711
}
711712

712713
if importClsFlag {
714+
_ = d.Set("is_dual_stack", clusterInfo.IsDualStack)
713715
networkType, _ := data["NetworkType"].(string)
714716
_ = d.Set("network_type", networkType)
715717

tencentcloud/services/tke/service_tencentcloud_tke.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ type ClusterAdvancedSettings struct {
5050
BasePodNumber int64
5151
ContainerRuntime string
5252
RuntimeVersion string
53+
IsDualStack bool
5354
NodeNameType string
5455
ExtraArgs ClusterExtraArgs
5556
NetworkType string

website/docs/r/kubernetes_cluster.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,7 @@ The following arguments are supported:
949949
* `ignore_cluster_cidr_conflict` - (Optional, Bool, ForceNew) Indicates whether to ignore the cluster cidr conflict error. Default is false.
950950
* `ignore_service_cidr_conflict` - (Optional, Bool, ForceNew) Indicates whether to ignore the service cidr conflict error. Only valid in `VPC-CNI` mode.
951951
* `instance_delete_mode` - (Optional, String) The strategy for deleting cluster instances: terminate (destroy instances, only support pay as you go cloud host instances) retain (remove only, keep instances), Default is terminate.
952+
* `is_dual_stack` - (Optional, Bool, ForceNew) In the VPC-CNI mode of the cluster, the dual stack cluster status defaults to false, indicating a non dual stack cluster.
952953
* `is_non_static_ip_mode` - (Optional, Bool, ForceNew) Indicates whether non-static ip mode is enabled. Default is false.
953954
* `kube_proxy_mode` - (Optional, String) Cluster kube-proxy mode, the available values include: 'kube-proxy-bpf'. Default is not set.When set to kube-proxy-bpf, cluster version greater than 1.14 and with Tencent Linux 2.4 is required.
954955
* `labels` - (Optional, Map, ForceNew) Labels of tke cluster nodes.

0 commit comments

Comments
 (0)