mas-cli 12.1.0__py3-none-any.whl → 13.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mas-cli might be problematic. Click here for more details.
- mas/cli/__init__.py +1 -1
- mas/cli/cli.py +16 -6
- mas/cli/install/app.py +20 -14
- mas/cli/install/argBuilder.py +17 -3
- mas/cli/install/argParser.py +37 -2
- mas/cli/install/catalogs.py +2 -1
- mas/cli/install/params.py +6 -0
- mas/cli/install/settings/turbonomicSettings.py +1 -3
- mas/cli/install/summarizer.py +1 -2
- mas/cli/templates/ibm-mas-tekton.yaml +860 -205
- mas/cli/update/app.py +12 -7
- mas/cli/upgrade/app.py +13 -10
- {mas_cli-12.1.0.dist-info → mas_cli-13.0.0.dist-info}/METADATA +12 -3
- {mas_cli-12.1.0.dist-info → mas_cli-13.0.0.dist-info}/RECORD +17 -17
- {mas_cli-12.1.0.dist-info → mas_cli-13.0.0.dist-info}/WHEEL +1 -1
- {mas_cli-12.1.0.data → mas_cli-13.0.0.data}/scripts/mas-cli +0 -0
- {mas_cli-12.1.0.dist-info → mas_cli-13.0.0.dist-info}/top_level.txt +0 -0
|
@@ -231,7 +231,7 @@ spec:
|
|
|
231
231
|
command:
|
|
232
232
|
- /opt/app-root/src/run-role.sh
|
|
233
233
|
- aibroker
|
|
234
|
-
image: quay.io/ibmmas/cli:
|
|
234
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
235
235
|
imagePullPolicy: $(params.image_pull_policy)
|
|
236
236
|
# --------------------------------------------------------------------------------
|
|
237
237
|
# /home/runner/work/cli/cli/tekton/target/tasks/appconnect.yaml
|
|
@@ -342,7 +342,7 @@ spec:
|
|
|
342
342
|
command:
|
|
343
343
|
- /opt/app-root/src/run-role.sh
|
|
344
344
|
- appconnect
|
|
345
|
-
image: quay.io/ibmmas/cli:
|
|
345
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
346
346
|
imagePullPolicy: $(params.image_pull_policy)
|
|
347
347
|
workingDir: /workspace/configs
|
|
348
348
|
|
|
@@ -460,7 +460,7 @@ spec:
|
|
|
460
460
|
command:
|
|
461
461
|
- /opt/app-root/src/run-role.sh
|
|
462
462
|
- arcgis
|
|
463
|
-
image: quay.io/ibmmas/cli:
|
|
463
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
464
464
|
imagePullPolicy: $(params.image_pull_policy)
|
|
465
465
|
# --------------------------------------------------------------------------------
|
|
466
466
|
# /home/runner/work/cli/cli/tekton/target/tasks/cert-manager.yaml
|
|
@@ -530,7 +530,7 @@ spec:
|
|
|
530
530
|
command:
|
|
531
531
|
- /opt/app-root/src/run-role.sh
|
|
532
532
|
- cert_manager
|
|
533
|
-
image: quay.io/ibmmas/cli:
|
|
533
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
534
534
|
imagePullPolicy: $(params.image_pull_policy)
|
|
535
535
|
workingDir: /workspace/configs
|
|
536
536
|
# --------------------------------------------------------------------------------
|
|
@@ -596,7 +596,7 @@ spec:
|
|
|
596
596
|
command:
|
|
597
597
|
- /opt/app-root/src/run-role.sh
|
|
598
598
|
- common_services
|
|
599
|
-
image: quay.io/ibmmas/cli:
|
|
599
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
600
600
|
imagePullPolicy: $(params.image_pull_policy)
|
|
601
601
|
workingDir: /workspace/configs
|
|
602
602
|
# --------------------------------------------------------------------------------
|
|
@@ -723,7 +723,7 @@ spec:
|
|
|
723
723
|
command:
|
|
724
724
|
- /opt/app-root/src/run-role.sh
|
|
725
725
|
- cos
|
|
726
|
-
image: quay.io/ibmmas/cli:
|
|
726
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
727
727
|
imagePullPolicy: $(params.image_pull_policy)
|
|
728
728
|
workingDir: /workspace/configs
|
|
729
729
|
|
|
@@ -843,7 +843,7 @@ spec:
|
|
|
843
843
|
command:
|
|
844
844
|
- /opt/app-root/src/run-role.sh
|
|
845
845
|
- cp4d_service
|
|
846
|
-
image: quay.io/ibmmas/cli:
|
|
846
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
847
847
|
imagePullPolicy: $(params.image_pull_policy)
|
|
848
848
|
workingDir: /workspace/configs
|
|
849
849
|
# --------------------------------------------------------------------------------
|
|
@@ -960,7 +960,7 @@ spec:
|
|
|
960
960
|
command:
|
|
961
961
|
- /opt/app-root/src/run-role.sh
|
|
962
962
|
- cp4d_service
|
|
963
|
-
image: quay.io/ibmmas/cli:
|
|
963
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
964
964
|
imagePullPolicy: $(params.image_pull_policy)
|
|
965
965
|
workingDir: /workspace/configs
|
|
966
966
|
|
|
@@ -1066,7 +1066,7 @@ spec:
|
|
|
1066
1066
|
command:
|
|
1067
1067
|
- /opt/app-root/src/run-role.sh
|
|
1068
1068
|
- cp4d
|
|
1069
|
-
image: quay.io/ibmmas/cli:
|
|
1069
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
1070
1070
|
imagePullPolicy: $(params.image_pull_policy)
|
|
1071
1071
|
# --------------------------------------------------------------------------------
|
|
1072
1072
|
# /home/runner/work/cli/cli/tekton/target/tasks/db2.yaml
|
|
@@ -1388,7 +1388,7 @@ spec:
|
|
|
1388
1388
|
command:
|
|
1389
1389
|
- /opt/app-root/src/run-role.sh
|
|
1390
1390
|
- db2
|
|
1391
|
-
image: quay.io/ibmmas/cli:
|
|
1391
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
1392
1392
|
imagePullPolicy: $(params.image_pull_policy)
|
|
1393
1393
|
workingDir: /workspace/configs
|
|
1394
1394
|
|
|
@@ -1498,7 +1498,7 @@ spec:
|
|
|
1498
1498
|
command:
|
|
1499
1499
|
- /opt/app-root/src/run-role.sh
|
|
1500
1500
|
- eck
|
|
1501
|
-
image: quay.io/ibmmas/cli:
|
|
1501
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
1502
1502
|
imagePullPolicy: $(params.image_pull_policy)
|
|
1503
1503
|
# --------------------------------------------------------------------------------
|
|
1504
1504
|
# /home/runner/work/cli/cli/tekton/target/tasks/gencfg-workspace.yaml
|
|
@@ -1587,7 +1587,7 @@ spec:
|
|
|
1587
1587
|
command:
|
|
1588
1588
|
- /opt/app-root/src/run-role.sh
|
|
1589
1589
|
- gencfg_workspace
|
|
1590
|
-
image: quay.io/ibmmas/cli:
|
|
1590
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
1591
1591
|
imagePullPolicy: $(params.image_pull_policy)
|
|
1592
1592
|
workingDir: /workspace/configs
|
|
1593
1593
|
|
|
@@ -1691,7 +1691,7 @@ spec:
|
|
|
1691
1691
|
- -c
|
|
1692
1692
|
name: gitops-bootstrap
|
|
1693
1693
|
imagePullPolicy: IfNotPresent
|
|
1694
|
-
image: quay.io/ibmmas/cli:
|
|
1694
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
1695
1695
|
workspaces:
|
|
1696
1696
|
- name: configs
|
|
1697
1697
|
# --------------------------------------------------------------------------------
|
|
@@ -1773,7 +1773,7 @@ spec:
|
|
|
1773
1773
|
- -c
|
|
1774
1774
|
name: gitops-cis-compliance
|
|
1775
1775
|
imagePullPolicy: IfNotPresent
|
|
1776
|
-
image: quay.io/ibmmas/cli:
|
|
1776
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
1777
1777
|
workspaces:
|
|
1778
1778
|
- name: configs
|
|
1779
1779
|
# --------------------------------------------------------------------------------
|
|
@@ -1879,9 +1879,17 @@ spec:
|
|
|
1879
1879
|
- name: group_sync_operator_isv_groups
|
|
1880
1880
|
type: string
|
|
1881
1881
|
default: ''
|
|
1882
|
+
|
|
1882
1883
|
- name: ibm_rbac_binding_to_group
|
|
1883
1884
|
type: string
|
|
1884
1885
|
default: ''
|
|
1886
|
+
|
|
1887
|
+
- name: falcon_operator_cloud_region
|
|
1888
|
+
type: string
|
|
1889
|
+
default: ''
|
|
1890
|
+
- name: falcon_operator_node_sensor
|
|
1891
|
+
type: string
|
|
1892
|
+
default: ''
|
|
1885
1893
|
|
|
1886
1894
|
stepTemplate:
|
|
1887
1895
|
name: gitops-cluster
|
|
@@ -1959,8 +1967,14 @@ spec:
|
|
|
1959
1967
|
value: $(params.group_sync_operator_isv_tenant_url)
|
|
1960
1968
|
- name: GROUP_SYNC_OPERATOR_ISV_GROUPS
|
|
1961
1969
|
value: $(params.group_sync_operator_isv_groups)
|
|
1970
|
+
|
|
1962
1971
|
- name: IBM_RBAC_BINDING_TO_GROUP
|
|
1963
1972
|
value: $(params.ibm_rbac_binding_to_group)
|
|
1973
|
+
|
|
1974
|
+
- name: FALCON_OPERATOR_CLOUD_REGION
|
|
1975
|
+
value: $(params.falcon_operator_cloud_region)
|
|
1976
|
+
- name: FALCON_OPERATOR_NODE_SENSOR
|
|
1977
|
+
value: $(params.falcon_operator_node_sensor)
|
|
1964
1978
|
|
|
1965
1979
|
envFrom:
|
|
1966
1980
|
- configMapRef:
|
|
@@ -2002,6 +2016,13 @@ spec:
|
|
|
2002
2016
|
export INSTALL_IBM_RBAC=true
|
|
2003
2017
|
fi
|
|
2004
2018
|
|
|
2019
|
+
if [[ -n "${FALCON_OPERATOR_CLOUD_REGION}" ]];then
|
|
2020
|
+
echo "Setting var INSTALL_FALCON_OPERATOR to true as var FALCON_OPERATOR_CLOUD_REGION is set"
|
|
2021
|
+
export INSTALL_FALCON_OPERATOR=true
|
|
2022
|
+
else
|
|
2023
|
+
echo "Not setting var INSTALL_FALCON_OPERATOR to true as var FALCON_OPERATOR_CLOUD_REGION is not set"
|
|
2024
|
+
fi
|
|
2025
|
+
|
|
2005
2026
|
mkdir -p /tmp/init-cluster
|
|
2006
2027
|
mas gitops-cluster -a $ACCOUNT -c $CLUSTER_NAME \
|
|
2007
2028
|
--dir /tmp/init-cluster \
|
|
@@ -2018,7 +2039,7 @@ spec:
|
|
|
2018
2039
|
- -c
|
|
2019
2040
|
name: gitops-cluster
|
|
2020
2041
|
imagePullPolicy: Always
|
|
2021
|
-
image: quay.io/ibmmas/cli:
|
|
2042
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
2022
2043
|
workspaces:
|
|
2023
2044
|
- name: configs
|
|
2024
2045
|
# --------------------------------------------------------------------------------
|
|
@@ -2121,7 +2142,7 @@ spec:
|
|
|
2121
2142
|
- -c
|
|
2122
2143
|
name: gitops-cos
|
|
2123
2144
|
imagePullPolicy: IfNotPresent
|
|
2124
|
-
image: quay.io/ibmmas/cli:
|
|
2145
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
2125
2146
|
workspaces:
|
|
2126
2147
|
- name: configs
|
|
2127
2148
|
# --------------------------------------------------------------------------------
|
|
@@ -2269,7 +2290,7 @@ spec:
|
|
|
2269
2290
|
- -c
|
|
2270
2291
|
name: gitops-cp4d-service
|
|
2271
2292
|
imagePullPolicy: IfNotPresent
|
|
2272
|
-
image: quay.io/ibmmas/cli:
|
|
2293
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
2273
2294
|
workspaces:
|
|
2274
2295
|
- name: configs
|
|
2275
2296
|
- name: shared-gitops-configs
|
|
@@ -2398,7 +2419,7 @@ spec:
|
|
|
2398
2419
|
- -c
|
|
2399
2420
|
name: gitops-cp4d
|
|
2400
2421
|
imagePullPolicy: IfNotPresent
|
|
2401
|
-
image: quay.io/ibmmas/cli:
|
|
2422
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
2402
2423
|
workspaces:
|
|
2403
2424
|
- name: configs
|
|
2404
2425
|
- name: shared-gitops-configs
|
|
@@ -2659,7 +2680,7 @@ spec:
|
|
|
2659
2680
|
- -c
|
|
2660
2681
|
name: gitops-db2u-database
|
|
2661
2682
|
imagePullPolicy: Always
|
|
2662
|
-
image: quay.io/ibmmas/cli:
|
|
2683
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
2663
2684
|
workspaces:
|
|
2664
2685
|
- name: configs
|
|
2665
2686
|
- name: shared-gitops-configs
|
|
@@ -2757,7 +2778,7 @@ spec:
|
|
|
2757
2778
|
- -c
|
|
2758
2779
|
name: gitops-db2u
|
|
2759
2780
|
imagePullPolicy: IfNotPresent
|
|
2760
|
-
image: quay.io/ibmmas/cli:
|
|
2781
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
2761
2782
|
workspaces:
|
|
2762
2783
|
- name: configs
|
|
2763
2784
|
# --------------------------------------------------------------------------------
|
|
@@ -2884,7 +2905,7 @@ spec:
|
|
|
2884
2905
|
- -c
|
|
2885
2906
|
name: gitops-delete-jdbc-config
|
|
2886
2907
|
imagePullPolicy: IfNotPresent
|
|
2887
|
-
image: quay.io/ibmmas/cli:
|
|
2908
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
2888
2909
|
workspaces:
|
|
2889
2910
|
- name: configs
|
|
2890
2911
|
# --------------------------------------------------------------------------------
|
|
@@ -2982,7 +3003,7 @@ spec:
|
|
|
2982
3003
|
- -c
|
|
2983
3004
|
name: gitops-delete-kafka-config
|
|
2984
3005
|
imagePullPolicy: Always
|
|
2985
|
-
image: quay.io/ibmmas/cli:
|
|
3006
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
2986
3007
|
workspaces:
|
|
2987
3008
|
- name: configs
|
|
2988
3009
|
|
|
@@ -3074,7 +3095,7 @@ spec:
|
|
|
3074
3095
|
- -c
|
|
3075
3096
|
name: gitops-deprovision-app-config
|
|
3076
3097
|
imagePullPolicy: IfNotPresent
|
|
3077
|
-
image: quay.io/ibmmas/cli:
|
|
3098
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3078
3099
|
workspaces:
|
|
3079
3100
|
- name: configs
|
|
3080
3101
|
# --------------------------------------------------------------------------------
|
|
@@ -3159,7 +3180,7 @@ spec:
|
|
|
3159
3180
|
- -c
|
|
3160
3181
|
name: gitops-deprovision-app-install
|
|
3161
3182
|
imagePullPolicy: IfNotPresent
|
|
3162
|
-
image: quay.io/ibmmas/cli:
|
|
3183
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3163
3184
|
workspaces:
|
|
3164
3185
|
- name: configs
|
|
3165
3186
|
# --------------------------------------------------------------------------------
|
|
@@ -3244,7 +3265,7 @@ spec:
|
|
|
3244
3265
|
- -c
|
|
3245
3266
|
name: gitops-deprovision-cluster
|
|
3246
3267
|
imagePullPolicy: IfNotPresent
|
|
3247
|
-
image: quay.io/ibmmas/cli:
|
|
3268
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3248
3269
|
workspaces:
|
|
3249
3270
|
- name: configs
|
|
3250
3271
|
# --------------------------------------------------------------------------------
|
|
@@ -3363,7 +3384,7 @@ spec:
|
|
|
3363
3384
|
- -c
|
|
3364
3385
|
name: gitops-deprovision-cos
|
|
3365
3386
|
imagePullPolicy: IfNotPresent
|
|
3366
|
-
image: quay.io/ibmmas/cli:
|
|
3387
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3367
3388
|
workspaces:
|
|
3368
3389
|
- name: configs
|
|
3369
3390
|
# --------------------------------------------------------------------------------
|
|
@@ -3451,7 +3472,7 @@ spec:
|
|
|
3451
3472
|
- -c
|
|
3452
3473
|
name: gitops-deprovision-db2u-database
|
|
3453
3474
|
imagePullPolicy: IfNotPresent
|
|
3454
|
-
image: quay.io/ibmmas/cli:
|
|
3475
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3455
3476
|
workspaces:
|
|
3456
3477
|
- name: configs
|
|
3457
3478
|
|
|
@@ -3534,7 +3555,7 @@ spec:
|
|
|
3534
3555
|
- -c
|
|
3535
3556
|
name: gitops-deprovision-db2u
|
|
3536
3557
|
imagePullPolicy: IfNotPresent
|
|
3537
|
-
image: quay.io/ibmmas/cli:
|
|
3558
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3538
3559
|
workspaces:
|
|
3539
3560
|
- name: configs
|
|
3540
3561
|
|
|
@@ -3642,7 +3663,7 @@ spec:
|
|
|
3642
3663
|
- -c
|
|
3643
3664
|
name: gitops-deprovision-efs
|
|
3644
3665
|
imagePullPolicy: IfNotPresent
|
|
3645
|
-
image: quay.io/ibmmas/cli:
|
|
3666
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3646
3667
|
workspaces:
|
|
3647
3668
|
- name: configs
|
|
3648
3669
|
|
|
@@ -3752,7 +3773,7 @@ spec:
|
|
|
3752
3773
|
- -c
|
|
3753
3774
|
name: gitops-deprovision-kafka
|
|
3754
3775
|
imagePullPolicy: IfNotPresent
|
|
3755
|
-
image: quay.io/ibmmas/cli:
|
|
3776
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3756
3777
|
workspaces:
|
|
3757
3778
|
- name: configs
|
|
3758
3779
|
# --------------------------------------------------------------------------------
|
|
@@ -3855,7 +3876,7 @@ spec:
|
|
|
3855
3876
|
- -c
|
|
3856
3877
|
name: gitops-deprovision-mongo
|
|
3857
3878
|
imagePullPolicy: IfNotPresent
|
|
3858
|
-
image: quay.io/ibmmas/cli:
|
|
3879
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3859
3880
|
workspaces:
|
|
3860
3881
|
- name: configs
|
|
3861
3882
|
|
|
@@ -3912,7 +3933,7 @@ spec:
|
|
|
3912
3933
|
- -c
|
|
3913
3934
|
name: gitops-deprovision-rosa
|
|
3914
3935
|
imagePullPolicy: IfNotPresent
|
|
3915
|
-
image: quay.io/ibmmas/cli:
|
|
3936
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
3916
3937
|
workspaces:
|
|
3917
3938
|
- name: configs
|
|
3918
3939
|
# --------------------------------------------------------------------------------
|
|
@@ -4117,7 +4138,7 @@ spec:
|
|
|
4117
4138
|
- -c
|
|
4118
4139
|
name: gitops-deprovision-suite-config
|
|
4119
4140
|
imagePullPolicy: IfNotPresent
|
|
4120
|
-
image: quay.io/ibmmas/cli:
|
|
4141
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4121
4142
|
workspaces:
|
|
4122
4143
|
- name: configs
|
|
4123
4144
|
|
|
@@ -4215,7 +4236,7 @@ spec:
|
|
|
4215
4236
|
- -c
|
|
4216
4237
|
name: gitops-deprovision-suite-idp-config
|
|
4217
4238
|
imagePullPolicy: IfNotPresent
|
|
4218
|
-
image: quay.io/ibmmas/cli:
|
|
4239
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4219
4240
|
workspaces:
|
|
4220
4241
|
- name: configs
|
|
4221
4242
|
# --------------------------------------------------------------------------------
|
|
@@ -4307,7 +4328,127 @@ spec:
|
|
|
4307
4328
|
- -c
|
|
4308
4329
|
name: gitops-deprovision-suite-objectstorage-config
|
|
4309
4330
|
imagePullPolicy: IfNotPresent
|
|
4310
|
-
image: quay.io/ibmmas/cli:
|
|
4331
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4332
|
+
workspaces:
|
|
4333
|
+
- name: configs
|
|
4334
|
+
# --------------------------------------------------------------------------------
|
|
4335
|
+
# /home/runner/work/cli/cli/tekton/target/tasks/gitops-deprovision-suite-sendgrid-subuser.yaml
|
|
4336
|
+
# --------------------------------------------------------------------------------
|
|
4337
|
+
---
|
|
4338
|
+
apiVersion: tekton.dev/v1beta1
|
|
4339
|
+
kind: Task
|
|
4340
|
+
metadata:
|
|
4341
|
+
name: gitops-deprovision-suite-sendgrid-subuser
|
|
4342
|
+
spec:
|
|
4343
|
+
params:
|
|
4344
|
+
- name: cluster_name
|
|
4345
|
+
type: string
|
|
4346
|
+
- name: account
|
|
4347
|
+
type: string
|
|
4348
|
+
- name: mas_instance_id
|
|
4349
|
+
type: string
|
|
4350
|
+
- name: icn
|
|
4351
|
+
type: string
|
|
4352
|
+
- name: cis_mas_domain
|
|
4353
|
+
type: string
|
|
4354
|
+
- name: cis_crn
|
|
4355
|
+
type: string
|
|
4356
|
+
- name: avp_aws_secret_region
|
|
4357
|
+
type: string
|
|
4358
|
+
stepTemplate:
|
|
4359
|
+
name: gitops-deprovision-suite-sendgrid-subuser
|
|
4360
|
+
env:
|
|
4361
|
+
- name: CLUSTER_ID
|
|
4362
|
+
value: $(params.cluster_name)
|
|
4363
|
+
- name: ACCOUNT_ID
|
|
4364
|
+
value: $(params.account)
|
|
4365
|
+
- name: MAS_INSTANCE_ID
|
|
4366
|
+
value: $(params.mas_instance_id)
|
|
4367
|
+
|
|
4368
|
+
- name: ICN
|
|
4369
|
+
value: $(params.icn)
|
|
4370
|
+
- name: CIS_MAS_DOMAIN
|
|
4371
|
+
value: $(params.cis_mas_domain)
|
|
4372
|
+
- name: CIS_CRN
|
|
4373
|
+
value: $(params.cis_crn)
|
|
4374
|
+
|
|
4375
|
+
- name: SM_AWS_REGION
|
|
4376
|
+
value: $(params.avp_aws_secret_region)
|
|
4377
|
+
envFrom:
|
|
4378
|
+
- configMapRef:
|
|
4379
|
+
name: environment-properties
|
|
4380
|
+
optional: true
|
|
4381
|
+
- secretRef:
|
|
4382
|
+
name: secure-properties
|
|
4383
|
+
steps:
|
|
4384
|
+
- args:
|
|
4385
|
+
- |-
|
|
4386
|
+
|
|
4387
|
+
# Expected secure-properties (sourced from IBM Cloud SM):
|
|
4388
|
+
# -------------------
|
|
4389
|
+
# SM_AWS_ACCESS_KEY_ID
|
|
4390
|
+
# SM_AWS_SECRET_ACCESS_KEY
|
|
4391
|
+
# SENDGRID_API_KEY
|
|
4392
|
+
|
|
4393
|
+
|
|
4394
|
+
# Teardown of smtp config in gitops-envs is handled by gitops-deprovision-suite-smtp-config task
|
|
4395
|
+
# All we need to do here is make sure we clean up SendGrid, CIS and the sendgrid_subuser secret in AWS SM (if the subuser was deleted)
|
|
4396
|
+
source /mascli/functions/gitops_utils
|
|
4397
|
+
export AVP_TYPE="aws"
|
|
4398
|
+
sm_login || exit 1
|
|
4399
|
+
|
|
4400
|
+
# Fetch CIS API Key from AWS SM.
|
|
4401
|
+
# This is suitable for use with CIS instances used by MAS instances in the cluster we are targetting
|
|
4402
|
+
# This secret is only required if the instance is configured with CIS
|
|
4403
|
+
if [[ -n "${CIS_CRN}" ]]; then
|
|
4404
|
+
SECRET_NAME_CIS="${ACCOUNT_ID}/${CLUSTER_ID}/cis"
|
|
4405
|
+
echo "Getting ${SECRET_NAME_CIS} from AWS SM"
|
|
4406
|
+
export CIS_APIKEY="$(sm_get_secret_value "${SECRET_NAME_CIS}" "ibm_apikey")" # pragma: allowlist secret
|
|
4407
|
+
if [[ -z "${CIS_APIKEY}" || "${CIS_APIKEY}" == "null" ]]; then
|
|
4408
|
+
echo "Required AWS SM secret "${SECRET_NAME_CIS}" not found or invalid"
|
|
4409
|
+
exit 1
|
|
4410
|
+
fi
|
|
4411
|
+
fi
|
|
4412
|
+
|
|
4413
|
+
mkdir -p /tmp/gitops-deprovision-suite-sendgrid-subuser
|
|
4414
|
+
OUTPUT_FILE="/tmp/gitops-deprovision-suite-sendgrid-subuser/mas-saas-sendgrid-subuser-output.yaml"
|
|
4415
|
+
rm "${OUTPUT_FILE}"
|
|
4416
|
+
|
|
4417
|
+
mas-saas-sendgrid-subuser \
|
|
4418
|
+
--customer-id "${ICN}" \
|
|
4419
|
+
--mas-account-id "${ACCOUNT_ID}" \
|
|
4420
|
+
--mas-cluster-id "${CLUSTER_ID}" \
|
|
4421
|
+
--mas-instance-id "${MAS_INSTANCE_ID}" \
|
|
4422
|
+
--cis-crn "${CIS_CRN}" \
|
|
4423
|
+
--cis-mas-domain "${CIS_MAS_DOMAIN}" \
|
|
4424
|
+
--output-file "${OUTPUT_FILE}" \
|
|
4425
|
+
--action delete
|
|
4426
|
+
|
|
4427
|
+
rc="$?"
|
|
4428
|
+
|
|
4429
|
+
if [[ "${rc}" != "0" ]]; then
|
|
4430
|
+
echo "mas-saas-sendgrid-subuser failed with rc ${rc}"
|
|
4431
|
+
exit ${rc}
|
|
4432
|
+
fi
|
|
4433
|
+
|
|
4434
|
+
# Pull values out of the outfile and set them as environment vars
|
|
4435
|
+
if [[ -f "${OUTPUT_FILE}" ]]; then
|
|
4436
|
+
echo "Reading outputs from ${OUTPUT_FILE}"
|
|
4437
|
+
export DELETED_SUBUSER="$(yq '.deleted_subuser // ""' "${OUTPUT_FILE}")"
|
|
4438
|
+
fi
|
|
4439
|
+
|
|
4440
|
+
if [[ "${DELETED_SUBUSER}" == "true" ]]; then
|
|
4441
|
+
SECRET_NAME_SENDGRID="ibm-customer/${ICN}/sendgrid_subuser"
|
|
4442
|
+
echo "Subuser was deleted, cleaning up ${SECRET_NAME_SENDGRID} secret"
|
|
4443
|
+
sm_delete_secret "${SECRET_NAME_SENDGRID}"
|
|
4444
|
+
fi
|
|
4445
|
+
|
|
4446
|
+
command:
|
|
4447
|
+
- /bin/sh
|
|
4448
|
+
- -c
|
|
4449
|
+
name: gitops-deprovision-suite-sendgrid-subuser
|
|
4450
|
+
imagePullPolicy: IfNotPresent
|
|
4451
|
+
image: docker-na-public.artifactory.swg-devops.com/wiotp-docker-local/mas/saas-task:latest
|
|
4311
4452
|
workspaces:
|
|
4312
4453
|
- name: configs
|
|
4313
4454
|
# --------------------------------------------------------------------------------
|
|
@@ -4399,7 +4540,7 @@ spec:
|
|
|
4399
4540
|
- -c
|
|
4400
4541
|
name: gitops-deprovision-suite-smtp-config
|
|
4401
4542
|
imagePullPolicy: IfNotPresent
|
|
4402
|
-
image: quay.io/ibmmas/cli:
|
|
4543
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4403
4544
|
workspaces:
|
|
4404
4545
|
- name: configs
|
|
4405
4546
|
# --------------------------------------------------------------------------------
|
|
@@ -4492,7 +4633,7 @@ spec:
|
|
|
4492
4633
|
- -c
|
|
4493
4634
|
name: gitops-deprovision-suite-watson-studio-config
|
|
4494
4635
|
imagePullPolicy: IfNotPresent
|
|
4495
|
-
image: quay.io/ibmmas/cli:
|
|
4636
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4496
4637
|
workspaces:
|
|
4497
4638
|
- name: configs
|
|
4498
4639
|
# --------------------------------------------------------------------------------
|
|
@@ -4583,7 +4724,7 @@ spec:
|
|
|
4583
4724
|
- -c
|
|
4584
4725
|
name: gitops-deprovision-suite-workspace
|
|
4585
4726
|
imagePullPolicy: Always
|
|
4586
|
-
image: quay.io/ibmmas/cli:
|
|
4727
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4587
4728
|
workspaces:
|
|
4588
4729
|
- name: configs
|
|
4589
4730
|
# --------------------------------------------------------------------------------
|
|
@@ -4676,7 +4817,7 @@ spec:
|
|
|
4676
4817
|
- -c
|
|
4677
4818
|
name: gitops-deprovision-suite
|
|
4678
4819
|
imagePullPolicy: IfNotPresent
|
|
4679
|
-
image: quay.io/ibmmas/cli:
|
|
4820
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4680
4821
|
workspaces:
|
|
4681
4822
|
- name: configs
|
|
4682
4823
|
|
|
@@ -4789,7 +4930,7 @@ spec:
|
|
|
4789
4930
|
- -c
|
|
4790
4931
|
name: gitops-dro
|
|
4791
4932
|
imagePullPolicy: IfNotPresent
|
|
4792
|
-
image: quay.io/ibmmas/cli:
|
|
4933
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4793
4934
|
workspaces:
|
|
4794
4935
|
- name: configs
|
|
4795
4936
|
# --------------------------------------------------------------------------------
|
|
@@ -4906,7 +5047,7 @@ spec:
|
|
|
4906
5047
|
- -c
|
|
4907
5048
|
name: gitops-efs
|
|
4908
5049
|
imagePullPolicy: IfNotPresent
|
|
4909
|
-
image: quay.io/ibmmas/cli:
|
|
5050
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
4910
5051
|
workspaces:
|
|
4911
5052
|
- name: configs
|
|
4912
5053
|
|
|
@@ -5041,7 +5182,7 @@ spec:
|
|
|
5041
5182
|
- -c
|
|
5042
5183
|
name: gitops-jdbc-config
|
|
5043
5184
|
imagePullPolicy: Always
|
|
5044
|
-
image: quay.io/ibmmas/cli:
|
|
5185
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
5045
5186
|
workspaces:
|
|
5046
5187
|
- name: configs
|
|
5047
5188
|
- name: shared-gitops-configs
|
|
@@ -5137,7 +5278,7 @@ spec:
|
|
|
5137
5278
|
- -c
|
|
5138
5279
|
name: gitops-kafka-config
|
|
5139
5280
|
imagePullPolicy: Always
|
|
5140
|
-
image: quay.io/ibmmas/cli:
|
|
5281
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
5141
5282
|
workspaces:
|
|
5142
5283
|
- name: configs
|
|
5143
5284
|
|
|
@@ -5259,7 +5400,7 @@ spec:
|
|
|
5259
5400
|
- -c
|
|
5260
5401
|
name: gitops-kafka
|
|
5261
5402
|
imagePullPolicy: IfNotPresent
|
|
5262
|
-
image: quay.io/ibmmas/cli:
|
|
5403
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
5263
5404
|
workspaces:
|
|
5264
5405
|
- name: configs
|
|
5265
5406
|
# --------------------------------------------------------------------------------
|
|
@@ -5385,7 +5526,7 @@ spec:
|
|
|
5385
5526
|
- -c
|
|
5386
5527
|
name: gitops-license
|
|
5387
5528
|
imagePullPolicy: Always
|
|
5388
|
-
image: quay.io/ibmmas/cli:
|
|
5529
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
5389
5530
|
workspaces:
|
|
5390
5531
|
- name: shared-entitlement
|
|
5391
5532
|
|
|
@@ -5559,6 +5700,14 @@ spec:
|
|
|
5559
5700
|
type: string
|
|
5560
5701
|
default: ""
|
|
5561
5702
|
|
|
5703
|
+
- name: icn
|
|
5704
|
+
type: string
|
|
5705
|
+
- name: avp_aws_secret_region
|
|
5706
|
+
type: string
|
|
5707
|
+
- name: use_sendgrid
|
|
5708
|
+
type: string
|
|
5709
|
+
default: ""
|
|
5710
|
+
|
|
5562
5711
|
stepTemplate:
|
|
5563
5712
|
name: gitops-mas-fvt-preparer
|
|
5564
5713
|
env:
|
|
@@ -5684,6 +5833,13 @@ spec:
|
|
|
5684
5833
|
- name: LDAP_CERT_ALIAS
|
|
5685
5834
|
value: ldap
|
|
5686
5835
|
|
|
5836
|
+
- name: ICN
|
|
5837
|
+
value: $(params.icn)
|
|
5838
|
+
- name: SM_AWS_REGION
|
|
5839
|
+
value: $(params.avp_aws_secret_region)
|
|
5840
|
+
- name: USE_SENDGRID
|
|
5841
|
+
value: $(params.use_sendgrid)
|
|
5842
|
+
|
|
5687
5843
|
envFrom:
|
|
5688
5844
|
- configMapRef:
|
|
5689
5845
|
name: environment-properties
|
|
@@ -5775,6 +5931,52 @@ spec:
|
|
|
5775
5931
|
check_argo_app_healthy "${SUITE_APP_NAME}" 30
|
|
5776
5932
|
check_argo_app_healthy "${WORKSPACE_APP}" 30
|
|
5777
5933
|
fi
|
|
5934
|
+
|
|
5935
|
+
|
|
5936
|
+
# If use_sendgrid: true, disable the subuser so we do not accidentally send out real emails when running tests against the instance
|
|
5937
|
+
# NOTE: Many of the FVT suites will fail unless the suite is configured to use Mailhog for SMTP, so we only plan to have smtp.use_sendgrid: true set for fvtsaastran
|
|
5938
|
+
# We only run the catalogapi FVT suite there at present, and that suite does not depend on Mailhog.
|
|
5939
|
+
# NOTE: we deliberately perform this step *after* checking application health, since disabling the sendgrid subuser will cause the validation step in the
|
|
5940
|
+
# SMTP entity manager to fail (unfortunately, there is no way to configure a SendGrid subuser to silently drop emails without the client call reporting failure)
|
|
5941
|
+
# NOTE: although we don't check the health of the SMTP app explicitly, this is not necessary since the WORKSPACE_APP (which we do check above) sync will be blocked until the SMTP
|
|
5942
|
+
# app becomes healthy (if SMTP is configured)
|
|
5943
|
+
if [[ "${USE_SENDGRID}" == "true" ]]; then
|
|
5944
|
+
|
|
5945
|
+
echo "Disabling sendgrid subuser to prevent the suite from sending out emails during test execution"
|
|
5946
|
+
|
|
5947
|
+
export AVP_TYPE="aws" # required by sm_login (only AWS supported at present)
|
|
5948
|
+
sm_login || exit 1
|
|
5949
|
+
|
|
5950
|
+
# lookup ibm-customer/<ICN>/sendgrid_subuser#username from AWS SM
|
|
5951
|
+
SECRET_NAME_SENDGRID="ibm-customer/${ICN}/sendgrid_subuser"
|
|
5952
|
+
echo "Getting ${SECRET_NAME_SENDGRID} from AWS SM"
|
|
5953
|
+
export SENDGRID_SUBUSER_USERNAME="$(sm_get_secret_value "${SECRET_NAME_SENDGRID}" "username")" # pragma: allowlist secret
|
|
5954
|
+
echo "Subuser username: ${SENDGRID_SUBUSER_USERNAME}"
|
|
5955
|
+
if [[ -z "${SENDGRID_SUBUSER_USERNAME}" || "${SENDGRID_SUBUSER_USERNAME}" == "null" ]]; then
|
|
5956
|
+
echo "Required AWS SM secret "${SECRET_NAME_SENDGRID}" not found or invalid"
|
|
5957
|
+
exit 1
|
|
5958
|
+
fi
|
|
5959
|
+
|
|
5960
|
+
curl -X PATCH \
|
|
5961
|
+
https://api.sendgrid.com/v3/subusers/${SENDGRID_SUBUSER_USERNAME} \
|
|
5962
|
+
--fail \
|
|
5963
|
+
-H "Authorization: Bearer ${SENDGRID_API_KEY}" \
|
|
5964
|
+
-H "Content-Type: application/json" \
|
|
5965
|
+
-d '{"disabled": true}'
|
|
5966
|
+
CURL_RC=$?
|
|
5967
|
+
if [ $CURL_RC -ne 0 ]; then
|
|
5968
|
+
echo "Failed to disable SendGrid subuser, aborting test"
|
|
5969
|
+
echo "WARNING: until the SendGrid subuser is disabled, the suite will be capable of sending emails for real!"
|
|
5970
|
+
echo " do not attempt to run any tests against the environment until the subuser is successfully disabled!"
|
|
5971
|
+
exit 1
|
|
5972
|
+
fi
|
|
5973
|
+
echo "SendGrid subuser ${SENDGRID_SUBUSER_USERNAME} disabled successfully!"
|
|
5974
|
+
echo "It is now safe to run tests against the environment; the suite is no longer capable of sending emails for real."
|
|
5975
|
+
|
|
5976
|
+
fi
|
|
5977
|
+
|
|
5978
|
+
# NOTE: verified that subuser teardown (including deletion of its API keys, authenticated domains and DNS records) still works as expected against a disabled subuser
|
|
5979
|
+
# so there is no need to re-enable the subuser before attempting to deprovision the MAS instance.
|
|
5778
5980
|
|
|
5779
5981
|
if [[ "$LAUNCHER_ID" == "apps" ]]; then
|
|
5780
5982
|
# The following order is defined by the sync wave order in https://github.com/ibm-mas/gitops/tree/main/root-applications/ibm-mas-instance-root/templates
|
|
@@ -5888,7 +6090,7 @@ spec:
|
|
|
5888
6090
|
- -c
|
|
5889
6091
|
name: gitops-mas-fvt-preparer
|
|
5890
6092
|
imagePullPolicy: Always
|
|
5891
|
-
image: quay.io/ibmmas/cli:
|
|
6093
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
5892
6094
|
workspaces:
|
|
5893
6095
|
- name: configs
|
|
5894
6096
|
- name: shared-additional-configs
|
|
@@ -6330,7 +6532,7 @@ spec:
|
|
|
6330
6532
|
- -c
|
|
6331
6533
|
name: gitops-mas-initiator
|
|
6332
6534
|
imagePullPolicy: IfNotPresent
|
|
6333
|
-
image: quay.io/ibmmas/cli:
|
|
6535
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
6334
6536
|
workspaces:
|
|
6335
6537
|
- name: configs
|
|
6336
6538
|
# --------------------------------------------------------------------------------
|
|
@@ -6438,7 +6640,7 @@ spec:
|
|
|
6438
6640
|
- -c
|
|
6439
6641
|
name: gitops-mongo
|
|
6440
6642
|
imagePullPolicy: IfNotPresent
|
|
6441
|
-
image: quay.io/ibmmas/cli:
|
|
6643
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
6442
6644
|
workspaces:
|
|
6443
6645
|
- name: configs
|
|
6444
6646
|
|
|
@@ -6560,7 +6762,7 @@ spec:
|
|
|
6560
6762
|
- -c
|
|
6561
6763
|
name: gitops-nvidia-gpu
|
|
6562
6764
|
imagePullPolicy: IfNotPresent
|
|
6563
|
-
image: quay.io/ibmmas/cli:
|
|
6765
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
6564
6766
|
workspaces:
|
|
6565
6767
|
- name: configs
|
|
6566
6768
|
# --------------------------------------------------------------------------------
|
|
@@ -6678,7 +6880,7 @@ spec:
|
|
|
6678
6880
|
- -c
|
|
6679
6881
|
name: gitops-process-mongo-user
|
|
6680
6882
|
imagePullPolicy: IfNotPresent
|
|
6681
|
-
image: quay.io/ibmmas/cli:
|
|
6883
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
6682
6884
|
workspaces:
|
|
6683
6885
|
- name: configs
|
|
6684
6886
|
# --------------------------------------------------------------------------------
|
|
@@ -6734,7 +6936,7 @@ spec:
|
|
|
6734
6936
|
- -c
|
|
6735
6937
|
name: gitops-rosa
|
|
6736
6938
|
imagePullPolicy: IfNotPresent
|
|
6737
|
-
image: quay.io/ibmmas/cli:
|
|
6939
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
6738
6940
|
workspaces:
|
|
6739
6941
|
- name: configs
|
|
6740
6942
|
# --------------------------------------------------------------------------------
|
|
@@ -6921,7 +7123,7 @@ spec:
|
|
|
6921
7123
|
- -c
|
|
6922
7124
|
name: gitops-suite-app-config
|
|
6923
7125
|
imagePullPolicy: IfNotPresent
|
|
6924
|
-
image: quay.io/ibmmas/cli:
|
|
7126
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
6925
7127
|
workspaces:
|
|
6926
7128
|
- name: configs
|
|
6927
7129
|
- name: shared-gitops-configs
|
|
@@ -7079,7 +7281,7 @@ spec:
|
|
|
7079
7281
|
- -c
|
|
7080
7282
|
name: gitops-suite-app-install
|
|
7081
7283
|
imagePullPolicy: Always
|
|
7082
|
-
image: quay.io/ibmmas/cli:
|
|
7284
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
7083
7285
|
workspaces:
|
|
7084
7286
|
- name: configs
|
|
7085
7287
|
- name: shared-gitops-configs
|
|
@@ -7185,7 +7387,7 @@ spec:
|
|
|
7185
7387
|
- -c
|
|
7186
7388
|
name: gitops-suite-certs
|
|
7187
7389
|
imagePullPolicy: IfNotPresent
|
|
7188
|
-
image: quay.io/ibmmas/cli:
|
|
7390
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
7189
7391
|
workspaces:
|
|
7190
7392
|
- name: configs
|
|
7191
7393
|
- name: certificates
|
|
@@ -7355,7 +7557,7 @@ spec:
|
|
|
7355
7557
|
- -c
|
|
7356
7558
|
name: gitops-suite-config
|
|
7357
7559
|
imagePullPolicy: IfNotPresent
|
|
7358
|
-
image: quay.io/ibmmas/cli:
|
|
7560
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
7359
7561
|
workspaces:
|
|
7360
7562
|
- name: configs
|
|
7361
7563
|
- name: shared-additional-configs
|
|
@@ -7455,7 +7657,7 @@ spec:
|
|
|
7455
7657
|
- -c
|
|
7456
7658
|
name: gitops-suite-dns
|
|
7457
7659
|
imagePullPolicy: IfNotPresent
|
|
7458
|
-
image: quay.io/ibmmas/cli:
|
|
7660
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
7459
7661
|
workspaces:
|
|
7460
7662
|
- name: configs
|
|
7461
7663
|
|
|
@@ -7579,7 +7781,7 @@ spec:
|
|
|
7579
7781
|
- -c
|
|
7580
7782
|
name: gitops-suite-idp-config
|
|
7581
7783
|
imagePullPolicy: IfNotPresent
|
|
7582
|
-
image: quay.io/ibmmas/cli:
|
|
7784
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
7583
7785
|
workspaces:
|
|
7584
7786
|
- name: configs
|
|
7585
7787
|
- name: shared-additional-configs
|
|
@@ -7680,10 +7882,268 @@ spec:
|
|
|
7680
7882
|
- -c
|
|
7681
7883
|
name: gitops-suite-objectstorage-config
|
|
7682
7884
|
imagePullPolicy: IfNotPresent
|
|
7683
|
-
image: quay.io/ibmmas/cli:
|
|
7885
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
7684
7886
|
workspaces:
|
|
7685
7887
|
- name: configs
|
|
7686
7888
|
- name: shared-gitops-configs
|
|
7889
|
+
# --------------------------------------------------------------------------------
|
|
7890
|
+
# /home/runner/work/cli/cli/tekton/target/tasks/gitops-suite-smtp-config-sendgrid.yaml
|
|
7891
|
+
# --------------------------------------------------------------------------------
|
|
7892
|
+
---
|
|
7893
|
+
apiVersion: tekton.dev/v1beta1
|
|
7894
|
+
kind: Task
|
|
7895
|
+
metadata:
|
|
7896
|
+
name: gitops-suite-smtp-config-sendgrid
|
|
7897
|
+
spec:
|
|
7898
|
+
params:
|
|
7899
|
+
- name: cluster_name
|
|
7900
|
+
type: string
|
|
7901
|
+
- name: account
|
|
7902
|
+
type: string
|
|
7903
|
+
- name: secrets_path
|
|
7904
|
+
type: string
|
|
7905
|
+
- name: mas_instance_id
|
|
7906
|
+
type: string
|
|
7907
|
+
- name: git_branch
|
|
7908
|
+
type: string
|
|
7909
|
+
- name: github_org
|
|
7910
|
+
type: string
|
|
7911
|
+
- name: github_repo
|
|
7912
|
+
type: string
|
|
7913
|
+
- name: github_host
|
|
7914
|
+
type: string
|
|
7915
|
+
- name: avp_aws_secret_region
|
|
7916
|
+
type: string
|
|
7917
|
+
- name: mas_smtpcfg_pod_template_yaml
|
|
7918
|
+
type: string
|
|
7919
|
+
default: ""
|
|
7920
|
+
|
|
7921
|
+
- name: icn
|
|
7922
|
+
type: string
|
|
7923
|
+
- name: mas_domain
|
|
7924
|
+
type: string
|
|
7925
|
+
- name: cis_mas_domain
|
|
7926
|
+
type: string
|
|
7927
|
+
- name: cis_crn
|
|
7928
|
+
type: string
|
|
7929
|
+
stepTemplate:
|
|
7930
|
+
name: gitops-suite-smtp-config
|
|
7931
|
+
env:
|
|
7932
|
+
- name: CLUSTER_ID
|
|
7933
|
+
value: $(params.cluster_name)
|
|
7934
|
+
- name: ACCOUNT_ID
|
|
7935
|
+
value: $(params.account)
|
|
7936
|
+
- name: SECRETS_PATH
|
|
7937
|
+
value: $(params.secrets_path)
|
|
7938
|
+
- name: MAS_INSTANCE_ID
|
|
7939
|
+
value: $(params.mas_instance_id)
|
|
7940
|
+
- name: GIT_BRANCH
|
|
7941
|
+
value: $(params.git_branch)
|
|
7942
|
+
- name: GITHUB_ORG
|
|
7943
|
+
value: $(params.github_org)
|
|
7944
|
+
- name: GITHUB_HOST
|
|
7945
|
+
value: $(params.github_host)
|
|
7946
|
+
- name: GITHUB_REPO
|
|
7947
|
+
value: $(params.github_repo)
|
|
7948
|
+
- name: SM_AWS_REGION
|
|
7949
|
+
value: $(params.avp_aws_secret_region)
|
|
7950
|
+
- name: MAS_SMTPCFG_POD_TEMPLATE_YAML
|
|
7951
|
+
value: $(params.mas_smtpcfg_pod_template_yaml)
|
|
7952
|
+
|
|
7953
|
+
- name: ICN
|
|
7954
|
+
value: $(params.icn)
|
|
7955
|
+
- name: MAS_DOMAIN
|
|
7956
|
+
value: $(params.mas_domain)
|
|
7957
|
+
- name: CIS_MAS_DOMAIN
|
|
7958
|
+
value: $(params.cis_mas_domain)
|
|
7959
|
+
- name: CIS_CRN
|
|
7960
|
+
value: $(params.cis_crn)
|
|
7961
|
+
envFrom:
|
|
7962
|
+
- configMapRef:
|
|
7963
|
+
name: environment-properties
|
|
7964
|
+
optional: true
|
|
7965
|
+
- secretRef:
|
|
7966
|
+
name: secure-properties
|
|
7967
|
+
|
|
7968
|
+
steps:
|
|
7969
|
+
- args:
|
|
7970
|
+
- |-
|
|
7971
|
+
|
|
7972
|
+
# Expected secure-properties (sourced from IBM Cloud SM):
|
|
7973
|
+
# -------------------
|
|
7974
|
+
# SM_AWS_ACCESS_KEY_ID
|
|
7975
|
+
# SM_AWS_SECRET_ACCESS_KEY
|
|
7976
|
+
# SENDGRID_API_KEY
|
|
7977
|
+
# GITHUB_PAT
|
|
7978
|
+
|
|
7979
|
+
source /mascli/functions/gitops_utils
|
|
7980
|
+
|
|
7981
|
+
export AVP_TYPE="aws"
|
|
7982
|
+
sm_login || exit 1
|
|
7983
|
+
|
|
7984
|
+
# Fetch CIS API Key from AWS SM.
|
|
7985
|
+
# This is suitable for use with CIS instances used by MAS instances in the cluster we are targetting
|
|
7986
|
+
SECRET_NAME_CIS="${ACCOUNT_ID}/${CLUSTER_ID}/cis"
|
|
7987
|
+
echo "Getting ${SECRET_NAME_CIS} from AWS SM"
|
|
7988
|
+
export CIS_APIKEY="$(sm_get_secret_value "${SECRET_NAME_CIS}" "ibm_apikey")" # pragma: allowlist secret
|
|
7989
|
+
if [[ -z "${CIS_APIKEY}" || "${CIS_APIKEY}" == "null" ]]; then
|
|
7990
|
+
echo "Required AWS SM secret "${SECRET_NAME_CIS}" not found or invalid"
|
|
7991
|
+
exit 1
|
|
7992
|
+
fi
|
|
7993
|
+
|
|
7994
|
+
mkdir -p /tmp/init-suite-smtp-config
|
|
7995
|
+
|
|
7996
|
+
git config --global user.name "MAS Automation"
|
|
7997
|
+
git config --global user.email "you@example.com"
|
|
7998
|
+
git config --global user.password "${GITHUB_PAT}"
|
|
7999
|
+
|
|
8000
|
+
OUTPUT_FILE="/tmp/init-suite-smtp-config/mas-saas-sendgrid-subuser-output.yaml"
|
|
8001
|
+
rm "${OUTPUT_FILE}"
|
|
8002
|
+
|
|
8003
|
+
mas-saas-sendgrid-subuser \
|
|
8004
|
+
--customer-id "${ICN}" \
|
|
8005
|
+
--cis-mas-domain "${CIS_MAS_DOMAIN}" \
|
|
8006
|
+
--mas-account-id "${ACCOUNT_ID}" \
|
|
8007
|
+
--mas-cluster-id "${CLUSTER_ID}" \
|
|
8008
|
+
--mas-instance-id "${MAS_INSTANCE_ID}" \
|
|
8009
|
+
--cis-crn "${CIS_CRN}" \
|
|
8010
|
+
--output-file "${OUTPUT_FILE}" \
|
|
8011
|
+
--action create
|
|
8012
|
+
|
|
8013
|
+
rc="$?"
|
|
8014
|
+
|
|
8015
|
+
echo "mas-saas-sendgrid-subuser rc: ${rc}"
|
|
8016
|
+
|
|
8017
|
+
# Pull values out of the outfile and set them as environment vars
|
|
8018
|
+
if [[ -f "${OUTPUT_FILE}" ]]; then
|
|
8019
|
+
echo "Reading outputs from ${OUTPUT_FILE}"
|
|
8020
|
+
export SUBUSER_USERNAME="$(yq '.subuser.username // ""' "${OUTPUT_FILE}")" # pragma: allowlist secret
|
|
8021
|
+
export SUBUSER_PASSWORD="$(yq '.subuser.password // ""' "${OUTPUT_FILE}")" # pragma: allowlist secret
|
|
8022
|
+
export SENDGRID_APIKEY_USERNAME="apikey" # pragma: allowlist secret
|
|
8023
|
+
export SENDGRID_APIKEY_PASSWORD="$(yq '.apikey // ""' "${OUTPUT_FILE}")" # pragma: allowlist secret
|
|
8024
|
+
fi
|
|
8025
|
+
|
|
8026
|
+
# If an API key was generated by the script (even if something went wrong in later step)
|
|
8027
|
+
# this is our only opportunity to obtain its value so we need to register it in secrets manager now
|
|
8028
|
+
# so it'll be present when whatever the issue is resolved and the instance pipeline is rerun
|
|
8029
|
+
update_apikey_secret_rc="0"
|
|
8030
|
+
if [[ -n "${SENDGRID_APIKEY_PASSWORD}" ]]; then
|
|
8031
|
+
SECRET_NAME_SMTP="${ACCOUNT_ID}/${CLUSTER_ID}/${MAS_INSTANCE_ID}/smtp"
|
|
8032
|
+
echo "Putting generated API Key in ${SECRET_NAME_SMTP}"
|
|
8033
|
+
|
|
8034
|
+
# NOTE: deliberately not using $SMTP_USERNAME or $SMTP_PASSWORD here, since we don't need/want the gitops-mas-config to repeat this step
|
|
8035
|
+
TAGS="[{\"Key\": \"source\", \"Value\": \"gitops_suite_smtp_config_sendgrid\"}, {\"Key\": \"account\", \"Value\": \"${ACCOUNT_ID}\"}, {\"Key\": \"cluster\", \"Value\": \"${CLUSTER_ID}\"}]"
|
|
8036
|
+
# NOTE: running function in a subshell so we don't exit this script if something goes wrong (necessary due to the use of "set +o pipefail" in sm_update_secret)
|
|
8037
|
+
(sm_update_secret "${SECRET_NAME_SMTP}" "{\"username\": \"$SENDGRID_APIKEY_USERNAME\", \"password\": \"$SENDGRID_APIKEY_PASSWORD\"}" "${TAGS}")
|
|
8038
|
+
|
|
8039
|
+
# defer exiting the script if the sm_update_secret call above failed, so we have an opportunity to register other generated secrets
|
|
8040
|
+
update_apikey_secret_rc="$?"
|
|
8041
|
+
fi
|
|
8042
|
+
|
|
8043
|
+
# If a new subuser was created by the script (even if something went wrong in a later step)
|
|
8044
|
+
# this is our only opportunity to store the password we generated for the subuser
|
|
8045
|
+
update_subuser_secret_rc="0"
|
|
8046
|
+
if [[ -n "${SUBUSER_PASSWORD}" ]]; then
|
|
8047
|
+
SECRET_NAME_SENDGRID="ibm-customer/${ICN}/sendgrid_subuser"
|
|
8048
|
+
TAGS="[{\"Key\": \"source\", \"Value\": \"gitops_suite_smtp_config_sendgrid\"}]"
|
|
8049
|
+
echo "Putting generated subuser credentials in ${SECRET_NAME_SENDGRID}"
|
|
8050
|
+
(sm_update_secret "${SECRET_NAME_SENDGRID}" "{\"username\": \"$SUBUSER_USERNAME\", \"password\": \"$SUBUSER_PASSWORD\"}" "${TAGS}")
|
|
8051
|
+
|
|
8052
|
+
# defer exiting the script if the sm_update_secret call above failed, so we have an opportunity to register other generated secrets
|
|
8053
|
+
update_subuser_secret_rc="$?"
|
|
8054
|
+
fi
|
|
8055
|
+
|
|
8056
|
+
echo "update_apikey_secret_rc: ${update_apikey_secret_rc}"
|
|
8057
|
+
echo "update_subuser_secret_rc: ${update_subuser_secret_rc}"
|
|
8058
|
+
|
|
8059
|
+
if [[ "${update_apikey_secret_rc}" != "0" ]]; then
|
|
8060
|
+
# We could add additional automation to deal with the (rare) edge case of the SM update failing.
|
|
8061
|
+
# i.e. add a "force_regenerate_api_key" flag that can be set before rerunning the pipeline
|
|
8062
|
+
# but I think - given the rarity - just documenting the manual resolution steps below will suffice.
|
|
8063
|
+
# another mitigation would be to add retry logic to the sm_update_secret call above
|
|
8064
|
+
echo "Failed to write generated API Key to AWS Secrets Manager!"
|
|
8065
|
+
echo "The API Key value is now lost and cannot be retrieved, manual intervention is required before rerunning the pipeline:"
|
|
8066
|
+
echo " - Log in to the SendGrid parent account"
|
|
8067
|
+
echo " - Switch to the subuser's account (which will start with ${ICN}, the full value will be in the logs above)"
|
|
8068
|
+
echo " - Locate and delete the API Key for this MAS instance - its name will be in the logs above"
|
|
8069
|
+
echo " - A new API Key for the MAS instance will be generated by this Task in the next pipeline run"
|
|
8070
|
+
rc="${update_apikey_secret_rc}"
|
|
8071
|
+
fi
|
|
8072
|
+
|
|
8073
|
+
|
|
8074
|
+
|
|
8075
|
+
if [[ "${update_subuser_secret_rc}" != "0" ]]; then
|
|
8076
|
+
# We could add additional automation to deal with the (rare) edge case of the SM update failing.
|
|
8077
|
+
# but I think - given the rarity - just documenting the manual resolution steps below will suffice.
|
|
8078
|
+
echo "Failed to write generated subuser username and password to AWS Secrets Manager!"
|
|
8079
|
+
echo "The generated password value is now lost and cannot be retrieved, manual intervention is required before rerunning the pipeline:"
|
|
8080
|
+
echo " - Log in to the SendGrid parent account"
|
|
8081
|
+
echo " - Go to Settings -> Subuser management"
|
|
8082
|
+
echo " - Locate and delete the subuser generated by the script above. The username will start with ${ICN}, the full value will be in the logs above."
|
|
8083
|
+
echo " - A new subuser will be created for the customer in the next pipeline run"
|
|
8084
|
+
rc="${update_subuser_secret_rc}"
|
|
8085
|
+
fi
|
|
8086
|
+
|
|
8087
|
+
|
|
8088
|
+
if [[ "${rc}" != "0" ]]; then
|
|
8089
|
+
echo "mas-saas-sendgrid-subuser failed with rc ${rc}"
|
|
8090
|
+
exit ${rc}
|
|
8091
|
+
fi
|
|
8092
|
+
|
|
8093
|
+
export SMTP_DISPLAY_NAME="SendGrid"
|
|
8094
|
+
export SMTP_HOST="smtp.sendgrid.net"
|
|
8095
|
+
export SMTP_PORT="465"
|
|
8096
|
+
export SMTP_SECURITY="SSL"
|
|
8097
|
+
export SMTP_AUTHENTICATION="true"
|
|
8098
|
+
export SMTP_DEFAULT_SENDER_EMAIL="mas.admin@${CIS_MAS_DOMAIN:-${MAS_DOMAIN}}" # use dns.cis.mas_domain if set, otherwise fallback to mas_instance.mas_domain
|
|
8099
|
+
export SMTP_DEFAULT_SENDER_NAME="MASAdmin"
|
|
8100
|
+
export SMTP_DEFAULT_RECIPIENT_EMAIL="mas.ms.smtp@ibm.com"
|
|
8101
|
+
export SMTP_DEFAULT_SHOULD_EMAIL_PASSWORDS="true"
|
|
8102
|
+
|
|
8103
|
+
# Ensure any SMTP_USERNAME/SMTP_PASSWORD values set in pipeline context properties
|
|
8104
|
+
# are not used by the gitops-mas-config script to override the values in the AWS SM Secret
|
|
8105
|
+
unset SMTP_USERNAME
|
|
8106
|
+
unset SMTP_PASSWORD
|
|
8107
|
+
|
|
8108
|
+
mas gitops-mas-config \
|
|
8109
|
+
--account-id "$ACCOUNT_ID" \
|
|
8110
|
+
--cluster-id "$CLUSTER_ID" \
|
|
8111
|
+
--mas-instance-id "$MAS_INSTANCE_ID" \
|
|
8112
|
+
--secrets-path "$SECRETS_PATH" \
|
|
8113
|
+
--github-push \
|
|
8114
|
+
--github-host "$GITHUB_HOST" \
|
|
8115
|
+
--github-org "$GITHUB_ORG" \
|
|
8116
|
+
--github-repo "$GITHUB_REPO" \
|
|
8117
|
+
--git-branch "$GIT_BRANCH" \
|
|
8118
|
+
--config-action upsert \
|
|
8119
|
+
--mas-config-scope system \
|
|
8120
|
+
--mas-config-type smtp \
|
|
8121
|
+
--dir /tmp/init-suite-smtp-config \
|
|
8122
|
+
--smtp-display-name "${SMTP_DISPLAY_NAME}" \
|
|
8123
|
+
--smtp-host "${SMTP_HOST}" \
|
|
8124
|
+
--smtp-port "${SMTP_PORT}" \
|
|
8125
|
+
--smtp-security "${SMTP_SECURITY}" \
|
|
8126
|
+
--smtp-authentication "${SMTP_AUTHENTICATION}" \
|
|
8127
|
+
--smtp-default-sender-email "${SMTP_DEFAULT_SENDER_EMAIL}" \
|
|
8128
|
+
--smtp-default-sender-name "${SMTP_DEFAULT_SENDER_NAME}" \
|
|
8129
|
+
--smtp-default-recipient-email "${SMTP_DEFAULT_RECIPIENT_EMAIL}" \
|
|
8130
|
+
--smtp-default-should-email-passwords "${SMTP_DEFAULT_SHOULD_EMAIL_PASSWORDS}" \
|
|
8131
|
+
--mas-smtpcfg-pod-template-yaml "${MAS_SMTPCFG_POD_TEMPLATE_YAML}"
|
|
8132
|
+
|
|
8133
|
+
exit $?
|
|
8134
|
+
|
|
8135
|
+
command:
|
|
8136
|
+
- /bin/sh
|
|
8137
|
+
- -c
|
|
8138
|
+
name: gitops-suite-smtp-config-sendgrid
|
|
8139
|
+
imagePullPolicy: IfNotPresent
|
|
8140
|
+
image: docker-na-public.artifactory.swg-devops.com/wiotp-docker-local/mas/saas-task:latest
|
|
8141
|
+
workspaces:
|
|
8142
|
+
- name: configs
|
|
8143
|
+
|
|
8144
|
+
|
|
8145
|
+
|
|
8146
|
+
|
|
7687
8147
|
# --------------------------------------------------------------------------------
|
|
7688
8148
|
# /home/runner/work/cli/cli/tekton/target/tasks/gitops-suite-smtp-config.yaml
|
|
7689
8149
|
# --------------------------------------------------------------------------------
|
|
@@ -7821,7 +8281,7 @@ spec:
|
|
|
7821
8281
|
- -c
|
|
7822
8282
|
name: gitops-suite-smtp-config
|
|
7823
8283
|
imagePullPolicy: IfNotPresent
|
|
7824
|
-
image: quay.io/ibmmas/cli:
|
|
8284
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
7825
8285
|
workspaces:
|
|
7826
8286
|
- name: configs
|
|
7827
8287
|
|
|
@@ -7930,7 +8390,7 @@ spec:
|
|
|
7930
8390
|
- -c
|
|
7931
8391
|
name: gitops-suite-watson-studio-config
|
|
7932
8392
|
imagePullPolicy: IfNotPresent
|
|
7933
|
-
image: quay.io/ibmmas/cli:
|
|
8393
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
7934
8394
|
workspaces:
|
|
7935
8395
|
- name: configs
|
|
7936
8396
|
- name: shared-gitops-configs
|
|
@@ -8027,7 +8487,7 @@ spec:
|
|
|
8027
8487
|
- -c
|
|
8028
8488
|
name: gitops-suite-workspace
|
|
8029
8489
|
imagePullPolicy: IfNotPresent
|
|
8030
|
-
image: quay.io/ibmmas/cli:
|
|
8490
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
8031
8491
|
workspaces:
|
|
8032
8492
|
- name: configs
|
|
8033
8493
|
# --------------------------------------------------------------------------------
|
|
@@ -8307,7 +8767,7 @@ spec:
|
|
|
8307
8767
|
- -c
|
|
8308
8768
|
name: gitops-suite
|
|
8309
8769
|
imagePullPolicy: IfNotPresent
|
|
8310
|
-
image: quay.io/ibmmas/cli:
|
|
8770
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
8311
8771
|
workspaces:
|
|
8312
8772
|
- name: configs
|
|
8313
8773
|
- name: shared-gitops-configs
|
|
@@ -8357,7 +8817,7 @@ spec:
|
|
|
8357
8817
|
|
|
8358
8818
|
steps:
|
|
8359
8819
|
- name: grafana
|
|
8360
|
-
image: quay.io/ibmmas/cli:
|
|
8820
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
8361
8821
|
imagePullPolicy: $(params.image_pull_policy)
|
|
8362
8822
|
command:
|
|
8363
8823
|
- /opt/app-root/src/run-role.sh
|
|
@@ -8491,7 +8951,7 @@ spec:
|
|
|
8491
8951
|
command:
|
|
8492
8952
|
- /opt/app-root/src/run-role.sh
|
|
8493
8953
|
- ibm_catalogs
|
|
8494
|
-
image: quay.io/ibmmas/cli:
|
|
8954
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
8495
8955
|
imagePullPolicy: $(params.image_pull_policy)
|
|
8496
8956
|
workingDir: /workspace/configs
|
|
8497
8957
|
# --------------------------------------------------------------------------------
|
|
@@ -8733,7 +9193,7 @@ spec:
|
|
|
8733
9193
|
command:
|
|
8734
9194
|
- /opt/app-root/src/run-role.sh
|
|
8735
9195
|
- kafka
|
|
8736
|
-
image: quay.io/ibmmas/cli:
|
|
9196
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
8737
9197
|
imagePullPolicy: $(params.image_pull_policy)
|
|
8738
9198
|
workingDir: /workspace/configs
|
|
8739
9199
|
|
|
@@ -8949,7 +9409,7 @@ spec:
|
|
|
8949
9409
|
command:
|
|
8950
9410
|
- /opt/app-root/src/run-role.sh
|
|
8951
9411
|
- kmodels
|
|
8952
|
-
image: quay.io/ibmmas/cli:
|
|
9412
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
8953
9413
|
imagePullPolicy: $(params.image_pull_policy)
|
|
8954
9414
|
# --------------------------------------------------------------------------------
|
|
8955
9415
|
# /home/runner/work/cli/cli/tekton/target/tasks/mongodb.yaml
|
|
@@ -9127,7 +9587,7 @@ spec:
|
|
|
9127
9587
|
command:
|
|
9128
9588
|
- /opt/app-root/src/run-role.sh
|
|
9129
9589
|
- mongodb
|
|
9130
|
-
image: quay.io/ibmmas/cli:
|
|
9590
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9131
9591
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9132
9592
|
workingDir: /workspace/configs
|
|
9133
9593
|
|
|
@@ -9170,7 +9630,7 @@ spec:
|
|
|
9170
9630
|
- $(params.base_output_dir)
|
|
9171
9631
|
- --extra-namespaces
|
|
9172
9632
|
- selenium
|
|
9173
|
-
image: quay.io/ibmmas/cli:
|
|
9633
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9174
9634
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9175
9635
|
env:
|
|
9176
9636
|
- name: DEVOPS_MONGO_URI
|
|
@@ -9287,7 +9747,7 @@ spec:
|
|
|
9287
9747
|
command:
|
|
9288
9748
|
- /opt/app-root/src/run-role.sh
|
|
9289
9749
|
- nvidia_gpu
|
|
9290
|
-
image: quay.io/ibmmas/cli:
|
|
9750
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9291
9751
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9292
9752
|
workingDir: /workspace/configs
|
|
9293
9753
|
|
|
@@ -9323,7 +9783,7 @@ spec:
|
|
|
9323
9783
|
# Verify Cluster
|
|
9324
9784
|
# -------------------------------------------------------------------------
|
|
9325
9785
|
- name: ocp-verify-cluster
|
|
9326
|
-
image: quay.io/ibmmas/cli:
|
|
9786
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9327
9787
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9328
9788
|
command:
|
|
9329
9789
|
- /opt/app-root/src/run-role.sh
|
|
@@ -9365,7 +9825,7 @@ spec:
|
|
|
9365
9825
|
# Verify Catalogs
|
|
9366
9826
|
# -------------------------------------------------------------------------
|
|
9367
9827
|
- name: ocp-verify-catalogs
|
|
9368
|
-
image: quay.io/ibmmas/cli:
|
|
9828
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9369
9829
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9370
9830
|
command:
|
|
9371
9831
|
- /opt/app-root/src/run-role.sh
|
|
@@ -9407,7 +9867,7 @@ spec:
|
|
|
9407
9867
|
# Verify Subscriptions
|
|
9408
9868
|
# -------------------------------------------------------------------------
|
|
9409
9869
|
- name: ocp-verify-subscriptions
|
|
9410
|
-
image: quay.io/ibmmas/cli:
|
|
9870
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9411
9871
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9412
9872
|
command:
|
|
9413
9873
|
- /opt/app-root/src/run-role.sh
|
|
@@ -9449,7 +9909,7 @@ spec:
|
|
|
9449
9909
|
# Verify Workloads
|
|
9450
9910
|
# -------------------------------------------------------------------------
|
|
9451
9911
|
- name: ocp-verify-workloads
|
|
9452
|
-
image: quay.io/ibmmas/cli:
|
|
9912
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9453
9913
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9454
9914
|
command:
|
|
9455
9915
|
- /opt/app-root/src/run-role.sh
|
|
@@ -9491,7 +9951,7 @@ spec:
|
|
|
9491
9951
|
# Verify Catalogs - Ingress TLS
|
|
9492
9952
|
# -------------------------------------------------------------------------
|
|
9493
9953
|
- name: ocp-verify-ingress
|
|
9494
|
-
image: quay.io/ibmmas/cli:
|
|
9954
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9495
9955
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9496
9956
|
command:
|
|
9497
9957
|
- /opt/app-root/src/run-role.sh
|
|
@@ -9617,7 +10077,7 @@ spec:
|
|
|
9617
10077
|
command:
|
|
9618
10078
|
- /opt/app-root/src/run-role.sh
|
|
9619
10079
|
- ocp_verify
|
|
9620
|
-
image: quay.io/ibmmas/cli:
|
|
10080
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9621
10081
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9622
10082
|
workingDir: /workspace/configs
|
|
9623
10083
|
# --------------------------------------------------------------------------------
|
|
@@ -9685,7 +10145,7 @@ spec:
|
|
|
9685
10145
|
command:
|
|
9686
10146
|
- /opt/app-root/src/run-role.sh
|
|
9687
10147
|
- ocs
|
|
9688
|
-
image: quay.io/ibmmas/cli:
|
|
10148
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9689
10149
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9690
10150
|
workingDir: /workspace/configs
|
|
9691
10151
|
|
|
@@ -9921,7 +10381,7 @@ spec:
|
|
|
9921
10381
|
command:
|
|
9922
10382
|
- /opt/app-root/src/run-role.sh
|
|
9923
10383
|
- odh
|
|
9924
|
-
image: quay.io/ibmmas/cli:
|
|
10384
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
9925
10385
|
imagePullPolicy: $(params.image_pull_policy)
|
|
9926
10386
|
# --------------------------------------------------------------------------------
|
|
9927
10387
|
# /home/runner/work/cli/cli/tekton/target/tasks/sls-registry-update.yaml
|
|
@@ -10097,7 +10557,7 @@ spec:
|
|
|
10097
10557
|
command:
|
|
10098
10558
|
- /opt/app-root/src/run-role.sh
|
|
10099
10559
|
- sls
|
|
10100
|
-
image: quay.io/ibmmas/cli:
|
|
10560
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
10101
10561
|
imagePullPolicy: $(params.image_pull_policy)
|
|
10102
10562
|
workingDir: /workspace/configs
|
|
10103
10563
|
|
|
@@ -10486,12 +10946,12 @@ spec:
|
|
|
10486
10946
|
command:
|
|
10487
10947
|
- /opt/app-root/src/run-role.sh
|
|
10488
10948
|
- suite_app_config
|
|
10489
|
-
image: quay.io/ibmmas/cli:
|
|
10949
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
10490
10950
|
imagePullPolicy: $(params.image_pull_policy)
|
|
10491
10951
|
|
|
10492
|
-
# If configmap/approval-app-cfg-$(params.mas_app_id) exists then set
|
|
10952
|
+
# If configmap/approval-app-cfg-$(params.mas_app_id) exists then set STATUS=pending and wait for it to be changed to "approved"
|
|
10493
10953
|
- name: app-cfg-post-verify
|
|
10494
|
-
image: quay.io/ibmmas/cli:
|
|
10954
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
10495
10955
|
imagePullPolicy: $(params.image_pull_policy)
|
|
10496
10956
|
command:
|
|
10497
10957
|
- /opt/app-root/src/wait-for-configmap.sh
|
|
@@ -10500,12 +10960,6 @@ spec:
|
|
|
10500
10960
|
value: $(context.taskRun.namespace)
|
|
10501
10961
|
- name: CONFIGMAP_NAME
|
|
10502
10962
|
value: approval-app-cfg-$(params.mas_app_id)
|
|
10503
|
-
- name: CONFIGMAP_KEY
|
|
10504
|
-
valueFrom:
|
|
10505
|
-
configMapKeyRef:
|
|
10506
|
-
name: approval-app-cfg-$(params.mas_app_id)
|
|
10507
|
-
key: CONFIGMAP_KEY
|
|
10508
|
-
optional: true
|
|
10509
10963
|
- name: CONFIGMAP_INITIAL_VALUE
|
|
10510
10964
|
value: pending
|
|
10511
10965
|
- name: CONFIGMAP_TARGET_VALUE
|
|
@@ -10692,7 +11146,7 @@ spec:
|
|
|
10692
11146
|
command:
|
|
10693
11147
|
- /opt/app-root/src/run-role.sh
|
|
10694
11148
|
- suite_app_install
|
|
10695
|
-
image: quay.io/ibmmas/cli:
|
|
11149
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
10696
11150
|
imagePullPolicy: $(params.image_pull_policy)
|
|
10697
11151
|
|
|
10698
11152
|
workspaces:
|
|
@@ -10781,7 +11235,7 @@ spec:
|
|
|
10781
11235
|
command:
|
|
10782
11236
|
- /opt/app-root/src/run-role.sh
|
|
10783
11237
|
- suite_app_rollback
|
|
10784
|
-
image: quay.io/ibmmas/cli:
|
|
11238
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
10785
11239
|
imagePullPolicy: $(params.image_pull_policy)
|
|
10786
11240
|
# --------------------------------------------------------------------------------
|
|
10787
11241
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-app-uninstall.yaml
|
|
@@ -10844,7 +11298,7 @@ spec:
|
|
|
10844
11298
|
command:
|
|
10845
11299
|
- /opt/app-root/src/run-role.sh
|
|
10846
11300
|
- suite_app_uninstall
|
|
10847
|
-
image: quay.io/ibmmas/cli:
|
|
11301
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
10848
11302
|
imagePullPolicy: $(params.image_pull_policy)
|
|
10849
11303
|
# --------------------------------------------------------------------------------
|
|
10850
11304
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-app-upgrade.yaml
|
|
@@ -10919,7 +11373,7 @@ spec:
|
|
|
10919
11373
|
command:
|
|
10920
11374
|
- /opt/app-root/src/run-role.sh
|
|
10921
11375
|
- suite_app_upgrade
|
|
10922
|
-
image: quay.io/ibmmas/cli:
|
|
11376
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
10923
11377
|
imagePullPolicy: $(params.image_pull_policy)
|
|
10924
11378
|
# --------------------------------------------------------------------------------
|
|
10925
11379
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-app-verify.yaml
|
|
@@ -11020,7 +11474,7 @@ spec:
|
|
|
11020
11474
|
command:
|
|
11021
11475
|
- /opt/app-root/src/run-role.sh
|
|
11022
11476
|
- suite_app_verify
|
|
11023
|
-
image: quay.io/ibmmas/cli:
|
|
11477
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11024
11478
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11025
11479
|
# --------------------------------------------------------------------------------
|
|
11026
11480
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-certs.yaml
|
|
@@ -11163,7 +11617,7 @@ spec:
|
|
|
11163
11617
|
command:
|
|
11164
11618
|
- /opt/app-root/src/run-role.sh
|
|
11165
11619
|
- suite_certs
|
|
11166
|
-
image: quay.io/ibmmas/cli:
|
|
11620
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11167
11621
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11168
11622
|
|
|
11169
11623
|
workspaces:
|
|
@@ -11230,7 +11684,7 @@ spec:
|
|
|
11230
11684
|
command:
|
|
11231
11685
|
- /opt/app-root/src/run-role.sh
|
|
11232
11686
|
- suite_config
|
|
11233
|
-
image: quay.io/ibmmas/cli:
|
|
11687
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11234
11688
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11235
11689
|
workingDir: /workspace/configs
|
|
11236
11690
|
|
|
@@ -11301,7 +11755,7 @@ spec:
|
|
|
11301
11755
|
command:
|
|
11302
11756
|
- /opt/app-root/src/run-role.sh
|
|
11303
11757
|
- suite_db2_setup_for_manage
|
|
11304
|
-
image: quay.io/ibmmas/cli:
|
|
11758
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11305
11759
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11306
11760
|
# --------------------------------------------------------------------------------
|
|
11307
11761
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-dns.yaml
|
|
@@ -11491,7 +11945,7 @@ spec:
|
|
|
11491
11945
|
command:
|
|
11492
11946
|
- /opt/app-root/src/run-role.sh
|
|
11493
11947
|
- suite_dns
|
|
11494
|
-
image: quay.io/ibmmas/cli:
|
|
11948
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11495
11949
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11496
11950
|
# --------------------------------------------------------------------------------
|
|
11497
11951
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-install.yaml
|
|
@@ -11740,7 +12194,7 @@ spec:
|
|
|
11740
12194
|
command:
|
|
11741
12195
|
- /opt/app-root/src/run-role.sh
|
|
11742
12196
|
- suite_install
|
|
11743
|
-
image: quay.io/ibmmas/cli:
|
|
12197
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11744
12198
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11745
12199
|
workingDir: /workspace/configs
|
|
11746
12200
|
|
|
@@ -11828,7 +12282,7 @@ spec:
|
|
|
11828
12282
|
command:
|
|
11829
12283
|
- /opt/app-root/src/run-role.sh
|
|
11830
12284
|
- suite_rollback
|
|
11831
|
-
image: quay.io/ibmmas/cli:
|
|
12285
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11832
12286
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11833
12287
|
# --------------------------------------------------------------------------------
|
|
11834
12288
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-uninstall.yaml
|
|
@@ -11893,7 +12347,7 @@ spec:
|
|
|
11893
12347
|
command:
|
|
11894
12348
|
- /opt/app-root/src/run-role.sh
|
|
11895
12349
|
- suite_uninstall
|
|
11896
|
-
image: quay.io/ibmmas/cli:
|
|
12350
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11897
12351
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11898
12352
|
# --------------------------------------------------------------------------------
|
|
11899
12353
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-upgrade.yaml
|
|
@@ -11963,7 +12417,7 @@ spec:
|
|
|
11963
12417
|
command:
|
|
11964
12418
|
- /opt/app-root/src/run-role.sh
|
|
11965
12419
|
- suite_upgrade
|
|
11966
|
-
image: quay.io/ibmmas/cli:
|
|
12420
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
11967
12421
|
imagePullPolicy: $(params.image_pull_policy)
|
|
11968
12422
|
# --------------------------------------------------------------------------------
|
|
11969
12423
|
# /home/runner/work/cli/cli/tekton/target/tasks/suite-verify.yaml
|
|
@@ -12030,12 +12484,12 @@ spec:
|
|
|
12030
12484
|
command:
|
|
12031
12485
|
- /opt/app-root/src/run-role.sh
|
|
12032
12486
|
- suite_verify
|
|
12033
|
-
image: quay.io/ibmmas/cli:
|
|
12487
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12034
12488
|
imagePullPolicy: $(params.image_pull_policy)
|
|
12035
12489
|
|
|
12036
|
-
# If configmap/approval-suite-verify exists then set
|
|
12490
|
+
# If configmap/approval-suite-verify exists then set STATUS=pending and wait for it to be changed to "approved"
|
|
12037
12491
|
- name: suite-post-verify
|
|
12038
|
-
image: quay.io/ibmmas/cli:
|
|
12492
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12039
12493
|
imagePullPolicy: $(params.image_pull_policy)
|
|
12040
12494
|
script: |
|
|
12041
12495
|
#!/usr/bin/env bash
|
|
@@ -12047,12 +12501,6 @@ spec:
|
|
|
12047
12501
|
value: $(context.taskRun.namespace)
|
|
12048
12502
|
- name: CONFIGMAP_NAME
|
|
12049
12503
|
value: approval-suite-verify
|
|
12050
|
-
- name: CONFIGMAP_KEY
|
|
12051
|
-
valueFrom:
|
|
12052
|
-
configMapKeyRef:
|
|
12053
|
-
name: approval-suite-verify
|
|
12054
|
-
key: CONFIGMAP_KEY
|
|
12055
|
-
optional: true
|
|
12056
12504
|
- name: CONFIGMAP_INITIAL_VALUE
|
|
12057
12505
|
value: pending
|
|
12058
12506
|
- name: CONFIGMAP_TARGET_VALUE
|
|
@@ -12169,7 +12617,7 @@ spec:
|
|
|
12169
12617
|
command:
|
|
12170
12618
|
- /opt/app-root/src/run-role.sh
|
|
12171
12619
|
- turbonomic
|
|
12172
|
-
image: quay.io/ibmmas/cli:
|
|
12620
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12173
12621
|
imagePullPolicy: $(params.image_pull_policy)
|
|
12174
12622
|
# --------------------------------------------------------------------------------
|
|
12175
12623
|
# /home/runner/work/cli/cli/tekton/target/tasks/uds.yaml
|
|
@@ -12250,7 +12698,7 @@ spec:
|
|
|
12250
12698
|
# IBM User Data Services (UDS)
|
|
12251
12699
|
# -------------------------------------------------------------------------
|
|
12252
12700
|
- name: uds
|
|
12253
|
-
image: quay.io/ibmmas/cli:
|
|
12701
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12254
12702
|
imagePullPolicy: $(params.image_pull_policy)
|
|
12255
12703
|
workingDir: /workspace/configs
|
|
12256
12704
|
command:
|
|
@@ -12313,7 +12761,7 @@ spec:
|
|
|
12313
12761
|
# IBM Data Reporter Operator (DRO)
|
|
12314
12762
|
# -------------------------------------------------------------------------
|
|
12315
12763
|
- name: dro
|
|
12316
|
-
image: quay.io/ibmmas/cli:
|
|
12764
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12317
12765
|
imagePullPolicy: $(params.image_pull_policy)
|
|
12318
12766
|
workingDir: /workspace/configs
|
|
12319
12767
|
command:
|
|
@@ -12387,29 +12835,27 @@ metadata:
|
|
|
12387
12835
|
spec:
|
|
12388
12836
|
params:
|
|
12389
12837
|
# What configmap to update
|
|
12838
|
+
- name: configmap_namespace
|
|
12839
|
+
type: string
|
|
12840
|
+
description: "The namespace of the configmap to update"
|
|
12841
|
+
default: $(context.taskRun.namespace)
|
|
12390
12842
|
- name: configmap_name
|
|
12391
12843
|
type: string
|
|
12392
12844
|
description: "The name of the configmap to update"
|
|
12393
|
-
- name: configmap_key
|
|
12394
|
-
type: string
|
|
12395
|
-
description: "The key in the configmap to update (defaults to 'STATUS')"
|
|
12396
|
-
default: "STATUS"
|
|
12397
12845
|
- name: configmap_value
|
|
12398
12846
|
type: string
|
|
12399
12847
|
description: "The value to set"
|
|
12400
12848
|
steps:
|
|
12401
12849
|
- name: update-configmap
|
|
12402
|
-
image: quay.io/ibmmas/cli:
|
|
12850
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12403
12851
|
command:
|
|
12404
12852
|
- /opt/app-root/src/update-configmap.sh
|
|
12405
12853
|
env:
|
|
12406
12854
|
# What to wait for
|
|
12407
12855
|
- name: NAMESPACE
|
|
12408
|
-
value: $(
|
|
12856
|
+
value: $(params.configmap_namespace)
|
|
12409
12857
|
- name: CONFIGMAP_NAME
|
|
12410
12858
|
value: $(params.configmap_name)
|
|
12411
|
-
- name: CONFIGMAP_KEY
|
|
12412
|
-
value: $(params.configmap_key)
|
|
12413
12859
|
- name: CONFIGMAP_VALUE
|
|
12414
12860
|
value: $(params.configmap_value)
|
|
12415
12861
|
# --------------------------------------------------------------------------------
|
|
@@ -12422,6 +12868,10 @@ metadata:
|
|
|
12422
12868
|
name: mas-devops-wait-for-configmap-v2
|
|
12423
12869
|
spec:
|
|
12424
12870
|
params:
|
|
12871
|
+
- name: configmap_namespace
|
|
12872
|
+
type: string
|
|
12873
|
+
description: "The namespace of the configmap to wait for"
|
|
12874
|
+
default: $(context.taskRun.namespace)
|
|
12425
12875
|
- name: configmap_name
|
|
12426
12876
|
type: string
|
|
12427
12877
|
description: "The name of the configmap to wait for"
|
|
@@ -12439,28 +12889,20 @@ spec:
|
|
|
12439
12889
|
type: string
|
|
12440
12890
|
description: "The name of the configmap wait for"
|
|
12441
12891
|
default: ""
|
|
12442
|
-
- name: escape_configmap_key
|
|
12443
|
-
type: string
|
|
12444
12892
|
description: "The key in the configmap to watch for"
|
|
12445
12893
|
default: ""
|
|
12446
12894
|
|
|
12447
12895
|
steps:
|
|
12448
12896
|
- name: wait-for-configmap
|
|
12449
|
-
image: quay.io/ibmmas/cli:
|
|
12897
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12450
12898
|
command:
|
|
12451
12899
|
- /opt/app-root/src/wait-for-configmap.sh
|
|
12452
12900
|
env:
|
|
12453
12901
|
# What to wait for
|
|
12454
12902
|
- name: NAMESPACE
|
|
12455
|
-
value: $(
|
|
12903
|
+
value: $(params.configmap_namespace)
|
|
12456
12904
|
- name: CONFIGMAP_NAME
|
|
12457
12905
|
value: $(params.configmap_name)
|
|
12458
|
-
- name: CONFIGMAP_KEY
|
|
12459
|
-
valueFrom:
|
|
12460
|
-
configMapKeyRef:
|
|
12461
|
-
name: $(params.configmap_name)
|
|
12462
|
-
key: CONFIGMAP_KEY
|
|
12463
|
-
optional: true
|
|
12464
12906
|
- name: CONFIGMAP_INITIAL_VALUE
|
|
12465
12907
|
value: $(params.configmap_initial_value)
|
|
12466
12908
|
- name: CONFIGMAP_TARGET_VALUE
|
|
@@ -12483,8 +12925,6 @@ spec:
|
|
|
12483
12925
|
# Optional escape route
|
|
12484
12926
|
- name: ESCAPE_CONFIGMAP_NAME
|
|
12485
12927
|
value: $(params.escape_configmap_name)
|
|
12486
|
-
- name: ESCAPE_CONFIGMAP_KEY
|
|
12487
|
-
value: $(params.escape_configmap_key)
|
|
12488
12928
|
|
|
12489
12929
|
# How to handle errors
|
|
12490
12930
|
- name: IGNORE_FAILURE
|
|
@@ -12507,9 +12947,6 @@ spec:
|
|
|
12507
12947
|
- name: configmap_name
|
|
12508
12948
|
type: string
|
|
12509
12949
|
description: "The name of the configmap wait for"
|
|
12510
|
-
- name: configmap_key
|
|
12511
|
-
type: string
|
|
12512
|
-
description: "The key in the configmap to watch for"
|
|
12513
12950
|
- name: configmap_target_value
|
|
12514
12951
|
type: string
|
|
12515
12952
|
description: "The value to wait for the configmap to change to"
|
|
@@ -12519,10 +12956,6 @@ spec:
|
|
|
12519
12956
|
type: string
|
|
12520
12957
|
description: "The name of the configmap wait for"
|
|
12521
12958
|
default: ""
|
|
12522
|
-
- name: escape_configmap_key
|
|
12523
|
-
type: string
|
|
12524
|
-
description: "The key in the configmap to watch for"
|
|
12525
|
-
default: ""
|
|
12526
12959
|
|
|
12527
12960
|
# How long to wait
|
|
12528
12961
|
- name: delay
|
|
@@ -12542,7 +12975,7 @@ spec:
|
|
|
12542
12975
|
|
|
12543
12976
|
steps:
|
|
12544
12977
|
- name: wait-for-configmap
|
|
12545
|
-
image: quay.io/ibmmas/cli:
|
|
12978
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12546
12979
|
command:
|
|
12547
12980
|
- /opt/app-root/src/wait-for-configmap.sh
|
|
12548
12981
|
env:
|
|
@@ -12551,16 +12984,12 @@ spec:
|
|
|
12551
12984
|
value: $(context.taskRun.namespace)
|
|
12552
12985
|
- name: CONFIGMAP_NAME
|
|
12553
12986
|
value: $(params.configmap_name)
|
|
12554
|
-
- name: CONFIGMAP_KEY
|
|
12555
|
-
value: $(params.configmap_key)
|
|
12556
12987
|
- name: CONFIGMAP_TARGET_VALUE
|
|
12557
12988
|
value: $(params.configmap_target_value)
|
|
12558
12989
|
|
|
12559
12990
|
# Optional escape route
|
|
12560
12991
|
- name: ESCAPE_CONFIGMAP_NAME
|
|
12561
12992
|
value: $(params.escape_configmap_name)
|
|
12562
|
-
- name: ESCAPE_CONFIGMAP_KEY
|
|
12563
|
-
value: $(params.escape_configmap_key)
|
|
12564
12993
|
|
|
12565
12994
|
# How long to wait
|
|
12566
12995
|
- name: DELAY
|
|
@@ -12606,7 +13035,7 @@ spec:
|
|
|
12606
13035
|
|
|
12607
13036
|
steps:
|
|
12608
13037
|
- name: wait
|
|
12609
|
-
image: quay.io/ibmmas/cli:
|
|
13038
|
+
image: quay.io/ibmmas/cli:13.0.0
|
|
12610
13039
|
command:
|
|
12611
13040
|
- /opt/app-root/src/wait-for-tekton.sh
|
|
12612
13041
|
env:
|
|
@@ -13545,8 +13974,18 @@ spec:
|
|
|
13545
13974
|
- name: jdbc_route_manage
|
|
13546
13975
|
type: string
|
|
13547
13976
|
default: ""
|
|
13977
|
+
|
|
13978
|
+
- name: sls_license_icn
|
|
13979
|
+
type: string
|
|
13980
|
+
- name: cis_crn
|
|
13981
|
+
type: string
|
|
13982
|
+
- name: cis_mas_domain
|
|
13983
|
+
type: string
|
|
13984
|
+
- name: smtp_use_sendgrid
|
|
13985
|
+
type: string
|
|
13986
|
+
default: ""
|
|
13548
13987
|
tasks:
|
|
13549
|
-
#
|
|
13988
|
+
# Deprovision workspace
|
|
13550
13989
|
# -------------------------------------------------------------------------
|
|
13551
13990
|
- name: gitops-deprovision-suite-workspace
|
|
13552
13991
|
params:
|
|
@@ -13587,7 +14026,45 @@ spec:
|
|
|
13587
14026
|
- name: configs
|
|
13588
14027
|
workspace: configs
|
|
13589
14028
|
|
|
13590
|
-
#
|
|
14029
|
+
# Deprovision SendGrid subuser
|
|
14030
|
+
# -------------------------------------------------------------------------
|
|
14031
|
+
- name: gitops-deprovision-suite-sendgrid-subuser
|
|
14032
|
+
params:
|
|
14033
|
+
- name: cluster_name
|
|
14034
|
+
value: $(params.cluster_name)
|
|
14035
|
+
- name: account
|
|
14036
|
+
value: $(params.account)
|
|
14037
|
+
- name: mas_instance_id
|
|
14038
|
+
value: $(params.mas_instance_id)
|
|
14039
|
+
- name: icn
|
|
14040
|
+
value: $(params.sls_license_icn)
|
|
14041
|
+
- name: cis_mas_domain
|
|
14042
|
+
value: $(params.cis_mas_domain)
|
|
14043
|
+
- name: cis_crn
|
|
14044
|
+
value: $(params.cis_crn)
|
|
14045
|
+
- name: avp_aws_secret_region
|
|
14046
|
+
value: $(params.avp_aws_secret_region)
|
|
14047
|
+
taskRef:
|
|
14048
|
+
kind: Task
|
|
14049
|
+
name: gitops-deprovision-suite-sendgrid-subuser
|
|
14050
|
+
when:
|
|
14051
|
+
# Task uses an IBM internal image and cannot be used outside of the internal IBM Toolchains
|
|
14052
|
+
# To make sure this task is only run when this is the case, reference a field that
|
|
14053
|
+
# but corresponds to another IBM-internal only feature that will also still be present after smtp config is removed
|
|
14054
|
+
# sls.license.icn is a good choice for this, it also happens to be a required input to the sendgrid scripts
|
|
14055
|
+
- input: "$(params.sls_license_icn)"
|
|
14056
|
+
operator: notin
|
|
14057
|
+
values: [""]
|
|
14058
|
+
|
|
14059
|
+
# only attempt Subuser teardown if the instance was configured to use automated sendgrid subuser management at the time of deprovisioning
|
|
14060
|
+
- input: "$(params.smtp_use_sendgrid)"
|
|
14061
|
+
operator: in
|
|
14062
|
+
values: ["true"]
|
|
14063
|
+
workspaces:
|
|
14064
|
+
- name: configs
|
|
14065
|
+
workspace: configs
|
|
14066
|
+
|
|
14067
|
+
# Deprovision SMTP config
|
|
13591
14068
|
# -------------------------------------------------------------------------
|
|
13592
14069
|
- name: gitops-deprovision-suite-smtp-config
|
|
13593
14070
|
runAfter:
|
|
@@ -13626,7 +14103,7 @@ spec:
|
|
|
13626
14103
|
- name: configs
|
|
13627
14104
|
workspace: configs
|
|
13628
14105
|
|
|
13629
|
-
#
|
|
14106
|
+
# Deprovision IDP config
|
|
13630
14107
|
# -------------------------------------------------------------------------
|
|
13631
14108
|
- name: gitops-deprovision-suite-idp-config
|
|
13632
14109
|
runAfter:
|
|
@@ -13665,7 +14142,7 @@ spec:
|
|
|
13665
14142
|
- name: configs
|
|
13666
14143
|
workspace: configs
|
|
13667
14144
|
|
|
13668
|
-
#
|
|
14145
|
+
# Deprovision Suite config
|
|
13669
14146
|
# -------------------------------------------------------------------------
|
|
13670
14147
|
- name: gitops-deprovision-suite-config
|
|
13671
14148
|
runAfter:
|
|
@@ -13715,7 +14192,7 @@ spec:
|
|
|
13715
14192
|
name: gitops-deprovision-suite-config
|
|
13716
14193
|
kind: Task
|
|
13717
14194
|
|
|
13718
|
-
#
|
|
14195
|
+
# Deprovision Suite config
|
|
13719
14196
|
# -------------------------------------------------------------------------
|
|
13720
14197
|
- name: gitops-deprovision-suite
|
|
13721
14198
|
runAfter:
|
|
@@ -13756,7 +14233,7 @@ spec:
|
|
|
13756
14233
|
- name: configs
|
|
13757
14234
|
workspace: configs
|
|
13758
14235
|
|
|
13759
|
-
#
|
|
14236
|
+
# Deprovision Kafka config
|
|
13760
14237
|
# -------------------------------------------------------------------------
|
|
13761
14238
|
- name: gitops-delete-kafka-config
|
|
13762
14239
|
runAfter:
|
|
@@ -13797,7 +14274,7 @@ spec:
|
|
|
13797
14274
|
kind: Task
|
|
13798
14275
|
name: gitops-delete-kafka-config
|
|
13799
14276
|
|
|
13800
|
-
#
|
|
14277
|
+
# Deprovision Objectstorage config
|
|
13801
14278
|
# -------------------------------------------------------------------------
|
|
13802
14279
|
- name: gitops-deprovision-suite-objectstorage-config
|
|
13803
14280
|
runAfter:
|
|
@@ -13836,7 +14313,7 @@ spec:
|
|
|
13836
14313
|
- name: configs
|
|
13837
14314
|
workspace: configs
|
|
13838
14315
|
|
|
13839
|
-
#
|
|
14316
|
+
# Deprovision Watson Studio config
|
|
13840
14317
|
# -------------------------------------------------------------------------
|
|
13841
14318
|
- name: gitops-deprovision-suite-watson-studio-config
|
|
13842
14319
|
runAfter:
|
|
@@ -13875,7 +14352,7 @@ spec:
|
|
|
13875
14352
|
- name: configs
|
|
13876
14353
|
workspace: configs
|
|
13877
14354
|
|
|
13878
|
-
#
|
|
14355
|
+
# Deprovision DB2U Operator
|
|
13879
14356
|
# -------------------------------------------------------------------------
|
|
13880
14357
|
- name: gitops-deprovision-db2u
|
|
13881
14358
|
runAfter:
|
|
@@ -17715,6 +18192,7 @@ spec:
|
|
|
17715
18192
|
- name: ingress
|
|
17716
18193
|
type: string
|
|
17717
18194
|
default: "false"
|
|
18195
|
+
|
|
17718
18196
|
- name: group_sync_operator_cron_schedule
|
|
17719
18197
|
type: string
|
|
17720
18198
|
default: ''
|
|
@@ -17724,9 +18202,17 @@ spec:
|
|
|
17724
18202
|
- name: group_sync_operator_isv_groups
|
|
17725
18203
|
type: string
|
|
17726
18204
|
default: ''
|
|
18205
|
+
|
|
17727
18206
|
- name: ibm_rbac_binding_to_group
|
|
17728
18207
|
type: string
|
|
17729
18208
|
default: ''
|
|
18209
|
+
|
|
18210
|
+
- name: falcon_operator_cloud_region
|
|
18211
|
+
type: string
|
|
18212
|
+
default: ''
|
|
18213
|
+
- name: falcon_operator_node_sensor
|
|
18214
|
+
type: string
|
|
18215
|
+
default: ''
|
|
17730
18216
|
tasks:
|
|
17731
18217
|
- name: gitops-cluster
|
|
17732
18218
|
params:
|
|
@@ -17799,14 +18285,21 @@ spec:
|
|
|
17799
18285
|
value: $(params.dns_provider)
|
|
17800
18286
|
- name: ingress
|
|
17801
18287
|
value: $(params.ingress)
|
|
18288
|
+
|
|
17802
18289
|
- name: group_sync_operator_cron_schedule
|
|
17803
18290
|
value: $(params.group_sync_operator_cron_schedule)
|
|
17804
18291
|
- name: group_sync_operator_isv_tenant_url
|
|
17805
18292
|
value: $(params.group_sync_operator_isv_tenant_url)
|
|
17806
18293
|
- name: group_sync_operator_isv_groups
|
|
17807
18294
|
value: $(params.group_sync_operator_isv_groups)
|
|
18295
|
+
|
|
17808
18296
|
- name: ibm_rbac_binding_to_group
|
|
17809
18297
|
value: $(params.ibm_rbac_binding_to_group)
|
|
18298
|
+
|
|
18299
|
+
- name: falcon_operator_cloud_region
|
|
18300
|
+
value: $(params.falcon_operator_cloud_region)
|
|
18301
|
+
- name: falcon_operator_node_sensor
|
|
18302
|
+
value: $(params.falcon_operator_node_sensor)
|
|
17810
18303
|
taskRef:
|
|
17811
18304
|
kind: Task
|
|
17812
18305
|
name: gitops-cluster
|
|
@@ -18650,6 +19143,12 @@ spec:
|
|
|
18650
19143
|
type: string
|
|
18651
19144
|
default: ""
|
|
18652
19145
|
|
|
19146
|
+
- name: sls_license_icn
|
|
19147
|
+
type: string
|
|
19148
|
+
- name: smtp_use_sendgrid
|
|
19149
|
+
type: string
|
|
19150
|
+
default: ""
|
|
19151
|
+
|
|
18653
19152
|
tasks:
|
|
18654
19153
|
- name: mas-launchfvt
|
|
18655
19154
|
params:
|
|
@@ -18775,6 +19274,13 @@ spec:
|
|
|
18775
19274
|
- name: ldap_userid_map
|
|
18776
19275
|
value: $(params.ldap_userid_map)
|
|
18777
19276
|
|
|
19277
|
+
- name: icn
|
|
19278
|
+
value: $(params.sls_license_icn)
|
|
19279
|
+
- name: avp_aws_secret_region
|
|
19280
|
+
value: $(params.avp_aws_secret_region)
|
|
19281
|
+
- name: use_sendgrid
|
|
19282
|
+
value: $(params.smtp_use_sendgrid)
|
|
19283
|
+
|
|
18778
19284
|
workspaces:
|
|
18779
19285
|
- name: configs
|
|
18780
19286
|
workspace: configs
|
|
@@ -19292,6 +19798,9 @@ spec:
|
|
|
19292
19798
|
type: string
|
|
19293
19799
|
- name: smtp_default_should_email_passwords
|
|
19294
19800
|
type: string
|
|
19801
|
+
- name: smtp_use_sendgrid
|
|
19802
|
+
type: string
|
|
19803
|
+
|
|
19295
19804
|
- name: ldap_url
|
|
19296
19805
|
type: string
|
|
19297
19806
|
- name: ldap_basedn
|
|
@@ -19460,7 +19969,7 @@ spec:
|
|
|
19460
19969
|
kind: Task
|
|
19461
19970
|
name: gitops-license
|
|
19462
19971
|
when:
|
|
19463
|
-
- input: "$(params.
|
|
19972
|
+
- input: "$(params.sls_license_icn)"
|
|
19464
19973
|
operator: in
|
|
19465
19974
|
values: [""]
|
|
19466
19975
|
|
|
@@ -19489,7 +19998,7 @@ spec:
|
|
|
19489
19998
|
kind: Task
|
|
19490
19999
|
name: gitops-license-generator
|
|
19491
20000
|
when:
|
|
19492
|
-
- input: "$(params.
|
|
20001
|
+
- input: "$(params.sls_license_icn)"
|
|
19493
20002
|
operator: notin
|
|
19494
20003
|
values: [""]
|
|
19495
20004
|
|
|
@@ -19751,6 +20260,56 @@ spec:
|
|
|
19751
20260
|
- input: "$(params.smtp_host)"
|
|
19752
20261
|
operator: notin
|
|
19753
20262
|
values: [""]
|
|
20263
|
+
- input: "$(params.smtp_use_sendgrid)"
|
|
20264
|
+
operator: notin
|
|
20265
|
+
values: ["true"]
|
|
20266
|
+
workspaces:
|
|
20267
|
+
- name: configs
|
|
20268
|
+
workspace: configs
|
|
20269
|
+
|
|
20270
|
+
- name: gitops-suite-smtp-config-sendgrid
|
|
20271
|
+
runAfter:
|
|
20272
|
+
- gitops-suite-config
|
|
20273
|
+
params:
|
|
20274
|
+
- name: cluster_name
|
|
20275
|
+
value: $(params.cluster_name)
|
|
20276
|
+
- name: account
|
|
20277
|
+
value: $(params.account)
|
|
20278
|
+
- name: secrets_path
|
|
20279
|
+
value: $(params.secrets_path)
|
|
20280
|
+
- name: mas_instance_id
|
|
20281
|
+
value: $(params.mas_instance_id)
|
|
20282
|
+
- name: git_branch
|
|
20283
|
+
value: $(params.git_branch)
|
|
20284
|
+
- name: github_org
|
|
20285
|
+
value: $(params.github_org)
|
|
20286
|
+
- name: github_repo
|
|
20287
|
+
value: $(params.github_repo)
|
|
20288
|
+
- name: github_host
|
|
20289
|
+
value: $(params.github_host)
|
|
20290
|
+
- name: avp_aws_secret_region
|
|
20291
|
+
value: $(params.avp_aws_secret_region)
|
|
20292
|
+
- name: mas_smtpcfg_pod_template_yaml
|
|
20293
|
+
value: $(params.mas_smtpcfg_pod_template_yaml)
|
|
20294
|
+
|
|
20295
|
+
- name: icn
|
|
20296
|
+
value: $(params.sls_license_icn)
|
|
20297
|
+
- name: mas_domain
|
|
20298
|
+
value: $(params.mas_domain)
|
|
20299
|
+
- name: cis_mas_domain
|
|
20300
|
+
value: $(params.cis_mas_domain)
|
|
20301
|
+
- name: cis_crn
|
|
20302
|
+
value: $(params.cis_crn)
|
|
20303
|
+
taskRef:
|
|
20304
|
+
kind: Task
|
|
20305
|
+
name: gitops-suite-smtp-config-sendgrid
|
|
20306
|
+
when:
|
|
20307
|
+
- input: "$(params.smtp_host)"
|
|
20308
|
+
operator: in
|
|
20309
|
+
values: [""]
|
|
20310
|
+
- input: "$(params.smtp_use_sendgrid)"
|
|
20311
|
+
operator: in
|
|
20312
|
+
values: ["true"]
|
|
19754
20313
|
workspaces:
|
|
19755
20314
|
- name: configs
|
|
19756
20315
|
workspace: configs
|
|
@@ -19811,6 +20370,45 @@ spec:
|
|
|
19811
20370
|
# Deprovision task section
|
|
19812
20371
|
# -------------------------------------------------------------------------
|
|
19813
20372
|
|
|
20373
|
+
# 1. Deprovision SendGrid subuser
|
|
20374
|
+
# -------------------------------------------------------------------------
|
|
20375
|
+
- name: gitops-deprovision-suite-sendgrid-subuser
|
|
20376
|
+
params:
|
|
20377
|
+
- name: cluster_name
|
|
20378
|
+
value: $(params.cluster_name)
|
|
20379
|
+
- name: account
|
|
20380
|
+
value: $(params.account)
|
|
20381
|
+
- name: mas_instance_id
|
|
20382
|
+
value: $(params.mas_instance_id)
|
|
20383
|
+
- name: icn
|
|
20384
|
+
value: $(params.sls_license_icn)
|
|
20385
|
+
- name: cis_mas_domain
|
|
20386
|
+
value: $(params.cis_mas_domain)
|
|
20387
|
+
- name: cis_crn
|
|
20388
|
+
value: $(params.cis_crn)
|
|
20389
|
+
- name: avp_aws_secret_region
|
|
20390
|
+
value: $(params.avp_aws_secret_region)
|
|
20391
|
+
taskRef:
|
|
20392
|
+
kind: Task
|
|
20393
|
+
name: gitops-deprovision-suite-sendgrid-subuser
|
|
20394
|
+
when:
|
|
20395
|
+
# Always run this task when smtp.use_sendgrid is unset (and we're running in an internal IBM toolchain - see below)
|
|
20396
|
+
# Task will still complete successfully even if it is a no-op
|
|
20397
|
+
- input: "$(params.smtp_use_sendgrid)"
|
|
20398
|
+
operator: notin
|
|
20399
|
+
values: ["true"]
|
|
20400
|
+
|
|
20401
|
+
# Task uses an IBM internal image and cannot be used outside of the internal IBM Toolchains
|
|
20402
|
+
# To make sure this task is only run when this is the case, reference a field that
|
|
20403
|
+
# but corresponds to another IBM-internal only feature that will also still be present after smtp config is removed
|
|
20404
|
+
# sls.license.icn is a good choice for this, it also happens to be a required input to the sendgrid scripts
|
|
20405
|
+
- input: "$(params.sls_license_icn)"
|
|
20406
|
+
operator: notin
|
|
20407
|
+
values: [""]
|
|
20408
|
+
workspaces:
|
|
20409
|
+
- name: configs
|
|
20410
|
+
workspace: configs
|
|
20411
|
+
|
|
19814
20412
|
# 2. Deprovision SMTP config
|
|
19815
20413
|
# -------------------------------------------------------------------------
|
|
19816
20414
|
- name: gitops-deprovision-suite-smtp-config
|
|
@@ -19848,6 +20446,9 @@ spec:
|
|
|
19848
20446
|
- input: "$(params.smtp_host)"
|
|
19849
20447
|
operator: in
|
|
19850
20448
|
values: [""]
|
|
20449
|
+
- input: "$(params.smtp_use_sendgrid)"
|
|
20450
|
+
operator: notin
|
|
20451
|
+
values: ["true"]
|
|
19851
20452
|
workspaces:
|
|
19852
20453
|
- name: configs
|
|
19853
20454
|
workspace: configs
|
|
@@ -19892,6 +20493,7 @@ spec:
|
|
|
19892
20493
|
workspaces:
|
|
19893
20494
|
- name: configs
|
|
19894
20495
|
workspace: configs
|
|
20496
|
+
|
|
19895
20497
|
# --------------------------------------------------------------------------------
|
|
19896
20498
|
# /home/runner/work/cli/cli/tekton/target/pipelines/install.yaml
|
|
19897
20499
|
# --------------------------------------------------------------------------------
|
|
@@ -22834,6 +23436,7 @@ spec:
|
|
|
22834
23436
|
- suite-db2-setup-system
|
|
22835
23437
|
- suite-db2-setup-manage
|
|
22836
23438
|
- suite-config-watson-studio
|
|
23439
|
+
- suite-config-cos
|
|
22837
23440
|
|
|
22838
23441
|
# 8.3 Configure Manage workspace
|
|
22839
23442
|
- name: app-cfg-manage
|
|
@@ -23602,8 +24205,6 @@ spec:
|
|
|
23602
24205
|
value: $(params.image_pull_policy)
|
|
23603
24206
|
- name: configmap_name
|
|
23604
24207
|
value: sync-install
|
|
23605
|
-
- name: configmap_key
|
|
23606
|
-
value: INSTALL_STATUS
|
|
23607
24208
|
- name: configmap_value
|
|
23608
24209
|
# An aggregate status of all the pipelineTasks under the tasks section (excluding the finally section).
|
|
23609
24210
|
# This variable is only available in the finally tasks and can have any one of the values (Succeeded, Failed, Completed, or None)
|
|
@@ -24248,13 +24849,28 @@ spec:
|
|
|
24248
24849
|
# 8. Uninstall IBM Catalogs
|
|
24249
24850
|
# 9. Uninstall Cluster Monitoring
|
|
24250
24851
|
|
|
24251
|
-
|
|
24852
|
+
|
|
24853
|
+
# 0. Wait for approval before we change anything
|
|
24252
24854
|
# -------------------------------------------------------------------------
|
|
24253
|
-
|
|
24855
|
+
- name: waitfor-approval
|
|
24856
|
+
timeout: "0"
|
|
24857
|
+
taskRef:
|
|
24858
|
+
kind: Task
|
|
24859
|
+
name: mas-devops-wait-for-configmap-v2
|
|
24860
|
+
params:
|
|
24861
|
+
- name: image_pull_policy
|
|
24862
|
+
value: $(params.image_pull_policy)
|
|
24863
|
+
- name: configmap_name
|
|
24864
|
+
value: approval-uninstall
|
|
24254
24865
|
|
|
24866
|
+
|
|
24867
|
+
# 1. Uninstall IBM Maximo Application Suite Applications
|
|
24868
|
+
# -------------------------------------------------------------------------
|
|
24255
24869
|
# 1.1 Uninstall Visual Inspection
|
|
24256
24870
|
- name: app-uninstall-visualinspection
|
|
24257
24871
|
timeout: "0"
|
|
24872
|
+
runAfter:
|
|
24873
|
+
- waitfor-approval
|
|
24258
24874
|
taskRef:
|
|
24259
24875
|
kind: Task
|
|
24260
24876
|
name: mas-devops-suite-app-uninstall
|
|
@@ -24269,6 +24885,8 @@ spec:
|
|
|
24269
24885
|
# 1.2 Uninstall Assist
|
|
24270
24886
|
- name: app-uninstall-assist
|
|
24271
24887
|
timeout: "0"
|
|
24888
|
+
runAfter:
|
|
24889
|
+
- waitfor-approval
|
|
24272
24890
|
taskRef:
|
|
24273
24891
|
kind: Task
|
|
24274
24892
|
name: mas-devops-suite-app-uninstall
|
|
@@ -24283,6 +24901,8 @@ spec:
|
|
|
24283
24901
|
# 1.3 Uninstall Optimizer
|
|
24284
24902
|
- name: app-uninstall-optimizer
|
|
24285
24903
|
timeout: "0"
|
|
24904
|
+
runAfter:
|
|
24905
|
+
- waitfor-approval
|
|
24286
24906
|
taskRef:
|
|
24287
24907
|
kind: Task
|
|
24288
24908
|
name: mas-devops-suite-app-uninstall
|
|
@@ -24297,6 +24917,8 @@ spec:
|
|
|
24297
24917
|
# 1.4 Uninstall Predict
|
|
24298
24918
|
- name: app-uninstall-predict
|
|
24299
24919
|
timeout: "0"
|
|
24920
|
+
runAfter:
|
|
24921
|
+
- waitfor-approval
|
|
24300
24922
|
taskRef:
|
|
24301
24923
|
kind: Task
|
|
24302
24924
|
name: mas-devops-suite-app-uninstall
|
|
@@ -24356,6 +24978,7 @@ spec:
|
|
|
24356
24978
|
- name: devops_suite_name
|
|
24357
24979
|
value: app-iot-uninstall
|
|
24358
24980
|
|
|
24981
|
+
|
|
24359
24982
|
# 2. Uninstall IBM Maximo Application Suite
|
|
24360
24983
|
# -------------------------------------------------------------------------
|
|
24361
24984
|
- name: uninstall-suite
|
|
@@ -24379,6 +25002,7 @@ spec:
|
|
|
24379
25002
|
- name: devops_suite_name
|
|
24380
25003
|
value: suite-uninstall
|
|
24381
25004
|
|
|
25005
|
+
|
|
24382
25006
|
# 3. Uninstall IBM Suite Licensing Service
|
|
24383
25007
|
# -------------------------------------------------------------------------
|
|
24384
25008
|
- name: uninstall-sls
|
|
@@ -24400,6 +25024,7 @@ spec:
|
|
|
24400
25024
|
runAfter:
|
|
24401
25025
|
- uninstall-suite
|
|
24402
25026
|
|
|
25027
|
+
|
|
24403
25028
|
# 4. Uninstall MongoDB
|
|
24404
25029
|
# -------------------------------------------------------------------------
|
|
24405
25030
|
- name: uninstall-mongodb
|
|
@@ -24421,6 +25046,7 @@ spec:
|
|
|
24421
25046
|
runAfter:
|
|
24422
25047
|
- uninstall-sls
|
|
24423
25048
|
|
|
25049
|
+
|
|
24424
25050
|
# 5. Uninstall IBM User Data Services (or DRO)
|
|
24425
25051
|
# -------------------------------------------------------------------------
|
|
24426
25052
|
- name: uninstall-uds
|
|
@@ -24444,6 +25070,7 @@ spec:
|
|
|
24444
25070
|
runAfter:
|
|
24445
25071
|
- uninstall-mongodb
|
|
24446
25072
|
|
|
25073
|
+
|
|
24447
25074
|
# 6. Uninstall IBM Cert Manager
|
|
24448
25075
|
# -------------------------------------------------------------------------
|
|
24449
25076
|
- name: uninstall-cert-manager
|
|
@@ -24467,6 +25094,7 @@ spec:
|
|
|
24467
25094
|
runAfter:
|
|
24468
25095
|
- uninstall-uds
|
|
24469
25096
|
|
|
25097
|
+
|
|
24470
25098
|
# 7. Uninstall IBM Common Services
|
|
24471
25099
|
# -------------------------------------------------------------------------
|
|
24472
25100
|
- name: uninstall-common-services
|
|
@@ -24488,6 +25116,7 @@ spec:
|
|
|
24488
25116
|
runAfter:
|
|
24489
25117
|
- uninstall-cert-manager
|
|
24490
25118
|
|
|
25119
|
+
|
|
24491
25120
|
# 8. Uninstall IBM Catalogs
|
|
24492
25121
|
# -------------------------------------------------------------------------
|
|
24493
25122
|
- name: uninstall-ibm-catalogs
|
|
@@ -24509,6 +25138,7 @@ spec:
|
|
|
24509
25138
|
runAfter:
|
|
24510
25139
|
- uninstall-common-services
|
|
24511
25140
|
|
|
25141
|
+
|
|
24512
25142
|
# 9. Uninstall Grafana
|
|
24513
25143
|
# -------------------------------------------------------------------------
|
|
24514
25144
|
- name: uninstall-grafana
|
|
@@ -24543,8 +25173,6 @@ spec:
|
|
|
24543
25173
|
value: $(params.image_pull_policy)
|
|
24544
25174
|
- name: configmap_name
|
|
24545
25175
|
value: sync-uninstall
|
|
24546
|
-
- name: configmap_key
|
|
24547
|
-
value: UNINSTALL_STATUS
|
|
24548
25176
|
- name: configmap_value
|
|
24549
25177
|
# An aggregate status of all the pipelineTasks under the tasks section (excluding the finally section).
|
|
24550
25178
|
# This variable is only available in the finally tasks and can have any one of the values (Succeeded, Failed, Completed, or None)
|
|
@@ -24558,9 +25186,7 @@ kind: Pipeline
|
|
|
24558
25186
|
metadata:
|
|
24559
25187
|
name: mas-update
|
|
24560
25188
|
spec:
|
|
24561
|
-
|
|
24562
25189
|
params:
|
|
24563
|
-
|
|
24564
25190
|
# Tekton Pipeline Configuration
|
|
24565
25191
|
# -------------------------------------------------------------------------
|
|
24566
25192
|
- name: image_pull_policy
|
|
@@ -24742,9 +25368,19 @@ spec:
|
|
|
24742
25368
|
description: ReadWriteMany storage class
|
|
24743
25369
|
|
|
24744
25370
|
tasks:
|
|
24745
|
-
|
|
24746
|
-
# 1. Verify health of the cluster before we change anything
|
|
25371
|
+
# 1. Wait for approval & verify health of the cluster before we change anything
|
|
24747
25372
|
# -------------------------------------------------------------------------
|
|
25373
|
+
- name: waitfor-approval
|
|
25374
|
+
timeout: "0"
|
|
25375
|
+
taskRef:
|
|
25376
|
+
kind: Task
|
|
25377
|
+
name: mas-devops-wait-for-configmap-v2
|
|
25378
|
+
params:
|
|
25379
|
+
- name: image_pull_policy
|
|
25380
|
+
value: $(params.image_pull_policy)
|
|
25381
|
+
- name: configmap_name
|
|
25382
|
+
value: approval-update
|
|
25383
|
+
|
|
24748
25384
|
- name: pre-update-check
|
|
24749
25385
|
timeout: "0"
|
|
24750
25386
|
taskRef:
|
|
@@ -24765,9 +25401,11 @@ spec:
|
|
|
24765
25401
|
operator: notin
|
|
24766
25402
|
values: ["True", "true"]
|
|
24767
25403
|
|
|
25404
|
+
runAfter:
|
|
25405
|
+
- waitfor-approval
|
|
24768
25406
|
|
|
24769
25407
|
|
|
24770
|
-
#
|
|
25408
|
+
# 2. Run the catalog update
|
|
24771
25409
|
# -------------------------------------------------------------------------
|
|
24772
25410
|
- name: update-catalog
|
|
24773
25411
|
timeout: "0"
|
|
@@ -24779,7 +25417,6 @@ spec:
|
|
|
24779
25417
|
params:
|
|
24780
25418
|
- name: devops_suite_name
|
|
24781
25419
|
value: update-catalog
|
|
24782
|
-
|
|
24783
25420
|
- name: mas_catalog_version
|
|
24784
25421
|
value: $(params.mas_catalog_version)
|
|
24785
25422
|
|
|
@@ -24789,7 +25426,8 @@ spec:
|
|
|
24789
25426
|
- name: artifactory_token
|
|
24790
25427
|
value: $(params.artifactory_token)
|
|
24791
25428
|
|
|
24792
|
-
|
|
25429
|
+
|
|
25430
|
+
# 3. Verify health of the cluster before we consider the update complete
|
|
24793
25431
|
# -------------------------------------------------------------------------
|
|
24794
25432
|
- name: post-update-verify
|
|
24795
25433
|
timeout: "0"
|
|
@@ -24814,7 +25452,8 @@ spec:
|
|
|
24814
25452
|
runAfter:
|
|
24815
25453
|
- update-catalog
|
|
24816
25454
|
|
|
24817
|
-
|
|
25455
|
+
|
|
25456
|
+
# 4. Update Dependencies
|
|
24818
25457
|
# ---------------------------------------------------------------------------
|
|
24819
25458
|
- name: update-ocs
|
|
24820
25459
|
timeout: "0"
|
|
@@ -24967,9 +25606,10 @@ spec:
|
|
|
24967
25606
|
- name: devops_suite_name
|
|
24968
25607
|
value: update-uds
|
|
24969
25608
|
|
|
24970
|
-
|
|
25609
|
+
|
|
25610
|
+
# 5 Update Cloud Pak for Data
|
|
24971
25611
|
# -------------------------------------------------------------------------
|
|
24972
|
-
#
|
|
25612
|
+
# 5.1 Cloud Pak for Data Platform
|
|
24973
25613
|
- name: update-cp4d
|
|
24974
25614
|
timeout: "0"
|
|
24975
25615
|
params:
|
|
@@ -25012,7 +25652,7 @@ spec:
|
|
|
25012
25652
|
runAfter:
|
|
25013
25653
|
- update-cert-manager # CP4D requires cert-manager
|
|
25014
25654
|
|
|
25015
|
-
#
|
|
25655
|
+
# 5.2 Watson Studio
|
|
25016
25656
|
- name: update-watson-studio
|
|
25017
25657
|
timeout: "0"
|
|
25018
25658
|
params:
|
|
@@ -25042,7 +25682,7 @@ spec:
|
|
|
25042
25682
|
runAfter:
|
|
25043
25683
|
- update-cp4d
|
|
25044
25684
|
|
|
25045
|
-
#
|
|
25685
|
+
# 5.3 Watson Machine Learning
|
|
25046
25686
|
- name: update-watson-machine-learning
|
|
25047
25687
|
timeout: "0"
|
|
25048
25688
|
params:
|
|
@@ -25072,7 +25712,7 @@ spec:
|
|
|
25072
25712
|
runAfter:
|
|
25073
25713
|
- update-cp4d
|
|
25074
25714
|
|
|
25075
|
-
#
|
|
25715
|
+
# 5.4 Analytics Service (Spark)
|
|
25076
25716
|
- name: update-analytics-engine
|
|
25077
25717
|
timeout: "0"
|
|
25078
25718
|
params:
|
|
@@ -25102,7 +25742,7 @@ spec:
|
|
|
25102
25742
|
runAfter:
|
|
25103
25743
|
- update-cp4d
|
|
25104
25744
|
|
|
25105
|
-
#
|
|
25745
|
+
# 5.5 Watson OpenScale
|
|
25106
25746
|
- name: update-aiopenscale
|
|
25107
25747
|
timeout: "0"
|
|
25108
25748
|
params:
|
|
@@ -25132,7 +25772,7 @@ spec:
|
|
|
25132
25772
|
runAfter:
|
|
25133
25773
|
- update-cp4d
|
|
25134
25774
|
|
|
25135
|
-
#
|
|
25775
|
+
# 5.6 SPSS Statistics
|
|
25136
25776
|
- name: update-spss
|
|
25137
25777
|
timeout: "0"
|
|
25138
25778
|
params:
|
|
@@ -25162,7 +25802,7 @@ spec:
|
|
|
25162
25802
|
runAfter:
|
|
25163
25803
|
- update-cp4d
|
|
25164
25804
|
|
|
25165
|
-
#
|
|
25805
|
+
# 5.7 Cognos Analytics
|
|
25166
25806
|
- name: update-cognos
|
|
25167
25807
|
timeout: "0"
|
|
25168
25808
|
params:
|
|
@@ -25192,7 +25832,8 @@ spec:
|
|
|
25192
25832
|
runAfter:
|
|
25193
25833
|
- update-cp4d
|
|
25194
25834
|
|
|
25195
|
-
|
|
25835
|
+
|
|
25836
|
+
# 6. Verify health of the cluster after dependencies updates
|
|
25196
25837
|
# -------------------------------------------------------------------------
|
|
25197
25838
|
- name: post-deps-update-verify
|
|
25198
25839
|
timeout: "0"
|
|
@@ -25227,7 +25868,23 @@ spec:
|
|
|
25227
25868
|
- update-spss
|
|
25228
25869
|
- update-cognos
|
|
25229
25870
|
|
|
25230
|
-
|
|
25871
|
+
finally:
|
|
25872
|
+
# Update synchronization configmap
|
|
25873
|
+
# -------------------------------------------------------------------------
|
|
25874
|
+
- name: sync-update
|
|
25875
|
+
timeout: "0"
|
|
25876
|
+
taskRef:
|
|
25877
|
+
kind: Task
|
|
25878
|
+
name: mas-devops-update-configmap
|
|
25879
|
+
params:
|
|
25880
|
+
- name: image_pull_policy
|
|
25881
|
+
value: $(params.image_pull_policy)
|
|
25882
|
+
- name: configmap_name
|
|
25883
|
+
value: sync-update
|
|
25884
|
+
- name: configmap_value
|
|
25885
|
+
# An aggregate status of all the pipelineTasks under the tasks section (excluding the finally section).
|
|
25886
|
+
# This variable is only available in the finally tasks and can have any one of the values (Succeeded, Failed, Completed, or None)
|
|
25887
|
+
value: $(tasks.status)
|
|
25231
25888
|
# --------------------------------------------------------------------------------
|
|
25232
25889
|
# /home/runner/work/cli/cli/tekton/target/pipelines/upgrade.yaml
|
|
25233
25890
|
# --------------------------------------------------------------------------------
|
|
@@ -25323,7 +25980,7 @@ spec:
|
|
|
25323
25980
|
tasks:
|
|
25324
25981
|
# 1. Wait for approval & verify health of the cluster before we change anything
|
|
25325
25982
|
# -------------------------------------------------------------------------
|
|
25326
|
-
- name: approval
|
|
25983
|
+
- name: waitfor-approval
|
|
25327
25984
|
timeout: "0"
|
|
25328
25985
|
taskRef:
|
|
25329
25986
|
kind: Task
|
|
@@ -25355,7 +26012,7 @@ spec:
|
|
|
25355
26012
|
values: ["True", "true"]
|
|
25356
26013
|
|
|
25357
26014
|
runAfter:
|
|
25358
|
-
- approval
|
|
26015
|
+
- waitfor-approval
|
|
25359
26016
|
|
|
25360
26017
|
|
|
25361
26018
|
# 2. Suite Upgrade (Phase 1)
|
|
@@ -25397,7 +26054,7 @@ spec:
|
|
|
25397
26054
|
|
|
25398
26055
|
# 3. IoT Upgrade (Phase 2)
|
|
25399
26056
|
# -------------------------------------------------------------------------
|
|
25400
|
-
- name: iot-upgrade
|
|
26057
|
+
- name: app-iot-upgrade
|
|
25401
26058
|
timeout: "0"
|
|
25402
26059
|
params:
|
|
25403
26060
|
- name: mas_instance_id
|
|
@@ -25409,7 +26066,7 @@ spec:
|
|
|
25409
26066
|
- name: skip_compatibility_check
|
|
25410
26067
|
value: $(params.skip_compatibility_check)
|
|
25411
26068
|
- name: devops_suite_name
|
|
25412
|
-
value: iot-upgrade
|
|
26069
|
+
value: app-iot-upgrade
|
|
25413
26070
|
taskRef:
|
|
25414
26071
|
kind: Task
|
|
25415
26072
|
name: mas-devops-suite-app-upgrade
|
|
@@ -25419,7 +26076,7 @@ spec:
|
|
|
25419
26076
|
|
|
25420
26077
|
# 4. Manage Upgrade (Phase 2)
|
|
25421
26078
|
# -------------------------------------------------------------------------
|
|
25422
|
-
- name: manage-upgrade
|
|
26079
|
+
- name: app-manage-upgrade
|
|
25423
26080
|
timeout: "0"
|
|
25424
26081
|
params:
|
|
25425
26082
|
- name: mas_instance_id
|
|
@@ -25431,7 +26088,7 @@ spec:
|
|
|
25431
26088
|
- name: skip_compatibility_check
|
|
25432
26089
|
value: $(params.skip_compatibility_check)
|
|
25433
26090
|
- name: devops_suite_name
|
|
25434
|
-
value: manage-upgrade
|
|
26091
|
+
value: app-manage-upgrade
|
|
25435
26092
|
taskRef:
|
|
25436
26093
|
kind: Task
|
|
25437
26094
|
name: mas-devops-suite-app-upgrade
|
|
@@ -25441,7 +26098,7 @@ spec:
|
|
|
25441
26098
|
|
|
25442
26099
|
# 5. Visual Inspection Upgrade (Phase 2)
|
|
25443
26100
|
# -------------------------------------------------------------------------
|
|
25444
|
-
- name: visualinspection-upgrade
|
|
26101
|
+
- name: app-visualinspection-upgrade
|
|
25445
26102
|
timeout: "0"
|
|
25446
26103
|
params:
|
|
25447
26104
|
- name: mas_instance_id
|
|
@@ -25453,7 +26110,7 @@ spec:
|
|
|
25453
26110
|
- name: skip_compatibility_check
|
|
25454
26111
|
value: $(params.skip_compatibility_check)
|
|
25455
26112
|
- name: devops_suite_name
|
|
25456
|
-
value: visualinspection-upgrade
|
|
26113
|
+
value: app-visualinspection-upgrade
|
|
25457
26114
|
taskRef:
|
|
25458
26115
|
kind: Task
|
|
25459
26116
|
name: mas-devops-suite-app-upgrade
|
|
@@ -25463,7 +26120,7 @@ spec:
|
|
|
25463
26120
|
|
|
25464
26121
|
# 6. Assist Upgrade (Phase 2)
|
|
25465
26122
|
# -------------------------------------------------------------------------
|
|
25466
|
-
- name: assist-upgrade
|
|
26123
|
+
- name: app-assist-upgrade
|
|
25467
26124
|
timeout: "0"
|
|
25468
26125
|
params:
|
|
25469
26126
|
- name: mas_instance_id
|
|
@@ -25475,7 +26132,7 @@ spec:
|
|
|
25475
26132
|
- name: skip_compatibility_check
|
|
25476
26133
|
value: $(params.skip_compatibility_check)
|
|
25477
26134
|
- name: devops_suite_name
|
|
25478
|
-
value: assist-upgrade
|
|
26135
|
+
value: app-assist-upgrade
|
|
25479
26136
|
taskRef:
|
|
25480
26137
|
kind: Task
|
|
25481
26138
|
name: mas-devops-suite-app-upgrade
|
|
@@ -25485,7 +26142,7 @@ spec:
|
|
|
25485
26142
|
|
|
25486
26143
|
# 7. Optimizer Upgrade (Phase 2)
|
|
25487
26144
|
# -------------------------------------------------------------------------
|
|
25488
|
-
- name: optimizer-upgrade
|
|
26145
|
+
- name: app-optimizer-upgrade
|
|
25489
26146
|
timeout: "0"
|
|
25490
26147
|
params:
|
|
25491
26148
|
- name: mas_instance_id
|
|
@@ -25497,7 +26154,7 @@ spec:
|
|
|
25497
26154
|
- name: skip_compatibility_check
|
|
25498
26155
|
value: $(params.skip_compatibility_check)
|
|
25499
26156
|
- name: devops_suite_name
|
|
25500
|
-
value: optimizer-upgrade
|
|
26157
|
+
value: app-optimizer-upgrade
|
|
25501
26158
|
taskRef:
|
|
25502
26159
|
kind: Task
|
|
25503
26160
|
name: mas-devops-suite-app-upgrade
|
|
@@ -25507,7 +26164,7 @@ spec:
|
|
|
25507
26164
|
|
|
25508
26165
|
# 8. Monitor Upgrade (Phase 3 - after IoT)
|
|
25509
26166
|
# -------------------------------------------------------------------------
|
|
25510
|
-
- name: monitor-upgrade
|
|
26167
|
+
- name: app-monitor-upgrade
|
|
25511
26168
|
timeout: "0"
|
|
25512
26169
|
params:
|
|
25513
26170
|
- name: mas_instance_id
|
|
@@ -25519,17 +26176,17 @@ spec:
|
|
|
25519
26176
|
- name: skip_compatibility_check
|
|
25520
26177
|
value: $(params.skip_compatibility_check)
|
|
25521
26178
|
- name: devops_suite_name
|
|
25522
|
-
value: monitor-upgrade
|
|
26179
|
+
value: app-monitor-upgrade
|
|
25523
26180
|
taskRef:
|
|
25524
26181
|
kind: Task
|
|
25525
26182
|
name: mas-devops-suite-app-upgrade
|
|
25526
26183
|
runAfter:
|
|
25527
|
-
- iot-upgrade
|
|
26184
|
+
- app-iot-upgrade
|
|
25528
26185
|
|
|
25529
26186
|
|
|
25530
26187
|
# 9. Predict Upgrade (Phase 3 - after Manage)
|
|
25531
26188
|
# -------------------------------------------------------------------------
|
|
25532
|
-
- name: predict-upgrade
|
|
26189
|
+
- name: app-predict-upgrade
|
|
25533
26190
|
timeout: "0"
|
|
25534
26191
|
params:
|
|
25535
26192
|
- name: mas_instance_id
|
|
@@ -25541,12 +26198,12 @@ spec:
|
|
|
25541
26198
|
- name: skip_compatibility_check
|
|
25542
26199
|
value: $(params.skip_compatibility_check)
|
|
25543
26200
|
- name: devops_suite_name
|
|
25544
|
-
value: predict-upgrade
|
|
26201
|
+
value: app-predict-upgrade
|
|
25545
26202
|
taskRef:
|
|
25546
26203
|
kind: Task
|
|
25547
26204
|
name: mas-devops-suite-app-upgrade
|
|
25548
26205
|
runAfter:
|
|
25549
|
-
- manage-upgrade
|
|
26206
|
+
- app-manage-upgrade
|
|
25550
26207
|
|
|
25551
26208
|
|
|
25552
26209
|
# 10. Verify health of the cluster after upgrade
|
|
@@ -25573,12 +26230,12 @@ spec:
|
|
|
25573
26230
|
|
|
25574
26231
|
runAfter:
|
|
25575
26232
|
# Phase 2 apps that don't have a phase 3 app following it
|
|
25576
|
-
- assist-upgrade
|
|
25577
|
-
- optimizer-upgrade
|
|
25578
|
-
- visualinspection-upgrade
|
|
26233
|
+
- app-assist-upgrade
|
|
26234
|
+
- app-optimizer-upgrade
|
|
26235
|
+
- app-visualinspection-upgrade
|
|
25579
26236
|
# Phase 3 apps
|
|
25580
|
-
- predict-upgrade
|
|
25581
|
-
- monitor-upgrade
|
|
26237
|
+
- app-predict-upgrade
|
|
26238
|
+
- app-monitor-upgrade
|
|
25582
26239
|
|
|
25583
26240
|
finally:
|
|
25584
26241
|
# Update synchronization configmap
|
|
@@ -25593,8 +26250,6 @@ spec:
|
|
|
25593
26250
|
value: $(params.image_pull_policy)
|
|
25594
26251
|
- name: configmap_name
|
|
25595
26252
|
value: sync-upgrade
|
|
25596
|
-
- name: configmap_key
|
|
25597
|
-
value: UPGRADE_STATUS
|
|
25598
26253
|
- name: configmap_value
|
|
25599
26254
|
# An aggregate status of all the pipelineTasks under the tasks section (excluding the finally section).
|
|
25600
26255
|
# This variable is only available in the finally tasks and can have any one of the values (Succeeded, Failed, Completed, or None)
|