Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akurinnoy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
5425e6f to
cfae5e7
Compare
db6bd9b to
85eb245
Compare
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
…rate_all Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
85eb245 to
54d6ac3
Compare
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
closed in favour of #1402 |
What does this PR do?
This PR adds a DevWorkspace pruner that uses a CronJob to periodically identify and delete DevWorkspaces that have been inactive for a specified duration.
What issues does this PR fix or reference?
resolves #1376
Is it tested? How?
DevWorkspaceOperatorConfiginitially does not have pruning enabled by default:CleanupCronJobsection in theconfig.workspacesection of the DWOCCleanupCronJobis present inconfig.workspace, verify thatenable: false.DevWorkspaceOperatorConfigto enable pruning and set parameters:image": "..."with the correctocimage path on your cluster.kubectl get devworkspaces -Ato check which DevWorkspaces are present. Only DevWorkspaces that should not be deleted should exist.kubectl logs -l job-name=<pruner-cronjob-name> -n <operator-namespace>) to confirm that the pruner script is running and identifying the correct DevWorkspaces for deletion.DevWorkspaceOperatorConfigto disable pruning:suspendfield is set totrue:PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-pathto trigger)v8-devworkspace-operator-e2e: DevWorkspace e2e testv8-che-happy-path: Happy path for verification integration with Che