mas-cli 10.4.5__py3-none-any.whl → 10.6.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/install/app.py +51 -8
- mas/cli/install/argParser.py +6 -0
- mas/cli/install/summarizer.py +1 -0
- mas/cli/templates/ibm-mas-tekton.yaml +210 -114
- mas/cli/update/app.py +8 -5
- {mas_cli-10.4.5.dist-info → mas_cli-10.6.0.dist-info}/METADATA +1 -1
- {mas_cli-10.4.5.dist-info → mas_cli-10.6.0.dist-info}/RECORD +11 -11
- {mas_cli-10.4.5.dist-info → mas_cli-10.6.0.dist-info}/WHEEL +1 -1
- {mas_cli-10.4.5.data → mas_cli-10.6.0.data}/scripts/mas-cli +0 -0
- {mas_cli-10.4.5.dist-info → mas_cli-10.6.0.dist-info}/top_level.txt +0 -0
mas/cli/__init__.py
CHANGED
mas/cli/install/app.py
CHANGED
|
@@ -59,7 +59,6 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
59
59
|
catalogDisplayName = catalog.spec.displayName
|
|
60
60
|
|
|
61
61
|
m = re.match(r".+(?P<catalogId>v[89]-(?P<catalogVersion>[0-9]+)-amd64)", catalogDisplayName)
|
|
62
|
-
print(f"m: {m}")
|
|
63
62
|
if m:
|
|
64
63
|
# catalogId = v8-yymmdd-amd64
|
|
65
64
|
# catalogVersion = yymmdd
|
|
@@ -166,7 +165,10 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
166
165
|
try:
|
|
167
166
|
packagemanifestAPI = self.dynamicClient.resources.get(api_version="packages.operators.coreos.com/v1", kind="PackageManifest")
|
|
168
167
|
packagemanifestAPI.get(name="grafana-operator", namespace="openshift-marketplace")
|
|
169
|
-
self.
|
|
168
|
+
if self.skipGrafanaInstall:
|
|
169
|
+
self.setParam("grafana_action", "none")
|
|
170
|
+
else:
|
|
171
|
+
self.setParam("grafana_action", "install")
|
|
170
172
|
except NotFoundError:
|
|
171
173
|
self.setParam("grafana_action", "none")
|
|
172
174
|
|
|
@@ -184,7 +186,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
184
186
|
|
|
185
187
|
def configCP4D(self):
|
|
186
188
|
# TODO: It's probably time to remove v8-amd64 support from the CLI entirely now
|
|
187
|
-
if self.getParam("mas_catalog_version") in ["v8-amd64", "v9-240625-amd64"]:
|
|
189
|
+
if self.getParam("mas_catalog_version") in ["v8-amd64", "v9-240625-amd64", "v9-240730-amd64"]:
|
|
188
190
|
self.setParam("cpd_product_version", "4.8.0")
|
|
189
191
|
elif self.getParam("mas_catalog_version") in ["v8-240528-amd64"]:
|
|
190
192
|
self.setParam("cpd_product_version", "4.6.6")
|
|
@@ -843,7 +845,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
843
845
|
self.fatalError(f"Unsupported format for {key} ({value}). Expected string:int:int:boolean")
|
|
844
846
|
|
|
845
847
|
# Arguments that we don't need to do anything with
|
|
846
|
-
elif key in ["accept_license", "dev_mode", "skip_pre_check", "no_confirm", "no_wait_for_pvc", "help"]:
|
|
848
|
+
elif key in ["accept_license", "dev_mode", "skip_pre_check", "skip_grafana_install", "no_confirm", "no_wait_for_pvc", "help"]:
|
|
847
849
|
pass
|
|
848
850
|
|
|
849
851
|
elif key == "manual_certificates":
|
|
@@ -887,10 +889,51 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
887
889
|
# These flags work for setting params in both interactive and non-interactive modes
|
|
888
890
|
if args.skip_pre_check:
|
|
889
891
|
self.setParam("skip_pre_check", "true")
|
|
892
|
+
if args.skip_grafana_install:
|
|
893
|
+
self.skipGrafanaInstall = True
|
|
890
894
|
|
|
891
895
|
self.installOptions = [
|
|
892
896
|
{
|
|
893
897
|
"#": 1,
|
|
898
|
+
"catalog": "v9-240730-amd64",
|
|
899
|
+
"release": "9.0.x",
|
|
900
|
+
"core": "9.0.1",
|
|
901
|
+
"assist": "9.0.1",
|
|
902
|
+
"iot": "9.0.1",
|
|
903
|
+
"manage": "9.0.1",
|
|
904
|
+
"monitor": "9.0.1",
|
|
905
|
+
"optimizer": "9.0.1",
|
|
906
|
+
"predict": "9.0.0",
|
|
907
|
+
"inspection": "9.0.0"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"#": 2,
|
|
911
|
+
"catalog": "v9-240730-amd64",
|
|
912
|
+
"release": "8.11.x",
|
|
913
|
+
"core": "8.11.13",
|
|
914
|
+
"assist": "8.8.5",
|
|
915
|
+
"iot": "8.8.11",
|
|
916
|
+
"manage": "8.7.10",
|
|
917
|
+
"monitor": "8.11.9",
|
|
918
|
+
"optimizer": "8.5.7",
|
|
919
|
+
"predict": "8.9.3",
|
|
920
|
+
"inspection": "8.9.4"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"#": 3,
|
|
924
|
+
"catalog": "v9-240730-amd64",
|
|
925
|
+
"release": "8.10.x",
|
|
926
|
+
"core": "8.10.16",
|
|
927
|
+
"assist": "8.7.6",
|
|
928
|
+
"iot": "8.7.15",
|
|
929
|
+
"manage": "8.6.16",
|
|
930
|
+
"monitor": "8.10.12",
|
|
931
|
+
"optimizer": "8.4.8",
|
|
932
|
+
"predict": "8.8.3",
|
|
933
|
+
"inspection": "8.8.4"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"#": 4,
|
|
894
937
|
"catalog": "v9-240625-amd64",
|
|
895
938
|
"release": "9.0.x",
|
|
896
939
|
"core": "9.0.0",
|
|
@@ -903,7 +946,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
903
946
|
"inspection": "9.0.0"
|
|
904
947
|
},
|
|
905
948
|
{
|
|
906
|
-
"#":
|
|
949
|
+
"#": 5,
|
|
907
950
|
"catalog": "v9-240625-amd64",
|
|
908
951
|
"release": "8.11.x",
|
|
909
952
|
"core": "8.11.12",
|
|
@@ -916,7 +959,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
916
959
|
"inspection": "8.9.3"
|
|
917
960
|
},
|
|
918
961
|
{
|
|
919
|
-
"#":
|
|
962
|
+
"#": 6,
|
|
920
963
|
"catalog": "v9-240625-amd64",
|
|
921
964
|
"release": "8.10.x",
|
|
922
965
|
"core": "8.10.15",
|
|
@@ -929,7 +972,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
929
972
|
"inspection": "8.8.4"
|
|
930
973
|
},
|
|
931
974
|
{
|
|
932
|
-
"#":
|
|
975
|
+
"#": 7,
|
|
933
976
|
"catalog": "v8-240528-amd64",
|
|
934
977
|
"release": "8.11.x",
|
|
935
978
|
"core": "8.11.11",
|
|
@@ -942,7 +985,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
942
985
|
"inspection": "8.9.3"
|
|
943
986
|
},
|
|
944
987
|
{
|
|
945
|
-
"#":
|
|
988
|
+
"#": 8,
|
|
946
989
|
"catalog": "v8-240528-amd64",
|
|
947
990
|
"release": "8.10.x",
|
|
948
991
|
"core": "8.10.14",
|
mas/cli/install/argParser.py
CHANGED
|
@@ -843,6 +843,12 @@ otherArgGroup.add_argument(
|
|
|
843
843
|
action="store_true",
|
|
844
844
|
help="Disable the 'pre-install-check' at the start of the install pipeline"
|
|
845
845
|
)
|
|
846
|
+
otherArgGroup.add_argument(
|
|
847
|
+
"--skip-grafana-install",
|
|
848
|
+
required=False,
|
|
849
|
+
action="store_true",
|
|
850
|
+
help="Skips Grafana install action"
|
|
851
|
+
)
|
|
846
852
|
otherArgGroup.add_argument(
|
|
847
853
|
"--no-confirm",
|
|
848
854
|
required=False,
|
mas/cli/install/summarizer.py
CHANGED
|
@@ -32,6 +32,7 @@ class InstallSummarizerMixin():
|
|
|
32
32
|
self.printSummary("Single Node OpenShift", "No")
|
|
33
33
|
|
|
34
34
|
self.printSummary("Skip Pre-Install Healthcheck", "Yes" if self.getParam('skip_pre_check') == "true" else "No")
|
|
35
|
+
self.printSummary("Skip Grafana-Install", "Yes" if self.getParam('grafana_action') == "none" else "No")
|
|
35
36
|
|
|
36
37
|
def icrSummary(self) -> None:
|
|
37
38
|
self.printH2("IBM Container Registry Credentials")
|