Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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,8 @@ apiVersion: batch/v1
metadata:
name: "db2-backup-job-v1-{{ .Values.db2_instance_name }}"
namespace: "{{ .Values.db2_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "525"
labels:
parent: cronjob
cosBucket: "{{ .Values.db2_backup_bucket_name }}"
Expand Down
26 changes: 15 additions & 11 deletions root-applications/ibm-mas-instance-root/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ Applications are deployed in the following order (controlled by sync-wave annota
2. **100-121: Dependencies** - SLS, Db2, CP4D, databases, and CP4D services
3. **130: MAS Suite** - Core MAS suite installation and configurations
4. **200: Workspaces** - MAS workspace creation
5. **500-550: Applications** - MAS application installations and configurations
5. **500-560: Applications** - MAS application installations and configurations
- **500**: Manage install (highest priority among MAS apps)
- **505**: Manage config
- **520**: SDB (Standby DB2/HADR) — after Manage, before all other app installs
- **521-560**: All other MAS app installs and configs (Facilities, Assist, VisualInspection, IoT, Health, Monitor, Optimizer, Predict, Addons)
6. **600: RBAC & Post-Sync** - RBAC setup and post-deployment validation

## Configuration Files
Expand Down Expand Up @@ -218,16 +222,16 @@ The following table lists all ArgoCD applications defined in the templates folde
| [`130-ibm-mas-suite-configs-app.yaml`](templates/130-ibm-mas-suite-configs-app.yaml) | mas_config_name | | ✓ | | 130 |
| [`200-ibm-mas-workspaces.yaml`](templates/200-ibm-mas-workspaces.yaml) | workspace | | ✓ | | 200 |
| [`500-ibm-mas-masapp-manage-install.yaml`](templates/500-ibm-mas-masapp-manage-install.yaml) | manage | | | ✓ | 500 |
| [`505-ibm-mas-masapp-facilities-install.yaml`](templates/505-ibm-mas-masapp-facilities-install.yaml) | facilities | | | ✓ | 505 |
| [`510-ibm-mas-masapp-assist-install.yaml`](templates/510-ibm-mas-masapp-assist-install.yaml) | assist | | | ✓ | 510 |
| [`510-ibm-mas-masapp-iot-install.yaml`](templates/510-ibm-mas-masapp-iot-install.yaml) | iot | | | ✓ | 510 |
| [`510-ibm-mas-masapp-visualinspection-install.yaml`](templates/510-ibm-mas-masapp-visualinspection-install.yaml) | visualinspection | | | ✓ | 510 |
| [`510-550-ibm-mas-masapp-configs.yaml`](templates/510-550-ibm-mas-masapp-configs.yaml) | masapp-config | | ✓ | | 510-550 |
| [`520-ibm-mas-masapp-health-install.yaml`](templates/520-ibm-mas-masapp-health-install.yaml) | health | | | ✓ | 520 |
| [`520-ibm-mas-masapp-monitor-install.yaml`](templates/520-ibm-mas-masapp-monitor-install.yaml) | monitor | | | ✓ | 520 |
| [`520-ibm-mas-masapp-optimizer-install.yaml`](templates/520-ibm-mas-masapp-optimizer-install.yaml) | optimizer | | | ✓ | 520 |
| [`540-ibm-mas-masapp-predict-install.yaml`](templates/540-ibm-mas-masapp-predict-install.yaml) | predict | | | ✓ | 540 |
| [`550-ibm-mas-addons-config.yaml`](templates/550-ibm-mas-addons-config.yaml) | addons | | ✓ | | 550 |
| [`505-ibm-mas-masapp-facilities-install.yaml`](templates/505-ibm-mas-masapp-facilities-install.yaml) | facilities | | | ✓ | 521 |
| [`510-ibm-mas-masapp-assist-install.yaml`](templates/510-ibm-mas-masapp-assist-install.yaml) | assist | | | ✓ | 525 |
| [`510-ibm-mas-masapp-iot-install.yaml`](templates/510-ibm-mas-masapp-iot-install.yaml) | iot | | | ✓ | 525 (540 for channel ≥9.2) |
| [`510-ibm-mas-masapp-visualinspection-install.yaml`](templates/510-ibm-mas-masapp-visualinspection-install.yaml) | visualinspection | | | ✓ | 525 |
| [`510-550-ibm-mas-masapp-configs.yaml`](templates/510-550-ibm-mas-masapp-configs.yaml) | masapp-config | | ✓ | | 505-558 |
| [`520-ibm-mas-masapp-health-install.yaml`](templates/520-ibm-mas-masapp-health-install.yaml) | health | | | ✓ | 540 |
| [`520-ibm-mas-masapp-monitor-install.yaml`](templates/520-ibm-mas-masapp-monitor-install.yaml) | monitor | | | ✓ | 540 (525 for channel ≥9.2, co-wave with Assist and IoT default) |
| [`520-ibm-mas-masapp-optimizer-install.yaml`](templates/520-ibm-mas-masapp-optimizer-install.yaml) | optimizer | | | ✓ | 540 |
| [`540-ibm-mas-masapp-predict-install.yaml`](templates/540-ibm-mas-masapp-predict-install.yaml) | predict | | | ✓ | 555 |
| [`550-ibm-mas-addons-config.yaml`](templates/550-ibm-mas-addons-config.yaml) | addons | | ✓ | | 560 |
| [`600-application-admin-rbac-app.yaml`](templates/600-application-admin-rbac-app.yaml) | application-admin-rbac | | ✓ | | 600 |
| [`600-ibm-post-sync-jobs.yaml`](templates/600-ibm-post-sync-jobs.yaml) | postsyncjobs | | | ✓ | 600 |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
{{ if not (contains "sdb" $value.db2_instance_name) }}
argocd.argoproj.io/sync-wave: "120"
{{ else }}
argocd.argoproj.io/sync-wave: "121"
argocd.argoproj.io/sync-wave: "520"
{{ end }}
{{- if and $.Values.notifications $.Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ $.Values.notifications.slack_channel_id }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
instance: '{{ .Values.instance.id }}'
masapp: 'facilities'
annotations:
argocd.argoproj.io/sync-wave: "505"
argocd.argoproj.io/sync-wave: "521"
{{- if and .Values.notifications .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-succeeded.workspace1: {{ .Values.notifications.slack_channel_id }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,31 @@ metadata:
namespace: {{ $.Values.argo.namespace }}
annotations:
{{- if eq $value.mas_app_id "assist" }}
argocd.argoproj.io/sync-wave: "515"
argocd.argoproj.io/sync-wave: "527"
{{- else if eq $value.mas_app_id "facilities" }}
argocd.argoproj.io/sync-wave: "510"
argocd.argoproj.io/sync-wave: "522"
{{- else if eq $value.mas_app_id "iot" }}
{{- if $iot_is_v92_or_higher }}
argocd.argoproj.io/sync-wave: "530"
argocd.argoproj.io/sync-wave: "545"
{{- else }}
argocd.argoproj.io/sync-wave: "515"
argocd.argoproj.io/sync-wave: "527"
{{- end }}
{{- else if eq $value.mas_app_id "manage" }}
argocd.argoproj.io/sync-wave: "510"
argocd.argoproj.io/sync-wave: "505"
{{- else if eq $value.mas_app_id "visualinspection" }}
argocd.argoproj.io/sync-wave: "515"
argocd.argoproj.io/sync-wave: "527"
{{- else if eq $value.mas_app_id "health" }}
argocd.argoproj.io/sync-wave: "530"
argocd.argoproj.io/sync-wave: "545"
{{- else if eq $value.mas_app_id "monitor" }}
{{- if $monitor_is_v92_or_higher }}
argocd.argoproj.io/sync-wave: "515"
argocd.argoproj.io/sync-wave: "527"
{{- else }}
argocd.argoproj.io/sync-wave: "530"
argocd.argoproj.io/sync-wave: "545"
{{- end }}
{{- else if eq $value.mas_app_id "optimizer" }}
argocd.argoproj.io/sync-wave: "530"
argocd.argoproj.io/sync-wave: "545"
{{- else if eq $value.mas_app_id "predict" }}
argocd.argoproj.io/sync-wave: "550"
argocd.argoproj.io/sync-wave: "558"
{{- end }}
{{- if and $.Values.notifications $.Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ $.Values.notifications.slack_channel_id }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
instance: '{{ .Values.instance.id }}'
masapp: 'assist'
annotations:
argocd.argoproj.io/sync-wave: "510"
argocd.argoproj.io/sync-wave: "525"
{{- if and .Values.notifications .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-succeeded.workspace1: {{ .Values.notifications.slack_channel_id }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{{- if not (empty .Values.ibm_suite_app_iot_install) }}
{{- /* Calculate sync wave based on mas_app_channel version */ -}}
{{- $syncwave := "510" -}}
{{- $syncwave := "525" -}}
{{- if .Values.ibm_suite_app_iot_install.mas_app_channel -}}
{{- $channel := .Values.ibm_suite_app_iot_install.mas_app_channel | toString -}}
{{- $version := regexFind `^[0-9]+\.[0-9]+` $channel -}}
{{- if $version -}}
{{- $parts := splitList "." $version -}}
{{- $major := index $parts 0 | int -}}
{{- $minor := index $parts 1 | int -}}
{{- /* Use sync wave 520 for version >= 9.2, otherwise 510 */ -}}
{{- /* Use sync wave 540 for version >= 9.2, otherwise 525 */ -}}
{{- if or (gt $major 9) (and (eq $major 9) (ge $minor 2)) -}}
{{- $syncwave = "520" -}}
{{- $syncwave = "540" -}}
{{- end -}}
{{- end -}}
{{- end -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
instance: '{{ .Values.instance.id }}'
masapp: 'visualinspection'
annotations:
argocd.argoproj.io/sync-wave: "510"
argocd.argoproj.io/sync-wave: "525"
{{- if and .Values.notifications .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-succeeded.workspace1: {{ .Values.notifications.slack_channel_id }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
instance: '{{ .Values.instance.id }}'
masapp: 'health'
annotations:
argocd.argoproj.io/sync-wave: "520"
argocd.argoproj.io/sync-wave: "540"
{{- if and .Values.notifications .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-succeeded.workspace1: {{ .Values.notifications.slack_channel_id }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{{- if not (empty .Values.ibm_suite_app_monitor_install) }}
{{- /* Calculate sync wave based on mas_app_channel version */ -}}
{{- $syncwave := "520" -}}
{{- $syncwave := "540" -}}
{{- /* Note: the >=9.2 wave (525) intentionally matches Assist install wave */ -}}
{{- if .Values.ibm_suite_app_monitor_install.mas_app_channel -}}
{{- $channel := .Values.ibm_suite_app_monitor_install.mas_app_channel | toString -}}
{{- $version := regexFind `^[0-9]+\.[0-9]+` $channel -}}
{{- if $version -}}
{{- $parts := splitList "." $version -}}
{{- $major := index $parts 0 | int -}}
{{- $minor := index $parts 1 | int -}}
{{- /* Use sync wave 510 for version >= 9.2, otherwise 520 */ -}}
{{- /* Use sync wave 525 for version >= 9.2 (aligns with Assist), otherwise 540 */ -}}
{{- if or (gt $major 9) (and (eq $major 9) (ge $minor 2)) -}}
{{- $syncwave = "510" -}}
{{- $syncwave = "525" -}}
{{- end -}}
{{- end -}}
{{- end -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
instance: '{{ .Values.instance.id }}'
masapp: 'optimizer'
annotations:
argocd.argoproj.io/sync-wave: "520"
argocd.argoproj.io/sync-wave: "540"
{{- if and .Values.notifications .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-succeeded.workspace1: {{ .Values.notifications.slack_channel_id }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
instance: '{{ .Values.instance.id }}'
masapp: 'predict'
annotations:
argocd.argoproj.io/sync-wave: "540"
argocd.argoproj.io/sync-wave: "555"
{{- if and .Values.notifications .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-succeeded.workspace1: {{ .Values.notifications.slack_channel_id }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ metadata:
{{- end }}
instance: '{{ .Values.instance.id }}'
annotations:
argocd.argoproj.io/sync-wave: "551"
argocd.argoproj.io/sync-wave: "560"
{{- if and .Values.notifications .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-failed.workspace1: {{ .Values.notifications.slack_channel_id }}
notifications.argoproj.io/subscribe.on-sync-succeeded.workspace1: {{ .Values.notifications.slack_channel_id }}
Expand Down
Loading