mas-devops 9.5.0__py3-none-any.whl → 9.6.1__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.
mas/devops/__init__.py CHANGED
@@ -8,4 +8,4 @@
8
8
  #
9
9
  # *****************************************************************************
10
10
 
11
- __version__ = "9.5.0"
11
+ __version__ = "9.6.1"
@@ -1,5 +1,5 @@
1
1
  # *****************************************************************************
2
- # Copyright (c) 2024 IBM Corporation and other Contributors.
2
+ # Copyright (c) 2024, 2026 IBM Corporation and other Contributors.
3
3
  #
4
4
  # All rights reserved. This program and the accompanying materials
5
5
  # are made available under the terms of the Eclipse Public License v1.0
@@ -20,7 +20,11 @@ from glob import glob
20
20
  from os import path
21
21
 
22
22
 
23
- def getCatalog(name: str) -> dict | None:
23
+ class NoSuchCatalogError(Exception):
24
+ pass
25
+
26
+
27
+ def getCatalog(name: str) -> dict:
24
28
  """
25
29
  Load a specific IBM Operator Catalog definition by name.
26
30
 
@@ -32,7 +36,9 @@ def getCatalog(name: str) -> dict | None:
32
36
 
33
37
  Returns:
34
38
  dict: The catalog definition dictionary containing operator versions and metadata.
35
- Returns None if the catalog file doesn't exist.
39
+
40
+ Raises:
41
+ NoSuchCatalogError: If the specified catalog does not exist.
36
42
  """
37
43
  moduleFile = path.abspath(__file__)
38
44
  modulePath = path.dirname(moduleFile)
@@ -40,13 +46,15 @@ def getCatalog(name: str) -> dict | None:
40
46
 
41
47
  pathToCatalog = path.join(modulePath, "catalogs", catalogFileName)
42
48
  if not path.exists(pathToCatalog):
43
- return None
49
+ raise NoSuchCatalogError(
50
+ f"Catalog {name} is unknown: {pathToCatalog} does not exist"
51
+ )
44
52
 
45
53
  with open(pathToCatalog) as stream:
46
54
  return yaml.safe_load(stream)
47
55
 
48
56
 
49
- def listCatalogTags(arch="amd64") -> list:
57
+ def listCatalogTags(arch="amd64") -> list[str]:
50
58
  """
51
59
  List all available IBM Operator Catalog tags for a specific architecture.
52
60
 
@@ -70,7 +78,7 @@ def listCatalogTags(arch="amd64") -> list:
70
78
  return result
71
79
 
72
80
 
73
- def getNewestCatalogTag(arch="amd64") -> str | None:
81
+ def getNewestCatalogTag(arch="amd64") -> str:
74
82
  """
75
83
  Get the most recent IBM Operator Catalog tag for a specific architecture.
76
84
 
@@ -83,11 +91,13 @@ def getNewestCatalogTag(arch="amd64") -> str | None:
83
91
 
84
92
  Returns:
85
93
  str: The newest catalog tag (e.g., "v9-241205-amd64").
86
- Returns None if no catalogs are found for the architecture.
94
+
95
+ Raises:
96
+ NoSuchCatalogError: If no catalogs are found for the specified architecture.
87
97
  """
88
98
  catalogs = listCatalogTags(arch)
89
99
  if len(catalogs) == 0:
90
- return None
100
+ raise NoSuchCatalogError(f"There are no known catalogs for the {arch} platform")
91
101
  else:
92
102
  return catalogs[-1]
93
103
 
@@ -174,7 +184,5 @@ def getCatalogEditorial(catalogTag: str) -> dict | None:
174
184
  or has no editorial content.
175
185
  """
176
186
  catalog = getCatalog(catalogTag)
177
- if not catalog:
178
- return None
179
187
 
180
188
  return catalog.get("editorial")
@@ -535,6 +535,14 @@ spec:
535
535
  - name: mas_routing_mode
536
536
  value: "{{ mas_routing_mode }}"
