Commit 86389fc
authored
fix : reset workspace storage defaults when PVC config removed (#2061)
Previously, removing a workspace PVC Config (e.g., `perUserStrategyPvcConfig`)
did not reset workspaceConfig fields. As a result, stale values in persisted
instead of reverting to defaults.
This change explicitly resets:
- `StorageAccessMode` to `{ReadWriteOnce}`
- `StorageClassName` to `nil`
- `DefaultStorageSize` to `nil`
before applying any PVC config, ensuring that removing PVC config restores default
workspace storage settings.
Signed-off-by: Rohan Kumar <[email protected]>1 parent c67a644 commit 86389fc
File tree
2 files changed
+25
-1
lines changed- pkg/deploy/dev-workspace-config
2 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
178 | 200 | | |
179 | 201 | | |
180 | 202 | | |
| |||
0 commit comments