mas-cli 11.6.0__py3-none-any.whl → 11.7.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.

@@ -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 %}
mas/cli/update/app.py CHANGED
@@ -244,13 +244,13 @@ class UpdateApp(BaseApp):
244
244
  self.printH1("Select IBM Maximo Operator Catalog Version")
245
245
  self.printDescription([
246
246
  "Select MAS Catalog",
247
+ " 1) Nov 07 2024 Update (MAS 9.0.4, 8.11.16, & 8.10.19)",
247
248
  " 1) Oct 03 2024 Update (MAS 9.0.3, 8.11.15, & 8.10.18)",
248
249
  " 2) Aug 27 2024 Update (MAS 9.0.2, 8.11.14, & 8.10.17)",
249
- " 3) July 30 2024 Update (MAS 9.0.1, 8.11.13, & 8.10.16)"
250
250
  ])
251
251
 
252
252
  catalogOptions = [
253
- "v9-241003-amd64", "v9-240827-amd64", "v9-240730-amd64"
253
+ "v9-241107-amd64", "v9-241003-amd64", "v9-240827-amd64"
254
254
  ]
255
255
  self.promptForListSelect("Select catalog version", catalogOptions, "mas_catalog_version", default=1)
256
256
 
@@ -341,12 +341,13 @@ class UpdateApp(BaseApp):
341
341
  # the case bundles in there anymore
342
342
  # Longer term we will centralise this information inside the mas-devops python collection,
343
343
  # where it can be made available to both the ansible collection and this python package.
344
- defaultMongoVersion = "6.0.12"
344
+ defaultMongoVersion = "7.0.12"
345
345
  mongoVersions = {
346
346
  "v9-240625-amd64": "6.0.12",
347
347
  "v9-240730-amd64": "6.0.12",
348
348
  "v9-240827-amd64": "6.0.12",
349
- "v9-241003-amd64": "6.0.12"
349
+ "v9-241003-amd64": "6.0.12",
350
+ "v9-241107-amd64": "7.0.12"
350
351
  }
351
352
  catalogVersion = self.getParam('mas_catalog_version')
352
353
  if catalogVersion in mongoVersions:
@@ -411,6 +412,15 @@ class UpdateApp(BaseApp):
411
412
  ""
412
413
  ])
413
414
 
415
+ def selectDROStorageclass(self):
416
+ self.printDescription([
417
+ "",
418
+ "Select the storage class for DRO to use from the list below:"
419
+ ])
420
+ for storageClass in getStorageClasses(self.dynamicClient):
421
+ print_formatted_text(HTML(f"<LightSlateGrey> - {storageClass.metadata.name}</LightSlateGrey>"))
422
+ self.promptForString("DRO storage class", "dro_storage_class", validator=StorageClassValidator())
423
+
414
424
  def detectUDS(self) -> None:
415
425
  with Halo(text='Checking for IBM User Data Services', spinner=self.spinner) as h:
416
426
  try:
@@ -437,19 +447,14 @@ class UpdateApp(BaseApp):
437
447
  self.showUDSUpdateNotice()
438
448
  self.fatalError(f"By choosing {self.getParam('mas_catalog_version')} you must provide the storage class to use for the migration to DRO using '--dro-storage-class' when using '--no-confirm'")
439
449
  else:
440
- h.stop_and_persist(symbol=self.successIcon, text="IBM User Data Services needs to be migrated to IBM Data Reporter Operator")
441
450
  self.showUDSUpdateNotice()
442
- if self.getParam("dro_migration") == "true" and self.getParam("dro_storage_class") is None:
451
+ if self.getParam("dro_migration") != "true":
443
452
  if not self.yesOrNo("Confirm migration from UDS to DRO", "dro_migration"):
444
453
  # If the user did not approve the update, abort
445
454
  exit(1)
446
- self.printDescription([
447
- "",
448
- "Select the storage class for DRO to use from the list below:"
449
- ])
450
- for storageClass in getStorageClasses(self.dynamicClient):
451
- print_formatted_text(HTML(f"<LightSlateGrey> - {storageClass.metadata.name}</LightSlateGrey>"))
452
- self.promptForString("DRO storage class", "dro_storage_class", validator=StorageClassValidator())
455
+
456
+ if self.getParam("dro_storage_class") is None or self.getParam("dro_storage_class") == "":
457
+ self.selectDROStorageclass()
453
458
 
454
459
  if self.getParam("dro_migration") == "true":
455
460
  self.setParam("uds_action", "install-dro")
@@ -469,8 +474,8 @@ class UpdateApp(BaseApp):
469
474
  "v9-240625-amd64": "4.8.0",
470
475
  "v9-240730-amd64": "4.8.0",
471
476
  "v9-240827-amd64": "4.8.0",
472
- "v9-241003-amd64": "4.8.0"
473
-
477
+ "v9-241003-amd64": "4.8.0",
478
+ "v9-241107-amd64": "4.8.0"
474
479
  }
