-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TTAHUB-3064] Self Service Automation - Deployed Environment: Time Slice - Phase 1: Power down lower environments during off hours #2423
Draft
GarrettEHill
wants to merge
24
commits into
main
Choose a base branch
from
TTAHUB-3064/timeslice-powerdown
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of Changes
This update introduces enhancements to the CircleCI configuration, particularly around the
manual_manage_env_workflow
to provide more flexibility when managing application environments. Key improvements include the ability to manage specific environments dynamically through pipeline parameters, allowing for start, stop, restart, or restage operations.Key Changes:
Expanded Workflow Trigger:
manual_manage_env_workflow
is now configured to trigger based on the values ofenv_state
,env_list
, andspace_list
, enabling environment management for specific environments.start
,stop
,restart
, andrestage
, based on theenv_state
parameter.Pipeline Parameters:
env_state
,env_list
, andspace_list
parameters to control which environment and space are targeted, and what state change is required (e.g., start, stop).env_state
,env_list
, andspace_list
) to themanage_env_apps
job.Job Execution:
manage_env_apps
job has been updated to dynamically handle the state transition of the environment, depending on the value passed in theenv_state
,env_list
, andspace_list
parameters.Example Usage:
The following CircleCI pipeline parameters can now be used to manage specific environments:
With these changes, the pipeline can manage specific environments dynamically based on the values passed in
env_state
,env_list
, andspace_list
, streamlining environment management for sandbox or production systems.Benefits:
start
,stop
,restart
,restage
) for specific environments, based on pipeline parameters.env_state
,env_list
, andspace_list
are passed dynamically, making the workflow adaptable to different environments and spaces.How to Test
Navigate to CircleCI Dashboard:
Trigger a Pipeline Manually:
"tta-smarthub-sandbox"
."ttahub-sandbox"
.Monitor Workflow Execution:
manage_env_apps
).View Job Logs:
manage_env_apps
job in the workflow to see detailed logs.env_list
andspace_list
(e.g., sandbox environment actions).Test Multiple Scenarios:
Ensure Expected Behavior:
env_list
andspace_list
values to validate that the workflow behaves as expected for different environment and space combinations.Issue(s)
Checklists
Every PR
Before merge to main
Production Deploy
After merge/deploy