netgroup-polito / CrownLabs

Kubernetes-based Remote Laboratories
https://crownlabs.polito.it
Apache License 2.0
107 stars 42 forks source link

Tenant ctrl: automatically delete namespace after timeout #834

Closed giorio94 closed 1 year ago

giorio94 commented 1 year ago

Description

This PR aggregates the modifications originally proposed in #821 (by @rs59) and #827 (by @QcFe), and preserved in the corresponding commits. Additionally, it introduces a set of minor improvements, as well as of dedicated tests.

Supersedes: #821, #827

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

kingmakerbot commented 1 year ago

Hi @giorio94. Thanks for your PR.

I am @kingmakerbot. You can interact with me issuing a slash command in the first line of a comment. Currently, I understand the following commands:

Make sure this PR appears in the CrownLabs changelog, adding one of the following labels:

giorio94 commented 1 year ago

/deploy-staging

kingmakerbot commented 1 year ago

Your staging environment has been correctly deployed/updated! Available here: Frontend, Qlkube Operators: add the crownlabs.polito.it/operator-selector=staging-834 label to your tenant.

giorio94 commented 1 year ago

/deploy-staging

kingmakerbot commented 1 year ago

Your staging environment has been correctly deployed/updated! Available here: Frontend, Qlkube Operators: add the crownlabs.polito.it/operator-selector=staging-834 label to your tenant.

giorio94 commented 1 year ago

@QcFe I've rebased this PR, solving the conflicts introduced by the new MyDrive feature and the removal of the old one. Before merging, please give it a try in the staging environment, to make sure everything still works properly.

QcFe commented 1 year ago

Thank you so much @giorio94, will go through tests on monday hopefully

QcFe commented 1 year ago

/rebase

QcFe commented 1 year ago

/deploy-staging

kingmakerbot commented 1 year ago

Your staging environment has been correctly deployed/updated! Available here: Frontend, Qlkube Operators: add the crownlabs.polito.it/operator-selector=staging-834 label to your tenant.

QcFe commented 1 year ago

@giorio94 Sorry for the impossible delay. It seems there's a mismatch between the tenant cmd/main and the helm: the flag from helm is tenant-ns-keep-alive but the expected flag is tenant-operator-ns-keep-alive. I'll proceed with manual fix on the deployed staging to see everything else is correct

giorio94 commented 1 year ago

@giorio94 Sorry for the impossible delay. It seems there's a mismatch between the tenant cmd/main and the helm: the flag from helm is tenant-ns-keep-alive but the expected flag is tenant-operator-ns-keep-alive. I'll proceed with manual fix on the deployed staging to see everything else is correct

I've updated the PR to make the flags match. I've opted for tenant-ns-keep-alive, since this is related to tenants themselves, and not to the tenant operator.

QcFe commented 1 year ago

/deploy-staging

kingmakerbot commented 1 year ago

Your staging environment has been correctly deployed/updated! Available here: Frontend, Qlkube Operators: add the crownlabs.polito.it/operator-selector=staging-834 label to your tenant.

QcFe commented 1 year ago

/merge

kingmakerbot commented 1 year ago

Your staging environment has been correctly teared-down!