mas-cli 5.1.4__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.

Files changed (114) hide show
  1. mas/cli/__init__.py +11 -0
  2. mas/cli/aiservice/install/__init__.py +11 -0
  3. mas/cli/aiservice/install/app.py +894 -0
  4. mas/cli/aiservice/install/argBuilder.py +180 -0
  5. mas/cli/aiservice/install/argParser.py +507 -0
  6. mas/cli/aiservice/install/params.py +100 -0
  7. mas/cli/aiservice/install/summarizer.py +134 -0
  8. mas/cli/cli.py +432 -0
  9. mas/cli/displayMixins.py +132 -0
  10. mas/cli/gencfg.py +113 -0
  11. mas/cli/install/__init__.py +11 -0
  12. mas/cli/install/app.py +1316 -0
  13. mas/cli/install/argBuilder.py +465 -0
  14. mas/cli/install/argParser.py +1176 -0
  15. mas/cli/install/catalogs.py +27 -0
  16. mas/cli/install/params.py +172 -0
  17. mas/cli/install/settings/__init__.py +23 -0
  18. mas/cli/install/settings/additionalConfigs.py +227 -0
  19. mas/cli/install/settings/db2Settings.py +252 -0
  20. mas/cli/install/settings/kafkaSettings.py +103 -0
  21. mas/cli/install/settings/manageSettings.py +273 -0
  22. mas/cli/install/settings/mongodbSettings.py +46 -0
  23. mas/cli/install/settings/turbonomicSettings.py +29 -0
  24. mas/cli/install/summarizer.py +398 -0
  25. mas/cli/templates/facilities-configs.yml.j2 +25 -0
  26. mas/cli/templates/ibm-mas-tekton.yaml +49772 -0
  27. mas/cli/templates/jdbccfg.yml.j2 +52 -0
  28. mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml +26 -0
  29. mas/cli/templates/pod-templates/best-effort/ibm-mas-bascfg.yml +56 -0
  30. mas/cli/templates/pod-templates/best-effort/ibm-mas-coreidp.yml +21 -0
  31. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-actions.yml +28 -0
  32. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-auth.yml +32 -0
  33. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-datapower.yml +12 -0
  34. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-devops.yml +14 -0
  35. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-dm.yml +22 -0
  36. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-dsc.yml +40 -0
  37. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-edgeconfig.yml +10 -0
  38. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-fpl.yml +24 -0
  39. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-guardian.yml +20 -0
  40. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-iot.yml +10 -0
  41. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-mbgx.yml +18 -0
  42. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-mfgx.yml +14 -0
  43. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-monitor.yml +18 -0
  44. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-orgmgmt.yml +48 -0
  45. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-provision.yml +28 -0
  46. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-registry.yml +26 -0
  47. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-state.yml +40 -0
  48. mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-webui.yml +22 -0
  49. mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-healthextaccelerator.yml +13 -0
  50. mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-healthextworkspace.yml +10 -0
  51. mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-imagestitching.yml +10 -0
  52. mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-manageaccelerators.yml +10 -0
  53. mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-manageapp.yml +46 -0
  54. mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-manageworkspace.yml +48 -0
  55. mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-slackproxy.yml +10 -0
  56. mas/cli/templates/pod-templates/best-effort/ibm-mas-pushnotificationcfg.yml +13 -0
  57. mas/cli/templates/pod-templates/best-effort/ibm-mas-scimcfg.yml +14 -0
  58. mas/cli/templates/pod-templates/best-effort/ibm-mas-slscfg.yml +10 -0
  59. mas/cli/templates/pod-templates/best-effort/ibm-mas-smtpcfg.yml +10 -0
  60. mas/cli/templates/pod-templates/best-effort/ibm-mas-suite.yml +136 -0
  61. mas/cli/templates/pod-templates/best-effort/ibm-mas-visualinspection.yml +34 -0
  62. mas/cli/templates/pod-templates/best-effort/ibm-sls-licenseservice.yml +10 -0
  63. mas/cli/templates/pod-templates/guaranteed/ibm-data-dictionary-assetdatadictionary.yml +56 -0
  64. mas/cli/templates/pod-templates/guaranteed/ibm-mas-bascfg.yml +140 -0
  65. mas/cli/templates/pod-templates/guaranteed/ibm-mas-coreidp.yml +45 -0
  66. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-actions.yml +70 -0
  67. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-auth.yml +80 -0
  68. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-datapower.yml +24 -0
  69. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-devops.yml +26 -0
  70. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-dm.yml +52 -0
  71. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-dsc.yml +106 -0
  72. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-edgeconfig.yml +16 -0
  73. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-fpl.yml +62 -0
  74. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-guardian.yml +44 -0
  75. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-iot.yml +16 -0
  76. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-mbgx.yml +42 -0
  77. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-mfgx.yml +32 -0
  78. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-monitor.yml +42 -0
  79. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-orgmgmt.yml +126 -0
  80. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-provision.yml +70 -0
  81. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-registry.yml +62 -0
  82. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-state.yml +106 -0
  83. mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-webui.yml +52 -0
  84. mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-healthextaccelerator.yml +28 -0
  85. mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-healthextworkspace.yml +18 -0
  86. mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-imagestitching.yml +16 -0
  87. mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-manageaccelerators.yml +16 -0
  88. mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-manageapp.yml +106 -0
  89. mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-manageworkspace.yml +126 -0
  90. mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-slackproxy.yml +16 -0
  91. mas/cli/templates/pod-templates/guaranteed/ibm-mas-pushnotificationcfg.yml +25 -0
  92. mas/cli/templates/pod-templates/guaranteed/ibm-mas-scimcfg.yml +26 -0
  93. mas/cli/templates/pod-templates/guaranteed/ibm-mas-slscfg.yml +16 -0
  94. mas/cli/templates/pod-templates/guaranteed/ibm-mas-smtpcfg.yml +16 -0
  95. mas/cli/templates/pod-templates/guaranteed/ibm-mas-suite.yml +340 -0
  96. mas/cli/templates/pod-templates/guaranteed/ibm-mas-visualinspection.yml +76 -0
  97. mas/cli/templates/pod-templates/guaranteed/ibm-sls-licenseservice.yml +16 -0
  98. mas/cli/templates/suite_mongocfg.yml.j2 +55 -0
  99. mas/cli/uninstall/__init__.py +11 -0
  100. mas/cli/uninstall/app.py +197 -0
  101. mas/cli/uninstall/argParser.py +115 -0
  102. mas/cli/update/__init__.py +11 -0
  103. mas/cli/update/app.py +673 -0
  104. mas/cli/update/argParser.py +156 -0
  105. mas/cli/upgrade/__init__.py +11 -0
  106. mas/cli/upgrade/app.py +164 -0
  107. mas/cli/upgrade/argParser.py +68 -0
  108. mas/cli/upgrade/settings/__init__.py +19 -0
  109. mas/cli/validators.py +151 -0
  110. mas_cli-5.1.4.data/scripts/mas-cli +87 -0
  111. mas_cli-5.1.4.dist-info/METADATA +73 -0
  112. mas_cli-5.1.4.dist-info/RECORD +114 -0
  113. mas_cli-5.1.4.dist-info/WHEEL +5 -0
  114. mas_cli-5.1.4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,16 @@