537
537
  {%- endif %}
538
+ {%- if mas_ingress_controller_name is defined and mas_ingress_controller_name != "" %}
539
+ - name: mas_ingress_controller_name
540
+ value: "{{ mas_ingress_controller_name }}"
541
+ {%- endif %}
542
+ {%- if mas_configure_ingress is defined and mas_configure_ingress != "" %}
543
+ - name: mas_configure_ingress
544
+ value: "{{ mas_configure_ingress }}"
545
+ {%- endif %}
538
546
 
539
547
  # MAS Workspace
540
548
  # -------------------------------------------------------------------------
@@ -839,6 +847,13 @@ spec:
839
847
  - name: aiservice_odh_model_deployment_type
840
848
  value: "{{ aiservice_odh_model_deployment_type }}"
841
849
 
850
+ # AI Service - Red Hat Openshift AI
851
+ # -------------------------------------------------------------------------
852
+ - name: aiservice_rhoai_model_deployment_type
853
+ value: "{{ aiservice_rhoai_model_deployment_type }}"
854
+ - name: rhoai
855
+ value: "{{ rhoai }}"
856
+
842
857
  # AI Service - watsonX
843
858
  # -------------------------------------------------------------------------
844
859
  - name: aiservice_watsonxai_apikey
@@ -863,6 +878,14 @@ spec:
863
878
  value: "{{ aiservice_watsonxai_space_id }}"
864
879
  - name: aiservice_watsonxai_on_prem
865
880
  value: "{{ aiservice_watsonxai_on_prem }}"
881
+
882
+ # AI Service - watsonX
883
+ # -------------------------------------------------------------------------
884
+ {%- if aiservice_certificate_issuer is defined and aiservice_certificate_issuer != "" %}
885
+ - name: aiservice_certificate_issuer
886
+ value: "{{ aiservice_certificate_issuer }}"
887
+ {%- endif %}
888
+
866
889
  {%- endif %}
867
890
 
868
891
  workspaces:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mas-devops
3
- Version: 9.5.0
3
+ Version: 9.6.1
4
4
  Summary: Python for Maximo Application Suite Dev/Ops
5
5
  Home-page: https://github.com/ibm-mas/python-devops
6
6
  Author: David Parker
@@ -1,4 +1,4 @@
1
- mas/devops/__init__.py,sha256=gtCpZLbQvVbt2Kyub5QSZEF-tEs4fZvBlYW9rtVzHAg,490
1
+ mas/devops/__init__.py,sha256=sBvS_IYg3GWnAD4Fqa8WeUgRpcc4mDGj5eKugIfyWqk,490
2
2
  mas/devops/aiservice.py,sha256=mEDHJwGJLGq7z23k86yStIQLplV-PCo7_U7mJl3rv78,5851
3
3
  mas/devops/db2.py,sha256=o3XXwAtudrmSKSRjrAB-fNQUBIRV02EE5YMo7bhHN0g,17775
4
4
  mas/devops/ocp.py,sha256=LzxzOom1L5HkE3PuOwLiY90CmisYDs0_tnrUTdPHNe4,22374
@@ -8,7 +8,7 @@ mas/devops/sls.py,sha256=ocuzKYb5WH5Gabv0vKuJsLfwvnCWZySx6Re6T0u9bEI,3300
8
8
  mas/devops/tekton.py,sha256=aHUA503S9K7bmRLPMBt5xMqUHWYbIQ0Ps0gwZt2Z2_0,31967
9
9
  mas/devops/users.py,sha256=SSmZ4DjfjB1a38VypozUSOXq-FCCoBj0s04u6vQAFXc,51740
10
10
  mas/devops/utils.py,sha256=S8OayiQrW4Jck1yo4T0YMktgxHMum087dIhmxff1Ry8,3176