475
480
 
476
481
  with Halo(text='Checking for IBM Cloud Pak for Data', spinner=self.spinner) as h:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mas-cli
3
- Version: 11.6.0
3
+ Version: 11.7.0
4
4
  Summary: Python Admin CLI for Maximo Application Suite
5
5
  Home-page: https://github.com/ibm-mas/cli
6
6
  Author: David Parker
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Topic :: Communications
18
18
  Classifier: Topic :: Internet
19
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
- Requires-Dist: mas-devops >=1.6.3
20
+ Requires-Dist: mas-devops >=1.7.0
21
21
  Requires-Dist: halo
22
22
  Requires-Dist: prompt-toolkit
23
23
  Requires-Dist: openshift
@@ -1,21 +1,25 @@
1
- mas/cli/__init__.py,sha256=jwFdxuSo_zwNXds0IVNrCiO5YZjBdvxHAVBfdCpvvYw,526
2
- mas/cli/cli.py,sha256=lR0h-pPyFXiKCOKka5wTRJbyQZDrQevq3-ZIvZUTa_A,14411
1
+ mas/cli/__init__.py,sha256=QgfTAdX6sA6BSBR5wDxqLdHZ4ZzVjMFi7niDUS6iMB4,526
2
+ mas/cli/cli.py,sha256=TrrhmPflgyTlZmbQjpmrE2MGjnGG86KtoFYp1-czYPQ,15811
3
3
  mas/cli/displayMixins.py,sha256=VVL2kWzPTqNQy63WT-tYIDnYa7SX3w33QX2XjSWVHWk,5636
4
- mas/cli/gencfg.py,sha256=BbWCyX6soIwQWcsKCLDTY0VkipLd944cuIAFpAWWXpA,2107
4
+ mas/cli/gencfg.py,sha256=p38Ss_ooiNHOZTJT8l0YxDaEaPwD4ZXgxEbW-S9YLNY,3311
5
5
  mas/cli/validators.py,sha256=vi1pFA8QtqMhqtGk1NlkkNDUrlFCi53kS5wJqFGDgOU,5108
6
6
  mas/cli/install/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
7
- mas/cli/install/app.py,sha256=iihHRfhdo4h91xHovfioDsYx-I6j9ClgB69oD6TwMEM,58314
8
- mas/cli/install/argBuilder.py,sha256=064MK0mp42bH6HM3lZiixkKZvMyXJuWPhwt1znTViQE,22734
9
- mas/cli/install/argParser.py,sha256=rqS36UVxMTz_XNG8e_W2IuIJZuYiq2sN75OmsAVczVg,32587
10
- mas/cli/install/summarizer.py,sha256=oo-_hcPWe3cKGmucpmUmhoWfUR_gzPZKUhwKGljGHGk,21002
11
- mas/cli/install/settings/__init__.py,sha256=wvprrlWi-j9SPwERiJkZdNKC99g_3QZ0h6lMn1gNGqE,962
12
- mas/cli/install/settings/additionalConfigs.py,sha256=rD9-eEiZZiMJ6O7zKTYeioZoqI5sghiRRuAOE7-pVq0,9373
13
- mas/cli/install/settings/db2Settings.py,sha256=0gR3nkr-xeR3cUgBzXWvatSgZf1fv2SbDdbxjBRBFG0,10712
14
- mas/cli/install/settings/kafkaSettings.py,sha256=OWE5MV--h2fTtATMQiaGQq1FXIMXzaTAPGE_6-vXoWU,6998
15
- mas/cli/install/settings/manageSettings.py,sha256=If2VVjX7YsYdcwB3P04_lSxm_dhC6sF3QEQJN0HND8A,15808
16
- mas/cli/install/settings/turbonomicSettings.py,sha256=qy1SBjWJw1AHfRQoLv8uB9DO_QFcGa8hZp1fhdM0dY8,1589
17
- mas/cli/templates/ibm-mas-tekton.yaml,sha256=73bkddTaY1fI77AbnlsJYdmts16ABI1HCFOqmRyFweU,778036
7
+ mas/cli/install/app.py,sha256=FBJotzLrI5P4hy4PIi21VrV-OWKkguUX71bQLT4my7k,54024
8
+ mas/cli/install/argBuilder.py,sha256=v7Jcz-fX3BgQAOoCgp_FMlHWfO0JzPATbdMt4u34opY,22880
9
+ mas/cli/install/argParser.py,sha256=E-AfgpDj1ao1zIkn306nITvndoB0_r6WNyokwAj3cB8,33045
10
+ mas/cli/install/catalogs.py,sha256=44gOkCNFPNAZ1yBAz-h3IvDE1RrW2tv1kMWQVombk9o,4076
11
+ mas/cli/install/params.py,sha256=QbEXMUHxZS_7g8yqOoNPyGzWlTryZBfn7MVt-nK55vc,4765
12
+ mas/cli/install/summarizer.py,sha256=3SM_FrRbxJPsMPTcuv-VvhXPFWEigmVo1MSnIMAACoY,21054
13
+ mas/cli/install/settings/__init__.py,sha256=RdyBSh-rM0wkuvILVzJ1gxjOtLuQ1mF6QbEL0MyiKIY,1034
14
+ mas/cli/install/settings/additionalConfigs.py,sha256=bTNDizLM7I8qu_PY3yGXupdzxVXSOyT4P_r1TJXgCsk,9402
15
+ mas/cli/install/settings/db2Settings.py,sha256=eLwk4rNpDg4jdnc_FWdwg7hQ4vQ8NyMrTmjxLutE4eA,12969
16
+ mas/cli/install/settings/kafkaSettings.py,sha256=Fe3WKIP-c9g6R9Oa3mfLIjnB6wcIhEdWiHlGyl-gIU0,7217
17
+ mas/cli/install/settings/manageSettings.py,sha256=Z4otj9OysuoDSq-sHf8LRfEqVCjXwYxJ-ldP4iYr4vI,16179
18
+ mas/cli/install/settings/mongodbSettings.py,sha256=mFKL58d7ZxKkPkViUVAQTGhOxPSwAp5l2nhO0QF31qA,2356
19
+ mas/cli/install/settings/turbonomicSettings.py,sha256=4MWrbZmnToeaDsstfJTn2DvUviokCyjlBM-GPQd4a8A,1678
20
+ mas/cli/templates/ibm-mas-tekton.yaml,sha256=xLcAx81pZ7nxJGav8xC_MJgDCGYinIqC89GYZKlDoH8,780115
18
21
  mas/cli/templates/jdbccfg.yml.j2,sha256=cANbwkUkKEPQp-P3_BB_Llbt94457Ciagah2hOdySIM,1644
