Skip to content

Commit 3eb6dca

Browse files
committed
incorporating review comments
1 parent 0379778 commit 3eb6dca

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

api/storage/v1alpha1/volume_types.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ type VolumeAccess struct {
5656
VolumeAttributes map[string]string `json:"volumeAttributes,omitempty"`
5757
}
5858

59+
// ReclaimPolicy for a Volume tells what to do with the volume after its managing resource has been deleted
60+
type ReclaimPolicy string
61+
62+
const (
63+
// The Volume resource is not deleted after the managing resource has been deleted
64+
Retain ReclaimPolicy = "Retain"
65+
// The Volume resource is garbage-collected when the managing resource has been deleted
66+
Delete ReclaimPolicy = "Delete"
67+
)
68+
5969
// VolumeStatus defines the observed state of Volume
6070
type VolumeStatus struct {
6171
// State represents the infrastructure state of a Volume.
@@ -123,16 +133,6 @@ type VolumeList struct {
123133
Items []Volume `json:"items"`
124134
}
125135

126-
// ReclaimPolicy for a Volume tells what to do with the volume after its managing resource has been deleted
127-
type ReclaimPolicy string
128-
129-
const (
130-
// The Volume resource is not deleted after the managing resource has been deleted
131-
Retain ReclaimPolicy = "Retain"
132-
// The Volume resource is garbage-collected when the managing resource has been deleted
133-
Delete ReclaimPolicy = "Delete"
134-
)
135-
136136
type EphemeralVolumeSpec struct {
137137
VolumeSpec `json:",inline"`
138138
// ReclaimPolicy defines the strategy for the corresponding volume resource after its managing resource has been deleted

internal/apis/storage/volume_types.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ type VolumeAccess struct {
5555
VolumeAttributes map[string]string
5656
}
5757

58+
// ReclaimPolicy for a Volume tells what to do with the volume after its managing resource has been deleted
59+
type ReclaimPolicy string
60+
61+
const (
62+
// The Volume resource is not deleted after the managing resource has been deleted
63+
Retain ReclaimPolicy = "Retain"
64+
// The Volume resource is garbage-collected when the managing resource has been deleted
65+
Delete ReclaimPolicy = "Delete"
66+
)
67+
5868
// VolumeStatus defines the observed state of Volume
5969
type VolumeStatus struct {
6070
// State represents the infrastructure state of a Volume.
@@ -122,16 +132,6 @@ type VolumeList struct {
122132
Items []Volume
123133
}
124134

125-
// ReclaimPolicy for a Volume tells what to do with the volume after its managing resource has been deleted
126-
type ReclaimPolicy string
127-
128-
const (
129-
// The Volume resource is not deleted after the managing resource has been deleted
130-
Retain ReclaimPolicy = "Retain"
131-
// The Volume resource is garbage-collected when the managing resource has been deleted
132-
Delete ReclaimPolicy = "Delete"
133-
)
134-
135135
type EphemeralVolumeSpec struct {
136136
VolumeSpec
137137
// ReclaimPolicy defines the strategy for the corresponding volume resource after its managing resource has been deleted

0 commit comments

Comments
 (0)