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

mas/cli/__init__.py CHANGED
@@ -8,4 +8,4 @@
8
8
  #
9
9
  # *****************************************************************************
10
10
 
11
- __version__ = "13.5.0" # Python module compatible semver
11
+ __version__ = "13.7.0" # Python module compatible semver
mas/cli/cli.py CHANGED
@@ -117,7 +117,7 @@ class BaseApp(PrintMixin, PromptMixin):
117
117
  logging.getLogger('asyncio').setLevel(logging.INFO)
118
118
 
119
119
  # Supports extended semver, unlike mas.cli.__version__
120
- self.version = "13.5.0"
120
+ self.version = "13.7.0"
121
121
  self.h1count = 0
122
122
  self.h2count = 0
123
123
 
mas/cli/install/app.py CHANGED
@@ -723,12 +723,11 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
723
723
  if self.showAdvancedOptions and self.installPredict:
724
724
  self.printH1("Configure Maximo Predict")
725
725
  self.printDescription([
726
- "Predict application supports integration with IBM SPSS and Watson Openscale which are optional services installed on top of IBM Cloud Pak for Data",
726
+ "Predict application supports integration with IBM SPSS which is an optional service installed on top of IBM Cloud Pak for Data",
727
727
  "Unless requested these will not be installed"
728
728
  ])
729
729
  self.configCP4D()
730
730
  self.yesOrNo("Install IBM SPSS Statistics", "cpd_install_spss")
731
- self.yesOrNo("Install Watson OpenScale", "cpd_install_openscale")
732
731
 
733
732
  @logMethodCall
734
733
  def assistSettings(self) -> None:
@@ -758,7 +757,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
758
757
  " - Customize Maximo Manage database settings (schema, tablespace, indexspace)",
759
758
  " - Customize Maximo Manage server bundle configuration (defaults to \"all\" configuration)",
760
759
  " - Enable optional Maximo Manage integration Cognos Analytics and Watson Studio Local",
761
- " - Enable optional Maximo Predict integration with SPSS and Watson OpenScale",
760
+ " - Enable optional Maximo Predict integration with SPSS",
762
761
  " - Enable optional IBM Turbonomic integration",
763
762
  " - Customize Db2 node affinity and tolerations, memory, cpu, and storage settings (when using the IBM Db2 Universal Operator)",
764
763
  " - Choose alternative Apache Kafka providers (default to Strimzi)",
@@ -1141,7 +1140,8 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
1141
1140
  instanceId=self.getParam("mas_instance_id"),
1142
1141
  storageClass=self.pipelineStorageClass,
1143
1142
  accessMode=self.pipelineStorageAccessMode,
1144
- waitForBind=wait
1143
+ waitForBind=wait,
1144
+ configureRBAC=(self.getParam("service_account_name") == "")
1145
1145
  )
