Skip to content
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

Merged
merged 1 commit into from
Mar 30, 2021
Merged

CCE cluster supports deleting associated resources #1007

merged 1 commit into from
Mar 30, 2021

Conversation

Lance52259
Copy link
Contributor

@Lance52259 Lance52259 commented Mar 25, 2021

What this PR does / why we need it:

  • CCE API supports deleting the associated resources when deleting an cluster now.
    the associated resources contains:

    • EFS
    • ENI
    • EVS
    • NET
    • OBS
    • SFS

    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)

NONE

Special notes for your reviewer:

Release note:

1. add associated resources delete parameters, like efs, eni, evs, net, obs and sfs.
2. support the deletion of all associated resources.

PR Checklist

  • Tests added/passed.
  • Documentation updated.
  • Schema updated.

Acceptance Steps Performed

NONE

@ShiChangkuo
Copy link
Collaborator

@Lance52259 the docs should also be updated

@@ -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.
Copy link
Collaborator

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{
Copy link
Collaborator

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.

@@ -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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/value/values/g

@ShiChangkuo ShiChangkuo merged commit 696c783 into huaweicloud:master Mar 30, 2021
@Lance52259 Lance52259 deleted the br_cce_associate_delete_active branch April 2, 2021 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants