Skip to content

Commit 372a9b1

Browse files
committed
feat(tke): add taints para
1 parent 994b235 commit 372a9b1

8 files changed

+17
-41
lines changed

tencentcloud/services/apigateway/data_source_tc_api_gateway_api_app_api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ func DataSourceTencentCloudApiGatewayApiAppApi() *schema.Resource {
9595
Description: "API authentication type. Possible values are SECRET (key pair authentication), NONE (authentication-free), and OAUTH.",
9696
},
9797
"api_business_type": {
98-
Type: schema.TypeString,
99-
Computed: true,
98+
Type: schema.TypeString,
99+
Computed: true,
100100
Description: "Type of OAUTH API. Possible values are NORMAL (Business API), OAUTH (Authorization API).",
101101
},
102102
"auth_relation_api_id": {

tencentcloud/services/cfs/data_source_tc_cfs_available_zone.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ func DataSourceTencentCloudCfsAvailableZone() *schema.Resource {
7171
Elem: &schema.Resource{
7272
Schema: map[string]*schema.Schema{
7373
"sale_status": {
74-
Type: schema.TypeString,
75-
Computed: true,
74+
Type: schema.TypeString,
75+
Computed: true,
7676
Description: " Sale status. Valid values: sale_out (sold out), saling (purchasable), no_saling (non-purchasable).",
7777
},
7878
"protocol": {

tencentcloud/services/cos/data_source_tc_cos_bucket_inventorys.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func DataSourceTencentCloudCosBucketInventorys() *schema.Resource {
7878
},
7979
},
8080
"optional_fields": {
81-
Type: schema.TypeList,
82-
Optional: true,
81+
Type: schema.TypeList,
82+
Optional: true,
8383
Description: "Analysis items to include in the inventory result .",
8484
Elem: &schema.Resource{
8585
Schema: map[string]*schema.Schema{

tencentcloud/services/cos/resource_tc_cos_bucket_inventory.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ func ResourceTencentCloudCosBucketInventory() *schema.Resource {
8383
},
8484
},
8585
"optional_fields": {
86-
Type: schema.TypeList,
87-
MaxItems: 1,
88-
Optional: true,
86+
Type: schema.TypeList,
87+
MaxItems: 1,
88+
Optional: true,
8989
Description: "Analysis items to include in the inventory result .",
9090
Elem: &schema.Resource{
9191
Schema: map[string]*schema.Schema{

tencentcloud/services/monitor/data_source_tc_monitor_alarm_policy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ func DataSourceTencentCloudMonitorAlarmPolicy() *schema.Resource {
426426
Description: "Statistical period in seconds. The valid values can be queried via DescribeAlarmMetricsNote: this field may return null, indicating that no valid value is obtained.",
427427
},
428428
"operator": {
429-
Type: schema.TypeString,
430-
Computed: true,
429+
Type: schema.TypeString,
430+
Computed: true,
431431
Description: "Statistical period in seconds. The valid values can be queried via DescribeAlarmMetrics.Note: this field may return null, indicating that no valid value is obtained.Operator String No Operatorintelligent = intelligent detection without thresholdeq = equal toge = greater than or equal togt = greater thanle = less than or equal tolt = less thanne = not equal today_increase = day-on-day increaseday_decrease = day-on-day decreaseday_wave = day-on-day fluctuationweek_increase = week-on-week increaseweek_decrease = week-on-week decreaseweek_wave = week-on-week fluctuationcycle_increase = cyclical increasecycle_decrease = cyclical decreasecycle_wave = cyclical fluctuationre = regex matchThe valid values can be queried via DescribeAlarmMetrics.Note: this field may return null, indicating that no valid value is obtained.",
432432
},
433433
"value": {

tencentcloud/services/mps/data_source_tc_mps_schedules.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,16 @@ func DataSourceTencentCloudMpsSchedules() *schema.Resource {
118118
Description: "The region of the AWS S3 bucket.",
119119
},
120120
"dir": {
121-
Type: schema.TypeString,
122-
Computed: true,
121+
Type: schema.TypeString,
122+
Computed: true,
123123
Description: "The bucket directory bound. It must be an absolute path that starts and ends with `/`, such as `/movie/201907/`. If you do not specify this, the root directory will be bound. .",
124124
},
125125
"formats": {
126126
Type: schema.TypeSet,
127127
Elem: &schema.Schema{
128128
Type: schema.TypeString,
129129
},
130-
Computed: true,
130+
Computed: true,
131131
Description: "The file formats that will trigger the scheme, such as [mp4, flv, mov]. If you do not specify this, the upload of files in any format will trigger the scheme. .",
132132
},
133133
"s3_secret_id": {

tencentcloud/services/mps/resource_tc_mps_schedule.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@ func ResourceTencentCloudMpsSchedule() *schema.Resource {
9292
Description: "The region of the AWS S3 bucket.",
9393
},
9494
"dir": {
95-
Type: schema.TypeString,
96-
Optional: true,
95+
Type: schema.TypeString,
96+
Optional: true,
9797
Description: "The bucket directory bound. It must be an absolute path that starts and ends with `/`, such as `/movie/201907/`. If you do not specify this, the root directory will be bound. .",
9898
},
9999
"formats": {
100100
Type: schema.TypeSet,
101101
Elem: &schema.Schema{
102102
Type: schema.TypeString,
103103
},
104-
Optional: true,
104+
Optional: true,
105105
Description: "The file formats that will trigger the scheme, such as [mp4, flv, mov]. If you do not specify this, the upload of files in any format will trigger the scheme. .",
106106
},
107107
"s3_secret_id": {

tencentcloud/services/tke/resource_tc_kubernetes_cluster_attachment_extension.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -496,30 +496,6 @@ func tkeGetInstanceAdvancedPara(dMap map[string]interface{}, meta interface{}) (
496496
setting.PreStartUserScript = helper.String(v.(string))
497497
}
498498

499-
if v, ok := dMap["taints"]; ok {
500-
taints := v.([]interface{})
501-
setting.Taints = make([]*tke.Taint, len(taints))
502-
for i, d := range taints {
503-
taint := d.(map[string]interface{})
504-
var value, key, effect string
505-
if v, ok := taint["key"].(string); ok {
506-
key = v
507-
}
508-
if v, ok := taint["value"].(string); ok {
509-
value = v
510-
}
511-
if v, ok := taint["effect"].(string); ok {
512-
effect = v
513-
}
514-
taintItem := &tke.Taint{
515-
Key: &key,
516-
Value: &value,
517-
Effect: &effect,
518-
}
519-
setting.Taints[i] = taintItem
520-
}
521-
}
522-
523499
if v, ok := dMap["docker_graph_path"]; ok {
524500
setting.DockerGraphPath = helper.String(v.(string))
525501
}

0 commit comments

Comments
 (0)