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

[patch] Fix Backup Maximo Manage script: Maximo Manage Operator group not found error #938

Merged
merged 4 commits into from
May 3, 2024

Conversation

sbudhira
Copy link
Contributor

@sbudhira sbudhira commented May 3, 2024

Resolved the issue by fetching the operator group and eliminating the reliance on the hardcoded value.

Test Result:

bash-3.2$ bash backup.sh -w main -i auto-qa -f /Users/danninarajesh/BACKUP -m backup
Starting MAS Managebackup using the instance id auto-qa to /Users/danninarajesh/BACKUP
Backing up Subscription/ibm-mas-manage in the mas-auto-qa-manage namespace...
Saving Subscription/ibm-mas-manage to /Users/danninarajesh/BACKUP/Subscription-ibm-mas-manage.yaml
Backing up OperatorGroup/mas-auto-qa-manage-operator-group in the mas-auto-qa-manage namespace...
Saving OperatorGroup/mas-auto-qa-manage-operator-group to /Users/danninarajesh/BACKUP/OperatorGroup-mas-auto-qa-manage-operator-group.yaml
Backing up Secret/ibm-entitlement in the mas-auto-qa-manage namespace...
Saving Secret/ibm-entitlement to /Users/danninarajesh/BACKUP/Secret-ibm-entitlement.yaml
Backing up Secret/main-manage-encryptionsecret in the mas-auto-qa-manage namespace...
Saving Secret/main-manage-encryptionsecret to /Users/danninarajesh/BACKUP/Secret-main-manage-encryptionsecret.yaml
Backing up Secret/main-manage-encryptionsecret-operator in the mas-auto-qa-manage namespace...
Saving Secret/main-manage-encryptionsecret-operator to /Users/danninarajesh/BACKUP/Secret-main-manage-encryptionsecret-operator.yaml
Backing up ManageApp/auto-qa in the mas-auto-qa-manage namespace...
Saving ManageApp/auto-qa to /Users/danninarajesh/BACKUP/ManageApp-auto-qa.yaml
Backing up all ManageWorkspace resources in the mas-auto-qa-manage namespace...
secretList are - secretName: s3secretkey
secret
Backing up Secret/s3secretkey in the mas-auto-qa-manage namespace...
Saving Secret/s3secretkey to /Users/danninarajesh/BACKUP/Secret-s3secretkey.yaml
Saving ManageWorkspace named auto-qa-main to /Users/danninarajesh/BACKUP/ManageWorkspace-auto-qa-main.yaml
Backing up all jdbccfgs resources in the mas-auto-qa-manage namespace...
secretList are - secretName: jdbc-auto-qadb2umanage-credentials
secret
Backing up Secret/jdbc-auto-qadb2umanage-credentials in the mas-auto-qa-core namespace...
Saving Secret/jdbc-auto-qadb2umanage-credentials to /Users/danninarajesh/BACKUP/Secret-jdbc-auto-qadb2umanage-credentials.yaml
Saving JdbcCfg named auto-qa-jdbc-wsapp-main-manage to /Users/danninarajesh/BACKUP/JdbcCfg-auto-qa-jdbc-wsapp-main-manage.yaml
Determining if Manual Certificate Management is enabled...
bash-3.2$ ls
JdbcCfg-auto-qa-jdbc-wsapp-main-manage.yaml OperatorGroup-mas-auto-qa-manage-operator-group.yaml Secret-main-manage-encryptionsecret-operator.yaml Subscription-ibm-mas-manage.yaml
ManageApp-auto-qa.yaml Secret-ibm-entitlement.yaml Secret-main-manage-encryptionsecret.yaml backup.sh
ManageWorkspace-auto-qa-main.yaml Secret-jdbc-auto-qadb2umanage-credentials.yaml Secret-s3secretkey.yaml

@whitfiea whitfiea changed the title [patch] Backup Maximo Manage namespace: script Maximo manage Operator group not found error [patch] Fix Backup Maximo Manage script: Maximo Manage Operator group not found error May 3, 2024
@whitfiea whitfiea merged commit c602b9d into master May 3, 2024
3 checks passed
@whitfiea whitfiea deleted the br679 branch May 3, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants