-
Notifications
You must be signed in to change notification settings - Fork 162
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
CCE cluster supports deleting associated resources #1007
CCE cluster supports deleting associated resources #1007
Conversation
@Lance52259 the docs should also be updated |
docs/resources/cce_cluster.md
Outdated
@@ -163,6 +163,26 @@ The following arguments are supported: | |||
* `enterprise_project_id` - (Optional, String, ForceNew) The enterprise project id of the cce cluster. | |||
Changing this creates a new cluster. | |||
|
|||
* `delete_efs` - (Optional, String) Specified whether to delete the associated EFS resources. |
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.
it's better to be described as Specified whether to delete the associated EFS resources when deleting the CCE cluster.
@@ -242,6 +253,16 @@ func ResourceCCEClusterV3() *schema.Resource { | |||
} | |||
} | |||
|
|||
var associateDeleteSchema *schema.Schema = &schema.Schema{ |
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.
suggest to put the variable at the head of this file.
docs/resources/cce_cluster.md
Outdated
@@ -163,6 +163,27 @@ The following arguments are supported: | |||
* `enterprise_project_id` - (Optional, String, ForceNew) The enterprise project id of the cce cluster. | |||
Changing this creates a new cluster. | |||
|
|||
* `delete_efs` - (Optional, String) Specified whether to delete the associated EFS resources when deleting CCE cluster. | |||
valid value are "true", "try" and "false". Default is false. |
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.
s/value/values/g
What this PR does / why we need it:
CCE API supports deleting the associated resources when deleting an cluster now.
the associated resources contains:
In addition to the separate resource deletion option, it also supports the deletion of all the associated items of the above resources.
Which issue this PR fixes:
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer:
Release note:
PR Checklist
Acceptance Steps Performed