22
+ mas/cli/templates/suite_mongocfg.yml.j2,sha256=WrgJUfGyvfaRIHjY5VR_zLZ5irTpV5khKNq76ejIxKU,1606
19
23
  mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml,sha256=8VG_FDFcEjWNaAOZTcS58Pe0tWOXC10SJLloNqzEMC8,757
20
24
  mas/cli/templates/pod-templates/best-effort/ibm-mas-bascfg.yml,sha256=rkq8c2pVJoskgict9tCZzCchGSE2MBC-dJ47JyMYm7A,1559
21
25
  mas/cli/templates/pod-templates/best-effort/ibm-mas-coreidp.yml,sha256=9fBqmd6t8WNOpFlZ2imZVeXH2Z-wui6QVRw3RxBubBw,648
@@ -90,13 +94,13 @@ mas/cli/uninstall/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc
90
94
  mas/cli/uninstall/app.py,sha256=uPJy3z-1Yt66MSFdZz1Qh8MjA97ZrQmjSgTx-Gqua9I,10047
91
95
  mas/cli/uninstall/argParser.py,sha256=VVG4myUvFOtg98L6HAzpgGg7s5c-vub_UMZPGuNQko4,3452
92
96
  mas/cli/update/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
93
- mas/cli/update/app.py,sha256=loh76IOo3h4gx9VUe4m27nqcI2_h2fK9h1uRvCZGOGE,37729
97
+ mas/cli/update/app.py,sha256=-Ywqx_BlMCYeEQnL0CofwvISvNFmWDLAeAvCeu__mOM,37695
94
98
  mas/cli/update/argParser.py,sha256=oOIXzB_rsI2p3og_5X5SFt_g7LURyEdLxZeiGCKq1nU,4711
95
99
  mas/cli/upgrade/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
96
100
  mas/cli/upgrade/app.py,sha256=f1qfvzRdmf7YiYMtVTqKwE5RFVMcUkLGavCIZDuU_7c,5247
97
101
  mas/cli/upgrade/argParser.py,sha256=zk629svjIk-hD40Ytc5e5UOLO3xogVrfqSz09S17mWw,1882
98
- mas_cli-11.6.0.data/scripts/mas-cli,sha256=Es-wSefTBcR3Vs5_kIUHQLfWHxTXVrmIPMFY0hbrxt8,3493
99
- mas_cli-11.6.0.dist-info/METADATA,sha256=v3-xafN2zDAhnqyyEDJMy44ppQnNlJ9cp1eEX1XE6wE,2084
100
- mas_cli-11.6.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
101
- mas_cli-11.6.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
102
- mas_cli-11.6.0.dist-info/RECORD,,
102
+ mas_cli-11.7.0.data/scripts/mas-cli,sha256=Es-wSefTBcR3Vs5_kIUHQLfWHxTXVrmIPMFY0hbrxt8,3493
103
+ mas_cli-11.7.0.dist-info/METADATA,sha256=Te314ECgLRPicjYJ2rx6p_90l59ljlFMH3sFc8-av1k,2084
104
+ mas_cli-11.7.0.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
105
+ mas_cli-11.7.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
106
+ mas_cli-11.7.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5