Skip to content

Commit

Permalink
Merge pull request #5 from upbound/feature/deleteNodesOnDisconnect
Browse files Browse the repository at this point in the history
feat(delete): add boolean deleteNodesOnDisconnect
  • Loading branch information
haarchri authored Jan 31, 2024
2 parents 7afbd57 + 7246368 commit a59f2d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/fullaccess/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ spec:
base:
apiVersion: castai.aws.platform.upbound.io/v1alpha1
kind: XReadOnly
spec:
parameters:
deleteNodesOnDisconnect: false
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
toFieldPath: metadata.name
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.deleteNodesOnDisconnect
toFieldPath: spec.parameters.deleteNodesOnDisconnect
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.region
toFieldPath: spec.parameters.region
Expand Down
5 changes: 5 additions & 0 deletions apis/fullaccess/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
id:
type: string
description: ID of this Cluster that other objects will use to refer to it.
deleteNodesOnDisconnect:
type: boolean
description: "Delete Nodes on Disconnect"
default: false
clusterName:
type: string
description: "EKS ClusterName"
Expand Down Expand Up @@ -73,6 +77,7 @@ spec:
- securityGroups
- subnets
- vpc
- deleteNodesOnDisconnect
required:
- parameters
status:
Expand Down
2 changes: 2 additions & 0 deletions apis/readonly/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
deleteNodesOnDisconnect:
type: boolean
description: "Delete Nodes on Disconnect"
default: false
assumeRoleArn:
type: string
description: "assumeRoleArn for this EKS Cluster Access for castai"
Expand All @@ -56,6 +57,7 @@ spec:
- accountId
- clusterName
- region
- deleteNodesOnDisconnect
required:
- parameters
status:
Expand Down

0 comments on commit a59f2d4

Please sign in to comment.