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-10.7.2.tar.gz
(121.8 kB
view details)
Built Distribution
mas_cli-10.7.2-py3-none-any.whl
(165.6 kB
view details)
File details
Details for the file mas_cli-10.7.2.tar.gz
.
File metadata
- Download URL: mas_cli-10.7.2.tar.gz
- Upload date:
- Size: 121.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77d2ca81bd0f78749835dd5f0348addef1d976f658853404c81b6164c888cbf3 |
|
MD5 | 1349b97c79dc5641b720f6da400c357a |
|
BLAKE2b-256 | 37aea140aba0ab42a1d589377929c0baf85f8e0500fa626d63245e3733cfad84 |
File details
Details for the file mas_cli-10.7.2-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.7.2-py3-none-any.whl
- Upload date:
- Size: 165.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b81600fe4bd0e42f66180b6dac1cbd94cca1d9340b380ad49d0db7faaa37287e |
|
MD5 | 1f32e3c1eedfa738b460f521b5930ad8 |
|
BLAKE2b-256 | f4afba92c57ab91623293425c88ead129d92bf7ee14ae32e42252db31f96ffe2 |