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
installOpenShiftPipelines(dynamicClient)
# 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-15.1.13.tar.gz
(222.1 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-15.1.13-py3-none-any.whl
(275.0 kB
view details)
File details
Details for the file mas_cli-15.1.13.tar.gz.
File metadata
- Download URL: mas_cli-15.1.13.tar.gz
- Upload date:
- Size: 222.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77ef7a7bacf9f0b2314cc3e1fb246bcdaa96b8a1cb6aa143bf2f14013e858d6e
|
|
| MD5 |
dce01937123678d763358e8354e87b22
|
|
| BLAKE2b-256 |
2e885c5542ab07ea7d5b493277254edce87c6bc372bc91ffd09def8148460e18
|
File details
Details for the file mas_cli-15.1.13-py3-none-any.whl.
File metadata
- Download URL: mas_cli-15.1.13-py3-none-any.whl
- Upload date:
- Size: 275.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d6cb9b9a6ce425e5db71b80a8756754352125b2e6f9a9f850f8d8c300e00da9
|
|
| MD5 |
53ea9d061423ed1819caa53d1db5ea74
|
|
| BLAKE2b-256 |
f1bf75f9ccde9f280fdf5107f1f3bf58a8f3d1ed6933c9bd52c1a53daa663438
|