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.1.2.tar.gz
(125.3 kB
view details)
Built Distribution
mas_cli-11.1.2-py3-none-any.whl
(170.2 kB
view details)
File details
Details for the file mas_cli-11.1.2.tar.gz
.
File metadata
- Download URL: mas_cli-11.1.2.tar.gz
- Upload date:
- Size: 125.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b41c42fe412ae6bb4c3029b3b47408f0e6a718457f51104e1cfc563d2d3a8e |
|
MD5 | 6dcaf004cdf3b358079df48d0136ecd9 |
|
BLAKE2b-256 | 1f8dc4bbd0fac08265e8506ce1ff97707787b967b92a40c981047c48bae88efe |
File details
Details for the file mas_cli-11.1.2-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.1.2-py3-none-any.whl
- Upload date:
- Size: 170.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b9652dea2667fd1bf05866916c8e6d2baa017ee1b936379a870468b9904be69 |
|
MD5 | 60f08cf35a0b4d63e7aab7c6bcfb4c26 |
|
BLAKE2b-256 | eeaf39d35544d007f540d9112fb84bec2bc60bb2bfc309f554850134a2082aed |