Skip to content

[minor] Rds cli image update and create db changes#457

Merged
whitfiea merged 95 commits into
mainfrom
rds-cli-image-update
May 14, 2026
Merged

[minor] Rds cli image update and create db changes#457
whitfiea merged 95 commits into
mainfrom
rds-cli-image-update

Conversation

@amitpandey0217
Copy link
Copy Markdown
Contributor

@amitpandey0217 amitpandey0217 commented May 11, 2026

Description:

  1. Update gitops to use new cli digest image for db operations. The new clid digest image does not requitre gitops to install ibm-db.
  2. Create database based in instance and app id. This changes is added to unblock backup and restore operation as primary database created during rds instance creation cant be dropped.

Jira:
https://jsw.ibm.com/browse/MASCORE-13709
image

Argo:
image

Create DB:
image

Secret manager got update:
image

Prajesh Jain and others added 30 commits April 8, 2026 12:59
- Update 5 RDS-related Job templates to use new CLI image
- New digest: sha256:f211d70d1c6cbc64c073f5ad823f8df7b0bb17f08c9306332eaa11870c4c421c
- This image includes pre-installed ibm_db package with libxcrypt-compat
- Removes need for runtime installation workarounds in RDS Jobs

Files updated:
- instance-applications/120-ibm-dbs-rds-database/templates/00-presync-create-database.yaml
- instance-applications/120-ibm-dbs-rds-database/templates/01-dbs-rds-postsync-setup.yaml
- instance-applications/120-ibm-dbs-rds-database/templates/03-backup-cronjobs.yaml
- instance-applications/130-ibm-jdbc-config/templates/00-presync-create-db2-rds-user-Job.yaml
- instance-applications/510-550-ibm-mas-suite-app-config/templates/703-postsync-rds-app-roles.yaml
Since CLI base image now includes pre-installed ibm_db and libxcrypt-compat,
removed ~230 lines of runtime installation workarounds from 4 RDS Job templates.

Changes:
- Removed package manager installation attempts (yum/dnf)
- Removed RPM download and extraction logic
- Removed pip install ibm_db commands
- Replaced with simple verification: python3 -c 'import ibm_db'

Benefits:
- Faster Job execution (30-60 seconds saved)
- More reliable (no external dependencies during runtime)
- Cleaner, more maintainable code
- Consistent with pre-installed dependencies approach

Files modified:
- instance-applications/120-ibm-dbs-rds-database/templates/00-presync-create-database.yaml
- instance-applications/120-ibm-dbs-rds-database/templates/01-dbs-rds-postsync-setup.yaml
- instance-applications/130-ibm-jdbc-config/templates/00-presync-create-db2-rds-user-Job.yaml
- instance-applications/510-550-ibm-mas-suite-app-config/templates/703-postsync-rds-app-roles.yaml
@amitpandey0217 amitpandey0217 changed the title Rds cli image update and create db changes [major] Rds cli image update and create db changes May 11, 2026
Copy link
Copy Markdown
Member

@whitfiea whitfiea left a comment

Choose a reason for hiding this comment

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

these resources need the {{- if .Values.application_admin_role }} around them just like the other resources in the helm charts. application_admin_role would be for application level things like configmaps, jobs in the namespace, whereas cluster_admin_role is for cluster wide resources like clusterissuers

@amitpandey0217
Copy link
Copy Markdown
Contributor Author

@whitfiea added the {{- if .Values.application_admin_role }} condition under both files for create database.

@amitpandey0217 amitpandey0217 requested a review from whitfiea May 14, 2026 08:39
@amitpandey0217 amitpandey0217 changed the title [major] Rds cli image update and create db changes [patch] Rds cli image update and create db changes May 14, 2026
@amitpandey0217 amitpandey0217 changed the title [patch] Rds cli image update and create db changes [minor] Rds cli image update and create db changes May 14, 2026
@amitpandey0217 amitpandey0217 requested a review from whitfiea May 14, 2026 10:12
@whitfiea whitfiea merged commit d4550a5 into main May 14, 2026
3 checks passed
@whitfiea whitfiea deleted the rds-cli-image-update branch May 14, 2026 10:14
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.

7 participants