Python Admin CLI for Maximo Application Suite
Project description
from openshift import dynamic
from kubernetes import config
from kubernetes.client import api_client
from mas.devops.ocp import createNamespace
from mas.devops.tekton import installOpenShiftPipelines, updateTektonDefinitions, launchUpgradePipeline
instanceId = "mymas"
pipelinesNamespace = f"mas-{instanceId}-pipelines"
# Create an OpenShift client
dynClient = dynamic.DynamicClient(
api_client.ApiClient(configuration=config.load_kube_config())
)
# Install OpenShift Pipelines Operator
success = installOpenShiftPipelines(dynamicClient)
assert success is True
# Create the pipelines namespace and install the MAS tekton definitions
createNamespace(dynamicClient, pipelinesNamespace)
updateTektonDefinitions(pipelinesNamespace)
# Launch the upgrade pipeline and print the URL to view the pipeline run
pipelineURL = launchUpgradePipeline(self.dynamicClient, instanceId)
print(pipelineURL)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mas_cli-18.13.0.tar.gz
(243.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mas_cli-18.13.0-py3-none-any.whl
(297.4 kB
view details)
File details
Details for the file mas_cli-18.13.0.tar.gz.
File metadata
- Download URL: mas_cli-18.13.0.tar.gz
- Upload date:
- Size: 243.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd5f90ca59e02f61b362e0647570a3a6732b1df16cc85dee7b5fcb241958515d
|
|
| MD5 |
a6502514f9a15b397c2cbab9c0410b96
|
|
| BLAKE2b-256 |
27fff353711586bb25df5ff0e46845f1cf00b2c020fd979d077d0d49179c7625
|
File details
Details for the file mas_cli-18.13.0-py3-none-any.whl.
File metadata
- Download URL: mas_cli-18.13.0-py3-none-any.whl
- Upload date:
- Size: 297.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
800788e713f875233f2506025982b272c451c6ba1530f0e5827ea6fe3f2723f9
|
|
| MD5 |
622ccd98001e1d06402c6880dbe7ab3b
|
|
| BLAKE2b-256 |
e9789051db3fd0f3651cd67a893d484a0c99b036a0aaad1beb8a6213f0f9ecf4
|