Refactor to use a cleanup object for timeouts: stopAfterInactivity, deleteAfterInactivity, and deleteAfterCreation.#1145
Conversation
…tored delete to destroy, changed values for staging test in values.yaml
- Added missing configuration flags to instance-automation operator, including destruction notification intervals and testing overrides. - Refactored InstanceInactiveTerminationReconciler to improve readability and robustness of the destruction logic for powered-off instances. - Standardized logging across destruction helper functions and added proper error handling for annotation parsing. - Fixed a bug where destruction notifications used the wrong interval flag. - Integrated LastPoweredOffTimestampAnnotation in the termination reconciler to ensure the destruction countdown starts whenever an instance is stopped. - Updated Helm chart templates and values to correctly propagate the new automation configurations to the deployed containers.
feat: add DestroyAfterInactivity feature for permanent VM destruction
…ion to controller
Instance off annotation logic
Fixed CI errors
…ownLabs into feature-Deletion
Added tests and changed prometheusURL
… the instances will be deleted after the destroyAfterInactivity time even if value for email notification is false
…ModalCreateTemplate view and logic to connect this value to backend
Added modification to front-end to gather destroyAfterInactivity value
|
/deploy-staging |
…te creation, changed 'Expiration' to 'Expire'
|
/deploy-staging |
|
Your staging environment has been correctly deployed.
|
|
/deploy-staging |
|
/deploy-staging |
|
Your staging environment has been correctly deployed.
|
1 similar comment
|
Your staging environment has been correctly deployed.
|
|
/deploy-staging |
|
Your staging environment has been correctly deployed.
|
|
/deploy-staging |
|
Something went wrong while deploying your staging environment! |
|
Your staging environment has been correctly deployed.
|
…ler with one single PatchObject in the reconciler, using the mutation function enforceInstanceMetadata
This pull request introduces a significant refactor and enhancement of the template creation modal's cleanup timeout configuration in the frontend application. The changes standardize and expand how cleanup timeouts are handled, moving from two flat fields to a structured
cleanupobject with three distinct timeout options. Default values for these timeouts are now injected via Helm and exposed to the frontend through environment variables. The UI for configuring these timeouts is also improved with clearer controls, validation, and user guidance.Key changes include:
Backend/Configuration:
defaultTimeouts.cleanupsection in bothdeploy/crownlabs/values.yamlandfrontend/deploy/frontend-app/values.yamlto define default values forstopAfterInactivity,deleteAfterInactivity, anddeleteAfterCreationtimeouts. [1] [2]Frontend Logic & State Management:
ModalCreateTemplate.tsx) to use acleanupobject for timeouts, supporting three distinct settings:stopAfterInactivity,deleteAfterInactivity, anddeleteAfterCreation. All related state management, form handling, and value parsing logic were updated accordingly. [1] [2] [3] [4] [5]