-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run zombie_cluster_resource in blueprints (#857)
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,6 @@ pipeline { | |
contact4 = "[email protected]" | ||
// Find the all available policies: https://github.com/redhat-performance/cloud-governance/tree/main/cloud_governance/policy | ||
// By default, all policies are running in dry_run="yes" mode and the whole list can be found in run_policies.py | ||
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode | ||
POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles"]' | ||
} | ||
stages { | ||
stage('Checkout') { // Checkout (git clone ...) the projects repository | ||
|
@@ -78,6 +76,10 @@ pipeline { | |
withCredentials([string(credentialsId: "${account}-aws-access-key-id", variable: 'access_key'), | ||
string(credentialsId: "${account}-aws-secret-key-id", variable: 'secret_key'), | ||
string(credentialsId: "${account}-s3-bucket", variable: 's3_bucket')]) { | ||
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode | ||
env.POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles"]' | ||
if (account == "blueprints") | ||
env.POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles", "zombie_cluster_resource"]' | ||
env.account_name = "${account}" | ||
env.ADMIN_MAIL_LIST = "${accounts_list[account]}" | ||
sh 'python3 jenkins/tenant/aws/common/run_policies.py' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
**POLICIES_IN_ACTION | ||
** = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles"]' | ||
|
||
- Run zombie_cluster_resource in blueprints | ||
|
||
Accounts: | ||
|
||
- **industry-partners**: "[email protected]", | ||
|