1
+ # podTemplates
2
+ # =============================================================================
3
+ # This list defines the resources for pod containers/initContainers that get
4
+ # assigned a QoS class of Guaranteed. More can be found here:
5
+ # https://kubernetes.io/docs/tasks/configure-pod-container/quality-service-pod
6
+ podTemplates:
7
+ - name: sendmailapi
8
+ containers:
9
+ - name: sendmailapi
10
+ resources:
11
+ requests:
12
+ cpu: 0.4
13
+ memory: 1Gi
14
+ limits:
15
+ cpu: 0.4
16
+ memory: 1Gi
@@ -0,0 +1,340 @@
1
+ # podTemplates
2
+ # =============================================================================
3
+ # This list defines the resources for pod containers/initContainers that get
4
+ # assigned a QoS class of Guaranteed. More can be found here:
5
+ # https://kubernetes.io/docs/tasks/configure-pod-container/quality-service-pod
6
+ podTemplates:
7
+ - name: entitymgr-suite
8
+ containers:
9
+ - name: manager
10
+ resources:
11
+ requests:
12
+ cpu: 1.5
13
+ memory: 512Mi
14
+ limits:
15
+ cpu: 1.5
16
+ memory: 512Mi
17
+ - name: entitymgr-addons
18
+ containers:
19
+ - name: manager
20
+ resources:
21
+ requests:
22
+ cpu: 0.5
23
+ memory: 384Mi
24
+ limits:
25
+ cpu: 0.5
26
+ memory: 384Mi
27
+ - name: entitymgr-bascfg
28
+ containers:
29
+ - name: manager
30
+ resources:
31
+ requests:
32
+ cpu: 0.2
33
+ memory: 512Mi
34
+ limits:
35
+ cpu: 0.2
36
+ memory: 512Mi
37
+ - name: entitymgr-coreidp
38
+ containers:
39
+ - name: manager
40
+ resources:
41
+ requests:
42
+ cpu: 0.5
43
+ memory: 512Mi
44
+ limits:
45
+ cpu: 0.5
46
+ memory: 512Mi
47
+ - name: entitymgr-idpcfg
48
+ containers:
49
+ - name: manager
50
+ resources:
51
+ requests:
52
+ cpu: 0.2
53
+ memory: 512Mi
54
+ limits:
55
+ cpu: 0.2
56
+ memory: 512Mi
57
+ - name: entitymgr-jdbccfg
58
+ containers:
59
+ - name: manager
60
+ resources:
61
+ requests:
62
+ cpu: 0.5
63
+ memory: 384Mi
64
+ limits:
65
+ cpu: 0.5
66
+ memory: 384Mi
67
+ - name: entitymgr-kafkacfg
68
+ containers:
69
+ - name: manager
70
+ resources:
71
+ requests:
72
+ cpu: 0.4
73
+ memory: 256Mi
74
+ limits:
75
+ cpu: 0.4
76
+ memory: 256Mi
77
+ - name: entitymgr-mongocfg
78
+ containers:
79
+ - name: manager
80
+ resources:
81
+ requests:
82
+ cpu: 0.2
83
+ memory: 512Mi
84
+ limits:
85
+ cpu: 0.2
86
+ memory: 512Mi
87
+ - name: entitymgr-objectstorage
88
+ containers:
89
+ - name: manager
90
+ resources:
91
+ requests:
92
+ cpu: 0.4
93
+ memory: 256Mi
94
+ limits:
95
+ cpu: 0.4
96
+ memory: 256Mi
97
+ - name: entitymgr-pushnotificationcfg
98
+ containers:
99
+ - name: manager
100
+ resources:
101
+ requests:
102
+ cpu: 0.2
103
+ memory: 512Mi
104
+ limits:
105
+ cpu: 0.2
106
+ memory: 512Mi
107
+ - name: entitymgr-scimcfg
108
+ containers:
109
+ - name: manager
110
+ resources:
111
+ requests:
112
+ cpu: 0.2
113
+ memory: 512Mi
114
+ limits:
115
+ cpu: 0.2
116
+ memory: 512Mi
117
+ - name: entitymgr-slscfg
118
+ containers:
119
+ - name: manager
120
+ resources:
121
+ requests:
122
+ cpu: 0.5
123
+ memory: 512Mi
124
+ limits:
125
+ cpu: 0.5
126
+ memory: 512Mi
127
+ - name: entitymgr-smtpcfg
128
+ containers:
129
+ - name: manager
130
+ resources:
131
+ requests:
132
+ cpu: 0.2
133
+ memory: 512Mi
134
+ limits:
135
+ cpu: 0.2
136
+ memory: 512Mi
137
+ - name: entitymgr-watsonstudiocfg
138
+ containers:
139
+ - name: manager
140
+ resources:
141
+ requests:
142
+ cpu: 0.4
143
+ memory: 256Mi
144
+ limits:
145
+ cpu: 0.4
146
+ memory: 256Mi
147
+ - name: entitymgr-ws
148
+ containers:
149
+ - name: manager
150
+ resources:
151
+ requests:
152
+ cpu: 0.2
153
+ memory: 512Mi
154
+ limits:
155
+ cpu: 0.2
156
+ memory: 512Mi
157
+ - name: coreapi
158
+ containers:
159
+ - name: coreapi
160
+ resources:
161
+ requests:
162
+ cpu: 1
163
+ memory: 2Gi
164
+ limits:
165
+ cpu: 1
166
+ memory: 2Gi
167
+ - name: internalapi
168
+ containers:
169
+ - name: internalapi
170
+ resources:
171
+ requests:
172
+ cpu: 1.2
173
+ memory: 2Gi
174
+ limits:
175
+ cpu: 1.2
176
+ memory: 2Gi
177
+ - name: mobileapi
178
+ containers:
179
+ - name: mobileapi
180
+ resources:
181
+ requests:
182
+ cpu: 0.8
183
+ memory: 2Gi
184
+ limits:
185
+ cpu: 0.8
186
+ memory: 2Gi
187
+ initContainers:
188
+ - name: mobileapi-init
189
+ resources:
190
+ requests:
191
+ cpu: 0.4
192
+ memory: 256Mi
193
+ limits:
194
+ cpu: 0.4
195
+ memory: 256Mi
196
+ - name: catalogapi
197
+ containers:
198
+ - name: catalogapi
199
+ resources:
200
+ requests:
201
+ cpu: 0.4
202
+ memory: 1Gi
203
+ limits:
204
+ cpu: 0.4
205
+ memory: 1Gi
206
+ initContainers:
207
+ - name: catalogapi-init
208
+ resources:
209
+ requests:
210
+ cpu: 0.4
211
+ memory: 256Mi
212
+ limits:
213
+ cpu: 0.4
214
+ memory: 256Mi
215
+ - name: catalogmgr
216
+ containers:
217
+ - name: catalogmgr
218
+ resources:
219
+ requests:
220
+ cpu: 0.4
221
+ memory: 1Gi
222
+ limits:
223
+ cpu: 0.4
224
+ memory: 1Gi
225
+ initContainers:
226
+ - name: catalogmgr-init
227
+ resources:
228
+ requests:
229
+ cpu: 0.4
230
+ memory: 256Mi
231
+ limits:
232
+ cpu: 0.4
233
+ memory: 256Mi
234
+ - name: groupsync-coordinator
235
+ containers:
236
+ - name: groupsync-coordinator
237
+ resources:
238
+ requests:
239
+ cpu: 0.25
240
+ memory: 256Mi
241
+ limits:
242
+ cpu: 0.25
243
+ memory: 256Mi
244
+ initContainers:
245
+ - name: groupsync-coordinator-init
246
+ resources:
247
+ requests:
248
+ cpu: 0.4
249
+ memory: 256Mi
250
+ limits:
251
+ cpu: 0.4
252
+ memory: 256Mi
253
+ - name: usersync-coordinator
254
+ containers:
255
+ - name: usersync-coordinator
256
+ resources:
257
+ requests:
258
+ cpu: 0.25
259
+ memory: 256Mi
260
+ limits:
261
+ cpu: 0.25
262
+ memory: 256Mi
263
+ initContainers:
264
+ - name: usersync-coordinator-init
265
+ resources:
266
+ requests:
267
+ cpu: 0.4
268
+ memory: 256Mi
269
+ limits:
270
+ cpu: 0.4
271
+ memory: 256Mi
272
+ - name: workspace-coordinator
273
+ containers:
274
+ - name: workspace-coordinator
275
+ resources:
276
+ requests:
277
+ cpu: 0.25
278
+ memory: 256Mi
279
+ limits:
280
+ cpu: 0.25
281
+ memory: 256Mi
282
+ initContainers:
283
+ - name: workspace-coordinator-init
284
+ resources:
285
+ requests:
286
+ cpu: 0.4
287
+ memory: 256Mi
288
+ limits:
289
+ cpu: 0.4
290
+ memory: 256Mi
291
+ - name: monagent-mas
292
+ containers:
293
+ - name: monagent-mas
294
+ resources:
295
+ requests:
296
+ cpu: 0.5
297
+ memory: 512Mi
298
+ limits:
299
+ cpu: 0.5
300
+ memory: 512Mi
301
+ - name: admin-dashboard
302
+ containers:
303
+ - name: admin-dashboard
304
+ resources:
305
+ requests:
306
+ cpu: 0.8
307
+ memory: 512Mi
308
+ limits:
309
+ cpu: 0.8
310
+ memory: 512Mi
311
+ - name: homepage
312
+ containers:
313
+ - name: homepage
314
+ resources:
315
+ requests:
316
+ cpu: 0.8
317
+ memory: 512Mi
318
+ limits:
319
+ cpu: 0.8
320
+ memory: 512Mi
321
+ - name: navigator
322
+ containers:
323
+ - name: navigator
324
+ resources:
325
+ requests:
326
+ cpu: 0.8
327
+ memory: 512Mi
328
+ limits:
329
+ cpu: 0.8
330
+ memory: 512Mi
331
+ - name: ltpakeygenerator
332
+ containers:
333
+ - name: liberty
334
+ resources:
335
+ requests:
336
+ cpu: 0.2
337
+ memory: 512Mi
338
+ limits:
339
+ cpu: 0.2
340
+ memory: 512Mi
@@ -0,0 +1,76 @@
1
+ # supportedPodKeys
2
+ # =============================================================================
3
+ # This list defines the resources for pod containers/initContainers that get
4
+ # assigned a QoS class of Guaranteed. More can be found here:
5
+ # https://kubernetes.io/docs/tasks/configure-pod-container/quality-service-pod
6
+ podTemplates:
7
+ - name: vision-service
8
+ containers:
9
+ - name: vision-service
10
+ resources:
11
+ requests:
12
+ cpu: "20"
13
+ memory: "25Gi"
14
+ limits:
15
+ cpu: "20"
16
+ memory: "25Gi"
17
+ - name: vision-ui
18
+ containers:
19
+ - name: vision-ui
20
+ resources:
21
+ requests:
22
+ cpu: "1"
23
+ memory: "1024Mi"
24
+ limits:
25
+ cpu: "1"
26
+ memory: "1024Mi"
27
+ - name: vision-video-microservice
28
+ containers:
29
+ - name: vision-video-microservice
30
+ resources:
31
+ requests:
32
+ cpu: "20"
33
+ memory: "12Gi"
34
+ limits:
35
+ cpu: "20"
36
+ memory: "12Gi"
37
+ - name: vision-dataset-summarization
38
+ containers:
39
+ - name: vision-dataset-summarization
40
+ resources:
41
+ requests:
42
+ cpu: "1"
43
+ memory: "1Gi"
44
+ limits:
45
+ cpu: "1"
46
+ memory: "1Gi"
47
+ - name: vision-edgeman
48
+ containers:
49
+ - name: vision-edgeman
50
+ resources:
51
+ requests:
52
+ cpu: "1"
53
+ memory: "1Gi"
54
+ limits:
55
+ cpu: "1"
56
+ memory: "1Gi"
57
+ - name: vision-dataset-feature
58
+ containers:
59
+ - name: vision-dataset-feature
60
+ resources:
61
+ requests:
62
+ cpu: "2"
63
+ memory: "10Gi"
64
+ limits:
65
+ cpu: "2"
66
+ memory: "10Gi"
67
+ - name: vision-model-conversion
68
+ containers:
69
+ - name: vision-model-conversion
70
+ resources:
71
+ requests:
72
+ cpu: "2"
73
+ memory: "6Gi"
74
+ limits:
75
+ cpu: "2"
76
+ memory: "6Gi"
@@ -0,0 +1,16 @@
1
+ # supportedPodKeys
2
+ # =============================================================================
3
+ # This list defines the resources for pod containers/initContainers that get
4
+ # assigned a QoS class of Guaranteed. More can be found here:
5
+ # https://kubernetes.io/docs/tasks/configure-pod-container/quality-service-pod
6
+ podTemplates:
7
+ - name: api-licensing
8
+ containers:
9
+ - name: api-licensing
10
+ resources:
11
+ requests:
12
+ cpu: 0.8
13
+ memory: 2Gi
14
+ limits:
15
+ cpu: 0.8
16
+ memory: 2Gi
@@ -0,0 +1,55 @@
1
+ ---
2
+ # Mongo credentials for MAS
3
+ apiVersion: v1
4
+ kind: Secret
5
+ type: Opaque
6
+ metadata:
7
+ name: mongodb-{{mas_instance_id|lower}}-admin
8
+ namespace: mas-{{mas_instance_id}}-core
9
+ {% if custom_labels is defined and custom_labels.items() %}
10
+ labels:
11
+ {% for key, value in custom_labels.items() %}
12
+ "{{ key }}": "{{ value }}"
13
+ {% endfor %}
14
+ {% endif %}
15
+ data:
16
+ username: "{{ mongodb_admin_username }}"
17
+ password: "{{ mongodb_admin_password }}"
18
+ ---
19
+ # Mongo configuration for MAS
20
+ apiVersion: config.mas.ibm.com/v1
21
+ kind: MongoCfg
22
+ metadata:
23
+ name: {{mas_instance_id|lower}}-mongo-system
24
+ namespace: mas-{{mas_instance_id}}-core
25
+ labels:
26
+ mas.ibm.com/configScope: system
27
+ mas.ibm.com/instanceId: {{mas_instance_id}}
28
+ {% if custom_labels is defined and custom_labels.items() %}
29
+ {% for key, value in custom_labels.items() %}
30
+ "{{ key }}": "{{ value }}"
31
+ {% endfor %}
32
+ {% endif %}
33
+ spec:
34
+ displayName: "External MongoDB in 'mas-{{mas_instance_id}}-core' namespace"
35
+ type: external
36
+ config:
37
+ configDb: admin
38
+ retryWrites: true
39
+ authMechanism: DEFAULT
40
+ credentials:
41
+ secretName: mongodb-{{mas_instance_id|lower}}-admin
42
+ hosts:
43
+ {%- if mongodb_hosts is defined %}
44
+ {%- for host in mongodb_hosts.split(',') %}
45
+ {%- set host_port = host.split(':') %}
46
+ - host: {{ host_port[0] }}
47
+ port: {{ host_port[1] }}
48
+ {%- endfor %}
49
+ {%- endif %}
50
+ {%- if mongodb_ca_pem_local_file is defined and mongodb_ca_pem_local_file | length > 0 %}
51
+ certificates:
52
+ - alias: "part1"
53
+ crt: |
54
+ {{ mongodb_ca_pem_local_file | indent(width=8, first=False) }}
55
+ {%- endif %}
@@ -0,0 +1,11 @@
1
+ # *****************************************************************************
2
+ # Copyright (c) 2024 IBM Corporation and other Contributors.
3
+ #
4
+ # All rights reserved. This program and the accompanying materials
5
+ # are made available under the terms of the Eclipse Public License v1.0
6
+ # which accompanies this distribution, and is available at
7
+ # http://www.eclipse.org/legal/epl-v10.html
8
+ #
9
+ # *****************************************************************************
10
+
11
+ from ..cli import BaseApp # noqa: F401