Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
765a2aa
Copy sls related secrets from instance level to tenant level in pre sync
May 26, 2026
066991c
[minor] sls copy from instance level to tenant level
May 27, 2026
77cc1f0
Removed condition for temporary check
May 27, 2026
1c7d549
db2u related configs added
May 31, 2026
e4123c8
minor fix related to db2u
Jun 1, 2026
a10e73f
db2 operator creation related minor fix
Jun 3, 2026
029a69f
Removed ldap related configs
Jun 3, 2026
a01597a
jdbc. related configurations added
Jun 3, 2026
1296e7d
minor DB2U_INSTANCE_NAME fix
Jun 3, 2026
fea6caa
Added condition for mas_ap_id in aiservice configs
Jun 3, 2026
6f625a1
condition added for aws
Jun 4, 2026
9d9b934
Remove duplicate conditional check for AWS credentials in DB2 postSyn…
Jun 4, 2026
6f943f2
Removed the changes refarding secrets
Jun 4, 2026
29d5077
db2u configs passed to create resources
Jun 4, 2026
16416b0
Reverted the changes
Jun 4, 2026
3e28451
DB2u instance and DB2u operator install related code added
Jun 4, 2026
2a86552
db2uinstqance related changes
Jun 4, 2026
c25c6f6
Namespace creation
Jun 4, 2026
93282ca
ignoreDiff
Jun 5, 2026
09931ff
Removed unnecessary namesace temaplate
Jun 5, 2026
33a718f
REmove ignoreDiff for secretName
Jun 5, 2026
c0689bf
Update permission for secrets
Jun 7, 2026
acac38d
Corrected the path for jdbc aiservice
Jun 8, 2026
bd83d9c
Updated jdbc certificate format
Jun 8, 2026
d2dec72
temp check for sls at tenant level
Jun 8, 2026
28b25a8
reverted the temp check for sls and pass customer value for sls creat…
Jun 8, 2026
e1e4290
Added checks for sls
Jun 8, 2026
b393646
Reverted the changes for sls
Jun 9, 2026
81d56d9
Change sync-wave for pre-sync sls
Jun 9, 2026
176396b
tenant level aplication error fix
Jun 9, 2026
9a6257d
tenant namespace fix for sls presync
Jun 9, 2026
679d4d7
sls-presync job issue fix
Jun 9, 2026
e601fb2
Code addd for creating apikey-secret
Jun 9, 2026
443b642
sync-wave changed due to missing jdbc secrets
Jun 12, 2026
4eb3b45
sync wave revert for jdbc and aiservice app
Jun 12, 2026
9d7beb6
Merge branch 'main' of https://github.com/ibm-mas/gitops into MASAIB-…
Jun 12, 2026
d4bc7f2
minor fix
Jun 15, 2026
04f5780
minor fix
Jun 15, 2026
4f49771
minox fix
Jun 15, 2026
a7207e0
Added templates in README
Jun 15, 2026
d871214
Set default values for the db2 secrets
Jun 16, 2026
44c4714
Applied fix for the sync-wave
Jun 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ data:
password: {{ .Values.jdbccfg_password | default "" | toString | b64enc | quote }}
url: {{ .Values.jdbccfg_url | default "" | toString | b64enc | quote }}
sslenabled: {{ .Values.jdbccfg_sslenabled | default "" | toString | b64enc | quote }}
certificate: {{ .Values.jdbccfg_ca_b64enc }}
certificate: {{ .Values.jdbccfg_ca_b64enc | default "" | toString | quote }}
type: Opaque
{{- end }}
1 change: 1 addition & 0 deletions instance-applications/113-ibm-aiservice/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ mas_icr_cpopen: "icr.io/cpopen"

cluster_domain: "_cluster_dns.resources[0].spec.baseDomain"
in_saas_env: "false"
is_gitops_fvt_env: "false"

#TENANT
mas_aiservice_tenant_name: "aiservice-{{ mas_aiservice_tenant_name }}"
2 changes: 2 additions & 0 deletions instance-applications/115-ibm-aiservice-tenant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ This chart provisions a tenant for Maximo AI Service. It installs the AI Service
| `ServiceAccount` | Migration and post-sync service accounts | Tenant namespace | Always | `application_admin_role` |
| `Role` | Migration and post-sync roles | Tenant namespace | Always | `application_admin_role` |
| `RoleBinding` | Migration and post-sync role bindings | Tenant namespace | Always | `application_admin_role` |
| `ClusterRole` | Tenant cluster-level permissions | Cluster-wide | Always | `application_admin_role` |
| `ClusterRoleBinding` | Tenant cluster role bindings | Cluster-wide | Always | `application_admin_role` |
| `NetworkPolicy` | Tenant migration and ingress network policies | Tenant namespace | Always | `application_admin_role` |
| `Job` | Migration, post-sync, and secret setup jobs | Tenant namespace | Always | `application_admin_role` |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,33 @@ spec:
echo "Retrieve AIBroker API Key for tenant: ${AISERVICE_TENANT}"
echo "================================================================================"

AISERVICE_APIKEY_SECRET=$(oc get secret ${AISERVICE_TENANT}----apikey-secret -n ${TARGET_NAMESPACE} -o jsonpath="{.data.AIBROKER_APIKEY}" | base64 --decode)
# Wait for the apikey-secret to be created by the AIService operator
# The operator creates this secret after the AIServiceTenant CR is reconciled
SECRET_NAME="${AISERVICE_TENANT}----apikey-secret"
MAX_RETRIES=30
RETRY_DELAY=10

echo "Waiting for secret ${SECRET_NAME} to be created in namespace ${TARGET_NAMESPACE}..."
for i in $(seq 1 $MAX_RETRIES); do
if oc get secret ${SECRET_NAME} -n ${TARGET_NAMESPACE} > /dev/null 2>&1; then
echo "Secret ${SECRET_NAME} found (attempt $i/$MAX_RETRIES)"
break
fi

if [ $i -eq $MAX_RETRIES ]; then
echo "ERROR: Secret ${SECRET_NAME} not found after ${MAX_RETRIES} attempts"
echo "The AIService operator may not have created the secret yet"
exit 1
fi

echo "Secret not found yet, waiting ${RETRY_DELAY}s... (attempt $i/$MAX_RETRIES)"
sleep $RETRY_DELAY
done

AISERVICE_APIKEY_SECRET=$(oc get secret ${SECRET_NAME} -n ${TARGET_NAMESPACE} -o jsonpath="{.data.AIBROKER_APIKEY}" | base64 --decode)
if [ -z "$AISERVICE_APIKEY_SECRET" ]; then
echo "AISERVICE_APIKEY_SECRET is empty"
echo "ERROR: AISERVICE_APIKEY_SECRET is empty in secret ${SECRET_NAME}"
echo "The secret exists but does not contain the AIBROKER_APIKEY field"
exit 1
fi

Expand Down
Loading
Loading