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.8.0.tar.gz
(122.0 kB
view details)
Built Distribution
mas_cli-10.8.0-py3-none-any.whl
(165.9 kB
view details)
File details
Details for the file mas_cli-10.8.0.tar.gz
.
File metadata
- Download URL: mas_cli-10.8.0.tar.gz
- Upload date:
- Size: 122.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4991d066e5408cb6db70b48c41c022711facf9d3f4eaca1af2296bdef0d5d859 |
|
MD5 | b9c498f3ed41ba34aba698d77ca96383 |
|
BLAKE2b-256 | f3ff0c214735d6142c73cd2b61c0de78d741e6b074b8d41b511ed51c045facee |
File details
Details for the file mas_cli-10.8.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.8.0-py3-none-any.whl
- Upload date:
- Size: 165.9 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 | 5942dd716351f88f67597610f2f8314f21c3d7bbb72bd98cae8f326e3e0877f5 |
|
MD5 | cd1992e04c2a109ca66edcf7298fd2df |
|
BLAKE2b-256 | 57f0a83281251d240978234aa47d5c087ab6cc32de79bda1acef42dfb857ca57 |