Skip to content

Commit

Permalink
feat: Add cluster delete mode (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzottola authored Oct 4, 2023
1 parent 341d67f commit 5a78088
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/resources/OrganizationClusterRef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ delete:
parameters:
- $ref: '../parameters/path/organizationId.yaml'
- $ref: '../parameters/path/clusterId.yaml'
- in: query
name: deleteMode
schema:
$ref: '../schemas/enums/ClusterDeleteMode.yaml'
tags:
- Clusters
responses:
Expand Down
13 changes: 13 additions & 0 deletions src/schemas/enums/ClusterDeleteMode.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type: string
description: |
Indicates the mode to apply on cluster deletion
**"hard delete"** means that we delete directly from our database, this is different from a **"trigger delete"** that cleans the resource
- `DEFAULT`: this is the normal way, trigger delete the cluster only if no environment linked to this cluster remains
- `DELETE_CLUSTER_AND_QOVERY_CONFIG`: hard delete environments linked to this cluster then trigger delete the cluster
- `DELETE_QOVERY_CONFIG`: hard delete environments linked to this cluster then hard delete the cluster
enum:
- DEFAULT
- DELETE_CLUSTER_AND_QOVERY_CONFIG
- DELETE_QOVERY_CONFIG
example: DEFAULT
default: DEFAULT

0 comments on commit 5a78088

Please sign in to comment.