Skip to content
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

Add service checking, usage info and org filtering to decommission query script #3549

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

fearoffish
Copy link
Contributor

What

I've added:

  • Usage help info
  • Ability to filter org guids from the list instead of doing all
  • Checking how many services are running for each org

Examples:

❯ ./scripts/get-decommission-details.sh -h
Usage: ./scripts/get-decommission-details.sh [comma separated list of org guids]
If no orgs are specified, all orgs will be checked
❯ ./scripts/get-decommission-details.sh some-org-guid
Filtering to a comma separated list of orgs: some-org-guid
organization_name,running_app_count,non_running_app_count,service_count,owner,ready_for_decommission
some-org,18,2,10,"Org Name",no

How to review

Log in to cf and run the script


🚨⚠️ Please do not merge this pull request via the GitHub UI ⚠️🚨

@fearoffish
Copy link
Contributor Author

I'll change org guids to org names actually

@fearoffish
Copy link
Contributor Author

Not ready to merge

@fearoffish
Copy link
Contributor Author

Added "suspended = true or false"

Verified

This commit was signed with the committer’s verified signature.
@fearoffish fearoffish force-pushed the improve-decommissioning-query-script branch from cc9f060 to 41d4675 Compare January 4, 2024 14:18
Copy link
Contributor

@malcgds malcgds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a thing of beauty

Jamie Van Dyke added 2 commits February 29, 2024 11:28

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was signed with the committer’s verified signature.
@fearoffish fearoffish merged commit aa00152 into main Feb 29, 2024
8 checks passed
@fearoffish fearoffish deleted the improve-decommissioning-query-script branch February 29, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants