@@ -92,6 +92,79 @@ func tkeClusterInfo() map[string]*schema.Schema {
92
92
Computed : true ,
93
93
Description : "The maximum number of services in the cluster." ,
94
94
},
95
+ "cluster_as_enabled" : {
96
+ Type : schema .TypeBool ,
97
+ Computed : true ,
98
+ Description : "Indicates whether to enable cluster node auto scaler." ,
99
+ },
100
+ "node_name_type" : {
101
+ Type : schema .TypeString ,
102
+ Computed : true ,
103
+ Description : "Node name type of Cluster." ,
104
+ },
105
+ "cluster_extra_args" : {
106
+ Type : schema .TypeList ,
107
+ Computed : true ,
108
+ Elem : & schema.Resource {
109
+ Schema : map [string ]* schema.Schema {
110
+ "kube_apiserver" : {
111
+ Type : schema .TypeList ,
112
+ Computed : true ,
113
+ Elem : & schema.Schema {Type : schema .TypeString },
114
+ Description : "The customized parameters for kube-apiserver." ,
115
+ },
116
+ "kube_controller_manager" : {
117
+ Type : schema .TypeList ,
118
+ Computed : true ,
119
+ Elem : & schema.Schema {Type : schema .TypeString },
120
+ Description : "The customized parameters for kube-controller-manager." ,
121
+ },
122
+ "kube_scheduler" : {
123
+ Type : schema .TypeList ,
124
+ Computed : true ,
125
+ Elem : & schema.Schema {Type : schema .TypeString },
126
+ Description : "The customized parameters for kube-scheduler." ,
127
+ },
128
+ },
129
+ },
130
+ Description : "Customized parameters for master component." ,
131
+ },
132
+ "network_type" : {
133
+ Type : schema .TypeString ,
134
+ Computed : true ,
135
+ Description : "Cluster network type." ,
136
+ },
137
+ "is_non_static_ip_mode" : {
138
+ Type : schema .TypeBool ,
139
+ Computed : true ,
140
+ Description : "Indicates whether static ip mode is enabled." ,
141
+ },
142
+ "kube_proxy_mode" : {
143
+ Type : schema .TypeString ,
144
+ Computed : true ,
145
+ Description : "Cluster kube-proxy mode." ,
146
+ },
147
+ "service_cidr" : {
148
+ Type : schema .TypeString ,
149
+ Computed : true ,
150
+ Description : "The network address block of the cluster." ,
151
+ },
152
+ "eni_subnet_ids" : {
153
+ Type : schema .TypeList ,
154
+ Computed : true ,
155
+ Elem : & schema.Schema {Type : schema .TypeString },
156
+ Description : "Subnet Ids for cluster with VPC-CNI network mode." ,
157
+ },
158
+ "claim_expired_seconds" : {
159
+ Type : schema .TypeInt ,
160
+ Computed : true ,
161
+ Description : "The expired seconds to recycle ENI." ,
162
+ },
163
+ "deletion_protection" : {
164
+ Type : schema .TypeBool ,
165
+ Computed : true ,
166
+ Description : "Indicates whether cluster deletion protection is enabled." ,
167
+ },
95
168
"cluster_node_num" : {
96
169
Type : schema .TypeInt ,
97
170
Computed : true ,
@@ -227,7 +300,12 @@ LOOP:
227
300
infoMap ["cluster_ipvs" ] = info .Ipvs
228
301
infoMap ["cluster_as_enabled" ] = info .AsEnabled
229
302
infoMap ["node_name_type" ] = info .NodeNameType
230
- infoMap ["cluster_extra_args" ] = info .ExtraArgs
303
+
304
+ infoMap ["cluster_extra_args" ] = []map [string ]interface {}{{
305
+ "kube_apiserver" : info .ExtraArgs .KubeAPIServer ,
306
+ "kube_controller_manager" : info .ExtraArgs .KubeControllerManager ,
307
+ "kube_scheduler" : info .ExtraArgs .KubeScheduler ,
308
+ }}
231
309
infoMap ["network_type" ] = info .NetworkType
232
310
infoMap ["is_non_static_ip_mode" ] = info .IsNonStaticIpMode
233
311
infoMap ["deletion_protection" ] = info .DeletionProtection
0 commit comments