-
Notifications
You must be signed in to change notification settings - Fork 139
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
import cluster #2339
import cluster #2339
Conversation
@@ -1303,8 +1306,7 @@ func resourceTencentCloudTkeCluster() *schema.Resource { | |||
"cluster_as_enabled": { | |||
Type: schema.TypeBool, | |||
ForceNew: true, | |||
Optional: true, | |||
Default: false, | |||
Computed: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
字段不能同时 ForceNew 和 Computed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除ForceNew
Items []App `json:"items"` | ||
} | ||
|
||
type AppStatus struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这几个字段在腾讯云 SDK 里面没有定义吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sdk是没有相关的定义
Log *SwitchInfo `json:"Log,omitempty" name:"Log"` | ||
} | ||
|
||
type SwitchInfo struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这几个字段在腾讯云 SDK 没有定义吗
masters = append(masters, instanceInfo) | ||
} | ||
} | ||
goto getMoreData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否可以不用 goto
@@ -1596,6 +1597,9 @@ func resourceTencentCloudTkeCluster() *schema.Resource { | |||
} | |||
return | |||
}, | |||
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这段的意思是什么呢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
set up the cluster and import it into Terraform