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-11.4.0.tar.gz
(127.3 kB
view details)
Built Distribution
mas_cli-11.4.0-py3-none-any.whl
(172.3 kB
view details)
File details
Details for the file mas_cli-11.4.0.tar.gz
.
File metadata
- Download URL: mas_cli-11.4.0.tar.gz
- Upload date:
- Size: 127.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa4effe9bf6d51a6f60e799b36ef3660093f5970e212db8e66fdaa37f124a97 |
|
MD5 | 132c7400dda31c868e76bdcff26d348a |
|
BLAKE2b-256 | b450fb2e8a26d7d5a58b96df90a4e13bf6030d8888d570d5fc37f7c251f92cbf |
File details
Details for the file mas_cli-11.4.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.4.0-py3-none-any.whl
- Upload date:
- Size: 172.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f1ef63aae62bfa104f1dcffcde378574b3d3c9a21138f867317fa80af030fb1 |
|
MD5 | 64a7d2a0bcb5c1f740a21d42c40944fa |
|
BLAKE2b-256 | 79c0747e591a261ab0ce4133aaadf864e4ff4b249edb69c1b70ba96f17b62158 |