Skip to content

Commit 6fb037d

Browse files
committed
OCPCLOUD-2717: Deprecate DeleteOnTermination for EBS volumes
This has never been implemented, and is not referenced anywhere.
1 parent f5e205b commit 6fb037d

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

machine/v1beta1/types_awsprovider.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,10 @@ type BlockDeviceMappingSpec struct {
140140
// https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsBlockDevice
141141
type EBSBlockDeviceSpec struct {
142142
// Indicates whether the EBS volume is deleted on machine termination.
143+
//
144+
// Deprecated: setting this field has no effect.
143145
// +optional
144-
DeleteOnTermination *bool `json:"deleteOnTermination,omitempty"`
146+
DeprecatedDeleteOnTermination *bool `json:"deleteOnTermination,omitempty"`
145147
// Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes
146148
// may only be attached to machines that support Amazon EBS encryption.
147149
// +optional

machine/v1beta1/zz_generated.deepcopy.go

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

machine/v1beta1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22057,7 +22057,7 @@
2205722057
"type": "object",
2205822058
"properties": {
2205922059
"deleteOnTermination": {
22060-
"description": "Indicates whether the EBS volume is deleted on machine termination.",
22060+
"description": "Indicates whether the EBS volume is deleted on machine termination.\n\nDeprecated: setting this field has no effect.",
2206122061
"type": "boolean"
2206222062
},
2206322063
"encrypted": {

0 commit comments

Comments
 (0)