Skip to content
This repository was archived by the owner on Mar 10, 2021. It is now read-only.

Need to add endpoint for cleanup workspaces that have been running for more than fixed period of time #24

@ibuziuk

Description

@ibuziuk

Need to add endpoint for cleanup workspaces that have been running for more than fixed period of time. Basically, endpoint should be able to get all the running workspace pods in the user namespace and delete all openshift resources related to the workspace (oc delete all -l che.workspace_id) if workspace pod is running for more than fixed period of time (by default 1 day, but it would be great to make it configurable via parameter). The only obligatory parameter would be identity_id passed via X-Identity-Id header. oso-proxy is going to be used as masterUrl and with Che SA Token [1] for all openshift related operations.

[1] https://github.com/fabric8-services/che-tenant-maintainer/blob/master/source/io/fabric8/tenant/che/migration/namespace/cheServiceAccountToggle.ceylon#L73

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions