Skip to content

Commit fb94996

Browse files
committed
add back
1 parent 1d856bf commit fb94996

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ spec:
9696
description: Name is the name of the addon
9797
minLength: 2
9898
type: string
99+
preserveOnDelete:
100+
description: |-
101+
PreserveOnDelete indicates that the addon resources should be
102+
preserved in the cluster on delete.
103+
type: boolean
99104
serviceAccountRoleARN:
100105
description: ServiceAccountRoleArn is the ARN of an IAM role
101106
to bind to the addons service account
@@ -2270,6 +2275,11 @@ spec:
22702275
description: Name is the name of the addon
22712276
minLength: 2
22722277
type: string
2278+
preserveOnDelete:
2279+
description: |-
2280+
PreserveOnDelete indicates that the addon resources should be
2281+
preserved in the cluster on delete.
2282+
type: boolean
22732283
serviceAccountRoleARN:
22742284
description: ServiceAccountRoleArn is the ARN of an IAM role
22752285
to bind to the addons service account

controlplane/eks/api/v1beta1/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ type Addon struct {
141141
// ServiceAccountRoleArn is the ARN of an IAM role to bind to the addons service account
142142
// +optional
143143
ServiceAccountRoleArn *string `json:"serviceAccountRoleARN,omitempty"`
144+
// PreserveOnDelete indicates that the addon resources should be
145+
// preserved in the cluster on delete.
146+
// +optional
147+
PreserveOnDelete bool `json:"preserveOnDelete,omitempty"`
144148
}
145149

146150
// AddonResolution defines the method for resolving parameter conflicts.

controlplane/eks/api/v1beta1/zz_generated.conversion.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controlplane/eks/api/v1beta2/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ type Addon struct {
141141
// ServiceAccountRoleArn is the ARN of an IAM role to bind to the addons service account
142142
// +optional
143143
ServiceAccountRoleArn *string `json:"serviceAccountRoleARN,omitempty"`
144+
// PreserveOnDelete indicates that the addon resources should be
145+
// preserved in the cluster on delete.
146+
// +optional
147+
PreserveOnDelete bool `json:"preserveOnDelete,omitempty"`
144148
}
145149

146150
// AddonResolution defines the method for resolving parameter conflicts.

0 commit comments

Comments
 (0)