Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 76
Configurable default PVC size for common and per-workspace storage classes#827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -17,6 +17,7 @@ package v1alpha1 | ||
| import ( | ||
| corev1 "k8s.io/api/core/v1" | ||
| "k8s.io/apimachinery/pkg/api/resource" | ||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| ) | ||
| @@ -67,6 +68,16 @@ type Proxy struct { | ||
| NoProxy string `json:"noProxy,omitempty"` | ||
| } | ||
| type StorageSizes struct { | ||
| // The default Persistent Volume Claim size for the "common" storage class. | ||
| // Note that the "async" storage class also uses the PVC size set for the "common" storage class. | ||
| // If not specified, the "common" and "async" Persistent Volume Claim sizes are set to 10Gi | ||
| Common *resource.Quantity `json:"common,omitempty"` | ||
| // The default Persistent Volume Claim size for the "per-workspace" storage class. | ||
| // If not specified, the "per-workspace" Persistent Volume Claim size is set to 5Gi | ||
| PerWorkspace *resource.Quantity `json:"perWorkspace,omitempty"` | ||
AObuchow marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| } | ||
| type WorkspaceConfig struct { | ||
| // ImagePullPolicy defines the imagePullPolicy used for containers in a DevWorkspace | ||
| // For additional information, see Kubernetes documentation for imagePullPolicy. If | ||
| @@ -83,9 +94,12 @@ type WorkspaceConfig struct { | ||
| // +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ | ||
| // +kubebuilder:validation:MaxLength=63 | ||
| PVCName string `json:"pvcName,omitempty"` | ||
| // StorageClassName defines and optional storageClass to use for persistent | ||
| // StorageClassName defines an optional storageClass to use for persistent | ||
| // volume claims created to support DevWorkspaces | ||
| StorageClassName *string `json:"storageClassName,omitempty"` | ||
| // DefaultStorageSize defines an optional struct with fields to specify the sizes of Persistent Volume Claims for storage | ||
| // classes used by DevWorkspaces. | ||
| DefaultStorageSize *StorageSizes `json:"defaultStorageSize,omitempty"` | ||
amisevsk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| // IdleTimeout determines how long a workspace should sit idle before being | ||
| // automatically scaled down. Proper functionality of this configuration property | ||
| // requires support in the workspace being started. If not specified, the default | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.