11
- mas/devops/data/__init__.py,sha256=aiwVbNG-XshyCD6h5vlwsWhXsSn6ZP9xle7kGZ7oez0,6057
11
+ mas/devops/data/__init__.py,sha256=lDKA9-TnOyx_j-Bxg6ioo2PP3f3haCUGEQkNZ7nldI4,6273
12
12
  mas/devops/data/ocp.yaml,sha256=RXf16j8BIdifZQTpb_SLeGMKrwykMvuucLIoNcN8uJw,1653
13
13
  mas/devops/data/catalogs/v8-230414-amd64.yaml,sha256=1kgow2tP8VU3Hlc_uIt5qbBWxZJkoYDkWwCF2tYxmr8,2695
14
14
  mas/devops/data/catalogs/v8-230518-amd64.yaml,sha256=W43kSKYpfEUO7Ijxz69H3EZ1_riCPvZ4hcjXn5S9Np0,2689
@@ -76,8 +76,8 @@ mas/devops/data/catalogs/v9-251231-amd64.yaml,sha256=xbLO_bLonBKrH0VElSJlgdG6J4n
76
76
  mas/devops/data/catalogs/v9-251231-ppc64le.yaml,sha256=qmDs3HVITgk6Vl8r8JiEov-bG39cCzTsFrfboJDHtDQ,2707
77
77
  mas/devops/data/catalogs/v9-251231-s390x.yaml,sha256=qyQhKP9jnyub5YwxFeeOOFpGJWlODPeFo3mz0pWAOoE,2706
78
78
  mas/devops/data/catalogs/v9-260129-amd64.yaml,sha256=nE6mLpgZHTA8KnpfgoDMN5FzCtLWeiQLG9aFoX8kipM,7943
79
+ mas/devops/data/catalogs/v9-260129-ppc64le.yaml,sha256=OvbEBeukR7cZYxL4sueSEqdVnAETewCjGJrdHoydNas,2750
79
80
  mas/devops/data/catalogs/v9-260129-s390x.yaml,sha256=hJDRSU29v16SgOx9joF3pdcuzBZw1VGiqlMgDNiwvXs,2748
80
- mas/devops/data/catalogs/v9-290129-ppc64le.yaml,sha256=OvbEBeukR7cZYxL4sueSEqdVnAETewCjGJrdHoydNas,2750
81
81
  mas/devops/mas/__init__.py,sha256=3wmrhN2JRZDXcVWVYnj00tIPxezuDGFQq7kO-hOLTE0,336
82
82
  mas/devops/mas/apps.py,sha256=Bi8ICuERNWhltosv5XhSQwZmxMIvyNq2fKqC78EbAH8,9092
83
83
  mas/devops/mas/suite.py,sha256=qcf-syoJTmQpheXpbhSn3YHTXk_0l9uFpZ4ADspFklo,13203
@@ -90,7 +90,7 @@ mas/devops/templates/ibm-entitlement-secret.yml.j2,sha256=-pbGOQ9_XHklqtbMflDoOw
90
90
  mas/devops/templates/operatorgroup.yml.j2,sha256=wxNQdb4ts_ZUwb9NLit0Q9hz-3kC9rv5oenA5UWlcwg,247
91
91
  mas/devops/templates/pipeline-additional-configs.yml.j2,sha256=UDutfXjVePx6u2MVjzlFw3WqGSPYHfpXDxgZalcVprQ,91
92
92
  mas/devops/templates/pipelinerun-aiservice-upgrade.yml.j2,sha256=PV4-6A5TMMmmZhJIsdLtmgqu4oU8n573uGdHL-ZhawQ,1797
93
- mas/devops/templates/pipelinerun-install.yml.j2,sha256=XzY7koXV0AXut-c4HNb1xnzrek2EG0lVby2vTzsTA7A,35693
93
+ mas/devops/templates/pipelinerun-install.yml.j2,sha256=QybyzQhcSiXyFijs4XC0zsd5lXguAm7VHgY8UOQOdZM,36624
94
94
  mas/devops/templates/pipelinerun-uninstall.yml.j2,sha256=7ZyVARoT5ThN1ktsrnp0LiL-n4d92U45_8QYphHB99I,827
