Fix: disable persistent home when ephemeral storage used; persistent home volume shouldn't use capital letters #1210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR makes 2 fixes to the $HOME persistence feature in DWO:
workspace.persistUserHome.enabled: true
field is set, and the workspace requires persistent storage (i.e. it uses the uses async, per-workspace or per-user storage strategy and has at least one-non ephemeral volume or has mount-sources enabled).persistentHome
->persistent-home
to be a valid Kubernetes name.(Sorry for putting 2 bug fixes in a single PR - it seemed to make sense since they're both related)
What issues does this PR fix or reference?
#1200 & #1203
Is it tested? How?
Initial setup
export DWO_IMG=quay.io/<your-username>/devworkspace-controller:next
make install_cert_manager docker install
if testing on Minikube. For openshift, runmake docker install
kubectl edit dwoc -n $NAMESPACE
Testing fix for #1200
kubectl apply -f ./samples/plain.yaml
kubectl get dw -n $NAMESPACE -w
Testing fix for #1203
kubectl get dw -n $NAMESPACE -w
$ kubectl get dw -n $NAMESPACE -w NAME DEVWORKSPACE ID PHASE INFO plain-devworkspace-ephemeral workspace03197f210f9247e4 Running Workspace is running
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-path
to trigger)v8-devworkspace-operator-e2e
: DevWorkspace e2e testv8-che-happy-path
: Happy path for verification integration with Che