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.6.0.tar.gz
(132.2 kB
view details)
Built Distribution
mas_cli-11.6.0-py3-none-any.whl
(177.0 kB
view details)
File details
Details for the file mas_cli-11.6.0.tar.gz
.
File metadata
- Download URL: mas_cli-11.6.0.tar.gz
- Upload date:
- Size: 132.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7a80d348c0ae7c47ce2b52a877d1dfa834ab226762e6b63a296498397b72b0 |
|
MD5 | 2334360d5125ae0bb9c0ff6f2684e85f |
|
BLAKE2b-256 | dc914041bf2ea2c6d76ca82710fc5dd5131be70ef2a4a6a962fdfe269d0c25ee |
File details
Details for the file mas_cli-11.6.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.6.0-py3-none-any.whl
- Upload date:
- Size: 177.0 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 | 4357de2f3ae1424b080abbb4b6bbad1a4d5f981798769cd6199bfaf881bbee68 |
|
MD5 | 6567df686998957034e10a0229dcd090 |
|
BLAKE2b-256 | 30e5b04a0167bd28084b7807f1164b8ae88519dead6bdd4e7f342f3ffeb2a7f0 |