1146
1146
  prepareInstallSecrets(
1147
1147
  dynClient=self.dynamicClient,
@@ -237,8 +237,6 @@ class installArgBuilderMixin():
237
237
  command += f" --cp4d-version \"{self.getParam('cpd_product_version')}\""
238
238
  if self.getParam('cpd_install_spss') == "install":
239
239
  command += " --cp4d-install-spss"
240
- if self.getParam('cpd_install_openscale') == "install":
241
- command += " --cp4d-install-openscal"
242
240
  if self.getParam('cpd_install_cognos') == "install":
243
241
  command += " --cp4d-install-cognos"
244
242
  if self.getParam('cpd_install_ws') == "install":
@@ -409,6 +407,8 @@ class installArgBuilderMixin():
409
407
  command += f" --skip-grafana-install{newline}"
410
408
  if self.getParam('image_pull_policy') != "":
411
409
  command += f" --image-pull-policy {self.getParam('image_pull_policy')}{newline}"
410
+ if self.getParam('service_account_name') != "":
411
+ command += f" --service-account {self.getParam('service_account_name')}{newline}"
412
412
 
413
413
  command += " --accept-license --no-confirm"
414
414
  return command
@@ -706,14 +706,6 @@ cpdAppsArgGroup.add_argument(
706
706
  action="store_const",
707
707
  const="install"
708
708
  )
709
- cpdAppsArgGroup.add_argument(
710
- "--cp4d-install-openscale",
711
- dest="cpd_install_openscale",
712
- required=False,
713
- help="Add Watson Openscale as part of Cloud Pak for Data",
714
- action="store_const",
715
- const="install"
716
- )
717
709
  cpdAppsArgGroup.add_argument(
718
710
  "--cp4d-install-cognos",
719
711
  dest="cpd_install_cognos",
@@ -1184,6 +1176,12 @@ otherArgGroup.add_argument(
1184
1176
  required=False,
1185
1177
  help="Manually set the image pull policy used in the Tekton Pipeline",
1186
1178
  )
1179
+ otherArgGroup.add_argument(
1180
+ "--service-account",
1181
+ dest="service_account_name",
1182
+ required=False,
1183
+ help="Run the install pipeline under a custom service account (also disables creation of the default 'pipeline' service account)",
1184
+ )
1187
1185
 
1188
1186
  otherArgGroup.add_argument(
1189
1187
  "-h", "--help",
mas/cli/install/params.py CHANGED
@@ -29,6 +29,7 @@ requiredParams = [
29
29
  optionalParams = [
30
30
  # Pipeline
31
31
  "image_pull_policy",
32
+ "service_account_name",
32
33
  # OpenShift
33
34
  "ocp_ingress_tls_secret_name",
34
35
  # MAS
@@ -95,7 +96,6 @@ optionalParams = [
95
96
  # CP4D
96
97
  "cpd_product_version",
97
98
  "cpd_install_cognos",
98
- "cpd_install_openscale",
99
99
  "cpd_install_spss",
100
100
  "cpd_install_ws",
101
101
  "cpd_install_wml",
@@ -18,6 +18,11 @@ logger = logging.getLogger(__name__)
18
18
 
19
19
  class InstallSummarizerMixin():
20
20
  def ocpSummary(self) -> None:
21
+ self.printH2("Pipeline Configuration")
22
+ self.printParamSummary("Service Account", "service_account_name")
23
+ self.printParamSummary("Image Pull Policy", "image_pull_policy")
24
+ self.printSummary("Skip Pre-Install Healthcheck", "Yes" if self.getParam('skip_pre_check') == "true" else "No")
25
+
21
26
  self.printH2("OpenShift Container Platform")
22
27
  self.printSummary("Worker Node Architecture", self.architecture)
23
28
  self.printSummary("Storage Class Provider", self.storageClassProvider)
@@ -32,9 +37,6 @@ class InstallSummarizerMixin():
32
37
  else:
33
38
  self.printSummary("Single Node OpenShift", "No")
34
39
 
35
- self.printSummary("Skip Pre-Install Healthcheck", "Yes" if self.getParam('skip_pre_check') == "true" else "No")
36
- self.printSummary("Skip Grafana-Install", "Yes" if self.getParam('grafana_action') == "none" else "No")
37
-
38
40
  def masSummary(self) -> None:
39
41
  operationalModeNames = ["", "Production", "Non-Production"]
40
42
 
@@ -257,7 +259,6 @@ class InstallSummarizerMixin():
257
259
  self.printSummary("Watson Machine Learning", "Install" if self.getParam("cpd_install_wml") == "true" else "Do Not Install")
258
260
  self.printSummary("Analytics Engine", "Install" if self.getParam("cpd_install_ae") == "true" else "Do Not Install")
259
261
 
260
- self.printSummary("Watson Openscale", "Install" if self.getParam("cpd_install_openscale") == "true" else "Do Not Install")
261
262
  self.printSummary("SPSS Modeler", "Install" if self.getParam("cpd_install_spss") == "true" else "Do Not Install")
262
263
  self.printSummary("Cognos Analytics", "Install" if self.getParam("cpd_install_cognos") == "true" else "Do Not Install")
263
264