Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4671928
Create 07-application-configuration-cr.yaml
Hardik-Prajapati-10 Nov 12, 2025
9ab42ae
added AppCfg
Hardik-Prajapati-10 Nov 18, 2025
90bfd07
Update 01-appcfg.yaml
Hardik-Prajapati-10 Nov 18, 2025
fa36bc1
storage
Hardik-Prajapati-10 Nov 18, 2025
dcfbffd
storageClassName updated
Hardik-Prajapati-10 Nov 19, 2025
39342d4
Update 01-appcfg.yaml
Hardik-Prajapati-10 Nov 19, 2025
217b057
MASCORE-10415: "templatize"
Hardik-Prajapati-10 Nov 24, 2025
a9e77b3
Create postdelete-delete-cr.yaml
Hardik-Prajapati-10 Nov 25, 2025
cebfa87
Update 01-appcfg.yaml
Hardik-Prajapati-10 Nov 25, 2025
b165473
Merge branch 'main' into gitops-maf
Hardik-Prajapati-10 Dec 3, 2025
f336b3a
check update
drashtimalviya1207 Dec 8, 2025
ab0b617
Merge branch 'jdbc-additional-param' into gitops-maf
drashtimalviya1207 Dec 8, 2025
979df86
Revert "Merge branch 'jdbc-additional-param' into gitops-maf"
drashtimalviya1207 Dec 8, 2025
f90c37b
Remove JDBC connection URL params
drashtimalviya1207 Dec 9, 2025
b957645
Add JDBC connection URL params to DB2 app template
drashtimalviya1207 Dec 9, 2025
c7cf2c1
Fix template variable reference for JDBC params
drashtimalviya1207 Dec 9, 2025
8f873c0
Remove unused JDBC connection URL params
drashtimalviya1207 Dec 10, 2025
1627e61
Merge branch 'main' into gitops-maf
Hardik-Prajapati-10 Dec 11, 2025
993326b
Update 550-ibm-mas-addons-config.yaml
Hardik-Prajapati-10 Dec 11, 2025
41b6c53
update jdbc_connection_url_additional_params
drashtimalviya1207 Dec 11, 2025
8e9d666
Revert "update jdbc_connection_url_additional_params"
drashtimalviya1207 Dec 11, 2025
2674fc3
Merge branch 'main' into gitops-maf
drashtimalviya1207 Dec 12, 2025
09949d8
rename
Hardik-Prajapati-10 Dec 15, 2025
68ff162
Merge branch 'main' into gitops-maf
Hardik-Prajapati-10 Dec 15, 2025
2fb9b4d
Reapply "update jdbc_connection_url_additional_params"
Hardik-Prajapati-10 Dec 15, 2025
2d08e57
Update 120-db2-databases-app.yaml
Hardik-Prajapati-10 Dec 15, 2025
5895581
Merge branch 'main' into gitops-maf
Hardik-Prajapati-10 Dec 16, 2025
fd8f650
Update values.yaml
Hardik-Prajapati-10 Dec 16, 2025
cc99e58
Merge branch 'gitops-maf' of https://github.com/ibm-mas/gitops into g…
drashtimalviya1207 Dec 18, 2025
3a5df7f
Add conditional rendering for MAS app manifest
drashtimalviya1207 Dec 18, 2025
b472782
Update 05-ibm-mas_Suite_App_Install.yaml
drashtimalviya1207 Dec 18, 2025
7c18cd0
Add Prune option to ArgoCD sync annotations
drashtimalviya1207 Dec 18, 2025
b815439
Revert "Add Prune option to ArgoCD sync annotations"
drashtimalviya1207 Dec 18, 2025
879131c
Revert "Update 05-ibm-mas_Suite_App_Install.yaml"
drashtimalviya1207 Dec 18, 2025
84ec2ea
Revert "Add conditional rendering for MAS app manifest"
drashtimalviya1207 Dec 18, 2025
6aacaee
Merge branch 'main' into gitops-maf
Hardik-Prajapati-10 Dec 18, 2025
a50398c
Merge branch 'gitops-maf' of https://github.com/ibm-mas/gitops into g…
Hardik-Prajapati-10 Dec 18, 2025
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
11 changes: 11 additions & 0 deletions instance-applications/130-ibm-mas-app-config/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v2
name: ibm-mas-app-config
description: App Config for MAS Core Platform Suite
type: application
version: 1.0.0