95
95
  mas/devops/templates/pipelinerun-update.yml.j2,sha256=dLE7SZJo1Wdr05K0c28rwNLIjWkTtrMedtVUbKuE2CM,4707
96
96
  mas/devops/templates/pipelinerun-upgrade.yml.j2,sha256=xBGlxxGeV5h1Opozb--GgothxVXD-XCp7WZ3vkzsfHY,10937
@@ -98,12 +98,12 @@ mas/devops/templates/pipelines-pvc.yml.j2,sha256=Mr3vbc-nLaGtscqCD9lxtGybE6axfGv
98
98
  mas/devops/templates/pipelines-rbac-cluster.yml.j2,sha256=0zc5HLjgDXfBEKNDjKym-sIQlMCvcIizbY-8m7xoNpA,320
99
99
  mas/devops/templates/pipelines-rbac.yml.j2,sha256=6hU4MvgEOrRlSMAgKbfHg6LHTReZ7702wKfYWg11G4Y,364
100
100
  mas/devops/templates/subscription.yml.j2,sha256=VBrktpatF9_CWuYuQCbOKEysCOt-29Lfvuho80Tn_4s,400
101
- mas_devops-9.5.0.data/scripts/mas-devops-create-initial-users-for-saas,sha256=2yqUg3mzHYQeeIjTGPFo7o8x6RBs0MIb3WVwvNlwB9A,5846
102
- mas_devops-9.5.0.data/scripts/mas-devops-db2-validate-config,sha256=ZKM3YlVspcCi9zIgdZZPG1MC782TlpE_U5kDGqGX_us,1800
103
- mas_devops-9.5.0.data/scripts/mas-devops-notify-slack,sha256=RkstUWFD-hxru9DS652t-nmn4EBtNPMqdGMVTFVMSBI,4849
104
- mas_devops-9.5.0.data/scripts/mas-devops-saas-job-cleaner,sha256=LzKGJiBffMdxL0XyiUC94XV0omZ65xFPs_regbl6tNw,2629
105
- mas_devops-9.5.0.dist-info/licenses/LICENSE,sha256=jDSfgHZNBkjmRfQe8jdypwyZWgkktSNfc19KPQnfEnw,14197
106
- mas_devops-9.5.0.dist-info/METADATA,sha256=eNwlhTIMtpbeTs386Gc_jSzwyAXvjMrNWsoVfde3PLw,5143
107
- mas_devops-9.5.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
108
- mas_devops-9.5.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
109
- mas_devops-9.5.0.dist-info/RECORD,,
101
+ mas_devops-9.6.1.data/scripts/mas-devops-create-initial-users-for-saas,sha256=2yqUg3mzHYQeeIjTGPFo7o8x6RBs0MIb3WVwvNlwB9A,5846
102
+ mas_devops-9.6.1.data/scripts/mas-devops-db2-validate-config,sha256=ZKM3YlVspcCi9zIgdZZPG1MC782TlpE_U5kDGqGX_us,1800
103
+ mas_devops-9.6.1.data/scripts/mas-devops-notify-slack,sha256=RkstUWFD-hxru9DS652t-nmn4EBtNPMqdGMVTFVMSBI,4849
104
+ mas_devops-9.6.1.data/scripts/mas-devops-saas-job-cleaner,sha256=LzKGJiBffMdxL0XyiUC94XV0omZ65xFPs_regbl6tNw,2629
105
+ mas_devops-9.6.1.dist-info/licenses/LICENSE,sha256=jDSfgHZNBkjmRfQe8jdypwyZWgkktSNfc19KPQnfEnw,14197
106
+ mas_devops-9.6.1.dist-info/METADATA,sha256=9O_7LutNaYQ6Tkw7U53WuNrkM4SFxNv2XyhYphdD0gg,5143
107
+ mas_devops-9.6.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
108
+ mas_devops-9.6.1.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
109
+ mas_devops-9.6.1.dist-info/RECORD,,