Skip to content

fix(tke): [123970928] tencentcloud_kubernetes_cluster support is_dual_stack #3394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3394.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_kubernetes_cluster: support `is_dual_stack`
```
11 changes: 11 additions & 0 deletions tencentcloud/services/tke/resource_tc_kubernetes_cluster.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ func resourceTencentCloudKubernetesClusterReadPostHandleResponse0(ctx context.Co
if cluster.ClusterNetworkSettings != nil {
clusterInfo.KubeProxyMode = helper.PString(cluster.ClusterNetworkSettings.KubeProxyMode)
clusterInfo.ServiceCIDR = helper.PString(cluster.ClusterNetworkSettings.ServiceCIDR)
clusterInfo.IsDualStack = helper.PBool(cluster.ClusterNetworkSettings.IsDualStack)
}
clusterInfo.ContainerRuntime = helper.PString(cluster.ContainerRuntime)
clusterInfo.OsCustomizeType = helper.PString(cluster.OsCustomizeType)
Expand Down Expand Up @@ -710,6 +711,7 @@ func resourceTencentCloudKubernetesClusterReadPostHandleResponse0(ctx context.Co
}

if importClsFlag {
_ = d.Set("is_dual_stack", clusterInfo.IsDualStack)
networkType, _ := data["NetworkType"].(string)
_ = d.Set("network_type", networkType)

Expand Down
1 change: 1 addition & 0 deletions tencentcloud/services/tke/service_tencentcloud_tke.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type ClusterAdvancedSettings struct {
BasePodNumber int64
ContainerRuntime string
RuntimeVersion string
IsDualStack bool
NodeNameType string
ExtraArgs ClusterExtraArgs
NetworkType string
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,7 @@ The following arguments are supported:
* `ignore_cluster_cidr_conflict` - (Optional, Bool, ForceNew) Indicates whether to ignore the cluster cidr conflict error. Default is false.
* `ignore_service_cidr_conflict` - (Optional, Bool, ForceNew) Indicates whether to ignore the service cidr conflict error. Only valid in `VPC-CNI` mode.
* `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.
* `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.
* `is_non_static_ip_mode` - (Optional, Bool, ForceNew) Indicates whether non-static ip mode is enabled. Default is false.
* `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.
* `labels` - (Optional, Map, ForceNew) Labels of tke cluster nodes.
Expand Down
Loading