dependencies:
- name: junitreporter
version: 1.0.0
repository: "file://../../sub-charts/junitreporter/"
condition: junitreporter.devops_mongo_uri != ""
5 changes: 5 additions & 0 deletions instance-applications/130-ibm-mas-app-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
App Configuration for MAS Core Platform
===============================================================================
Create a AppCfg CR instance and associated credentials secret for use by MAS.

Contains a post-delete hook (`postdelete-delete-cr.yaml`) that will ensure the config CR is deleted when the ArgoCD application managing this chart is deleted (this will not happen by default as the config CR is asserted to be owned by the `Suite` CR by the MAS entity managers).
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
apiVersion: config.mas.ibm.com/v1
kind: AppCfg
metadata:
name: "{{ .Values.mas_config_name }}"
namespace: mas-{{ .Values.instance_id }}-core
annotations:
argocd.argoproj.io/sync-wave: "131"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
labels:
{{- if eq .Values.mas_config_scope "system" }}
{{ .Values.system_appcfg_labels | toYaml | indent 4 }}
{{ end }}
{{- if .Values.custom_labels }}
{{ .Values.custom_labels | toYaml | indent 4 }}
{{- end }}
spec:
displayName: Application configuration {{ .Values.instance_id }}
config:
enabled: {{ .Values.maf_enabled }}
persistentVolume:
name: "{{ .Values.persistentVolume.name }}"
size: "{{ .Values.persistentVolume.size }}"
storageClassName: "{{ .Values.persistentVolume.storageClassName }}"
{{- if not (empty .Values.mas_appcfg_pod_templates) }}
podTemplates:
{{ .Values.mas_appcfg_pod_templates | toYaml | indent 4 }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{{- if .Values.use_postdelete_hooks }}

{{- /*
Use the build/bin/set-cli-image-digest.sh script to update this value across all charts.
*/}}
{{- $_cli_image_digest := "sha256:1b88f88a1a719d006ea1f4b8dcfd1c2625fa7ecc529c3267e7b4b6afaa1c8da0" }}

{{ $cr_name := .Values.mas_config_name }}
{{ $cr_kind := .Values.mas_config_kind }}
{{ $cr_api_version := .Values.mas_config_api_version }}

{{ $job_name := printf "postdelete-delete-cr-job-%s" $cr_name }}

# NOTE: depends on resources created in ibm-mas-suite chart (01-postdelete-crs-resources)
# The values below must align with the values in that file
{{ $role_name := "postdelete-delete-cr-r" }}
{{ $sa_name := "postdelete-delete-cr-sa" }}
{{ $rb_name := "postdelete-delete-cr-rb" }}
{{ $np_name := "postdelete-delete-cr-np" }}
{{ $job_label := "postdelete-delete-cr-job" }}
{{ $ns := printf "mas-%s-core" .Values.instance_id }}


---
apiVersion: batch/v1
kind: Job
metadata:
name: {{ $job_name }}
namespace: {{ $ns }}
annotations:
argocd.argoproj.io/hook: PostDelete
argocd.argoproj.io/hook-delete-policy: HookSucceeded,BeforeHookCreation
{{- if .Values.custom_labels }}
labels:
{{ .Values.custom_labels | toYaml | indent 4 }}
{{- end }}
spec:
template:
metadata:
labels:
app: {{ $job_label }}
{{- if .Values.custom_labels }}
{{ .Values.custom_labels | toYaml | indent 8 }}
{{- end }}
spec:
containers:
- name: run
# TODO: use a dedicated image with a smaller footprint for this sort of thing?
# Just using cli for now since it has all the deps we need to talk with AWS SM
image: quay.io/ibmmas/cli@{{ $_cli_image_digest }}
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 200m
memory: 512Mi
requests:
cpu: 10m
memory: 64Mi
env:
- name: CR_NAMESPACE
value: {{ $ns }}
- name: CR_NAME
value: {{ $cr_name }}

- name: CR_API_VERSION
value: {{ $cr_api_version }}

- name: CR_KIND
value: {{ $cr_kind }}

volumeMounts: []
command:
- /bin/sh
- -c
- |

set -e

function delete_oc_resource(){
RESOURCE=$1
NAMESPACE=$2
echo
echo "------------------------------------------------------------------"
echo "Check if resource $RESOURCE is present in namespace $NAMESPACE "

# don't want a non-zero rc from oc delete to cause the job to fail
# so, temporarily set +e
set +e
RESOURCE_NAME=$(oc get $RESOURCE -n $NAMESPACE -o=jsonpath="{.metadata.name}")
set -e
if [[ -z "${RESOURCE_NAME}" ]]; then
echo "$RESOURCE not found, skipping"
return 0
fi

echo "oc delete resource $RESOURCE in namespace $NAMESPACE "

# don't want a non-zero rc from oc delete to cause the job to fail (since we then want to try patching out the finalizers)
# so, temporarily set +e
set +e
oc delete $RESOURCE -n $NAMESPACE --timeout=300s --wait=true
return_code=$?
set -e

echo "Verify that resource $RESOURCE is now absent in namespace $NAMESPACE "
# don't want a non-zero rc from oc delete to cause the job to fail
# so, temporarily set +e
set +e
RESOURCE_NAME=$(oc get $RESOURCE -n $NAMESPACE -o=jsonpath="{.metadata.name}")
set -e
if [[ -n "${RESOURCE_NAME}" ]]; then
echo "$RESOURCE still present, failing job"
exit 1
fi

echo "... verified"
return 0

}


delete_oc_resource "${CR_KIND}.${CR_API_VERSION}/${CR_NAME}" "${CR_NAMESPACE}"


restartPolicy: Never
serviceAccountName: {{ $sa_name }}
volumes: []
backoffLimit: 4
{{- end }}
25 changes: 25 additions & 0 deletions instance-applications/130-ibm-mas-app-config/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
instance_id: xxx

maf:
enabled: true # <— single source of truth for ON/OFF

image:
repository: docker-na-proxy-rtp.artifactory.swg-devops.com/wiotp-docker-local/mas/graphite-configuration
tag: 1.7.35-pre.maxuif-3049-amd64
pullPolicy: Always

resources:
limits:
cpu: "5" # requirement from sizing (orderable)
memory: 8Gi
requests:
cpu: 10m
memory: 256Mi

persistentVolume:
name: app-config
size: 2Gi
storageClassName: nfs-client

serviceAccount: ibm-mas-config-reader
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{- if .Values.application_configuration }}
---
apiVersion: addons.mas.ibm.com/v1
kind: GenericAddon
metadata:
name: "{{ .Values.instance_id }}-addons-application-configuration"
namespace: mas-{{ .Values.instance_id }}-core
annotations:
argocd.argoproj.io/sync-wave: "552"
labels:
mas.ibm.com/configScope: system
mas.ibm.com/instanceId: {{ .Values.instance_id }}
{{- if .Values.custom_labels }}
{{ .Values.custom_labels | toYaml | indent 4 }}
{{- end }}
spec:
displayName: "{{ .Values.instance_id }}-application-configuration"
addonType: application-configuration
config:
addonIdentifier: {{ .Values.instance_id }}
instances:
- name: "{{ .Values.instance_id }}-application-configuration"
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if or (not (empty .Values.allow_list)) (.Values.enhanced_dr) (.Values.extensions) (.Values.additional_vpn) (not (empty .Values.ibm_db2u_databases)) (.Values.cluster_nonshared) }}
{{ if or (not (empty .Values.allow_list)) (.Values.enhanced_dr) (.Values.extensions) (.Values.additional_vpn) (.Values.application_configuration) (not (empty .Values.ibm_db2u_databases)) (.Values.cluster_nonshared) }}
---
# IBM Maximo Operator Catalog
apiVersion: argoproj.io/v1alpha1
Expand Down Expand Up @@ -43,6 +43,7 @@ spec:
extensions: {{ .Values.extensions }}
additional_vpn: {{ .Values.additional_vpn }}
cluster_nonshared: {{ .Values.cluster_nonshared }}
application_configuration: {{ .Values.application_configuration }}
databases:
{{- range $val := .Values.ibm_db2u_databases }}
{{- if and (contains "sdb" $val.db2_instance_name) ($val.replica_db) }}
Expand Down
Loading