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.4.5.tar.gz
(121.1 kB
view details)
Built Distribution
mas_cli-10.4.5-py3-none-any.whl
(165.0 kB
view details)
File details
Details for the file mas_cli-10.4.5.tar.gz
.
File metadata
- Download URL: mas_cli-10.4.5.tar.gz
- Upload date:
- Size: 121.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20e96c44b4227b7f0bcbd39d1381a7f47dfbb360a3d76c41212b107bbdaa7551 |
|
MD5 | a379d00934b396e9c8de3d710fa06eb8 |
|
BLAKE2b-256 | 0c5886e6d27e09189c8c8efb8f37abffa8fb36e8aba991d597a057ff347bf087 |
File details
Details for the file mas_cli-10.4.5-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.4.5-py3-none-any.whl
- Upload date:
- Size: 165.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2307edafa225ad43bb11a5bd1127cb934cc4907dd5f65f123f7427e54af870e |
|
MD5 | cb91a85c07a7c237b16898627b4fbc66 |
|
BLAKE2b-256 | 0164a0907d1d8d96f240bd7ef2b9ae80a1a18baf590a2bb874d7a83ef30f41e2 |