Skip to content

Commit a59f2d4

Browse files
authored
Merge pull request #5 from upbound/feature/deleteNodesOnDisconnect
feat(delete): add boolean deleteNodesOnDisconnect
2 parents 7afbd57 + 7246368 commit a59f2d4

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

apis/fullaccess/composition.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,13 @@ spec:
482482
base:
483483
apiVersion: castai.aws.platform.upbound.io/v1alpha1
484484
kind: XReadOnly
485-
spec:
486-
parameters:
487-
deleteNodesOnDisconnect: false
488485
patches:
489486
- type: FromCompositeFieldPath
490487
fromFieldPath: spec.parameters.id
491488
toFieldPath: metadata.name
489+
- type: FromCompositeFieldPath
490+
fromFieldPath: spec.parameters.deleteNodesOnDisconnect
491+
toFieldPath: spec.parameters.deleteNodesOnDisconnect
492492
- type: FromCompositeFieldPath
493493
fromFieldPath: spec.parameters.region
494494
toFieldPath: spec.parameters.region

apis/fullaccess/definition.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ spec:
3636
id:
3737
type: string
3838
description: ID of this Cluster that other objects will use to refer to it.
39+
deleteNodesOnDisconnect:
40+
type: boolean
41+
description: "Delete Nodes on Disconnect"
42+
default: false
3943
clusterName:
4044
type: string
4145
description: "EKS ClusterName"
@@ -73,6 +77,7 @@ spec:
7377
- securityGroups
7478
- subnets
7579
- vpc
80+
- deleteNodesOnDisconnect
7681
required:
7782
- parameters
7883
status:

apis/readonly/definition.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ spec:
4848
deleteNodesOnDisconnect:
4949
type: boolean
5050
description: "Delete Nodes on Disconnect"
51+
default: false
5152
assumeRoleArn:
5253
type: string
5354
description: "assumeRoleArn for this EKS Cluster Access for castai"
@@ -56,6 +57,7 @@ spec:
5657
- accountId
5758
- clusterName
5859
- region
60+
- deleteNodesOnDisconnect
5961
required:
6062
- parameters
6163
status:

0 commit comments

Comments
 (0)