Skip to content

Commit 11c52dd

Browse files
committed
Add 'ephemeral' field to Volume Components
Add field "ephemeral" to Volume components to specify that this volume should not be persisted. This enables creating devfiles that share storage between components without having to store data in a persistent volume. Signed-off-by: Angel Misevski <[email protected]>
1 parent 33a78ae commit 11c52dd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: pkg/apis/workspaces/v1alpha1/volumeComponent.go

+5
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ type Volume struct {
1515
// +optional
1616
// Size of the volume
1717
Size string `json:"size,omitempty"`
18+
19+
// +optional
20+
// Ephemeral volumes are not stored persistently across restarts. Defaults
21+
// to false
22+
Ephemeral bool `json:"ephemeral,omitempty"`
1823
}

Diff for: pkg/apis/workspaces/v1alpha2/volumeComponent.go

+5
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ type Volume struct {
1111
// +optional
1212
// Size of the volume
1313
Size string `json:"size,omitempty"`
14+
15+
// +optional
16+
// Ephemeral volumes are not stored persistently across restarts. Defaults
17+
// to false
18+
Ephemeral bool `json:"ephemeral,omitempty"`
1419
}

0 commit comments

Comments
 (0)