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.6.0.tar.gz
(121.8 kB
view details)
Built Distribution
mas_cli-10.6.0-py3-none-any.whl
(165.6 kB
view details)
File details
Details for the file mas_cli-10.6.0.tar.gz
.
File metadata
- Download URL: mas_cli-10.6.0.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 | 7d3b0d8afdcb7e92ecd62d3ad8c46fcbeffa87523b7e9c0aaa23ba93416edf6b |
|
MD5 | 55e82b352f73151cc9b22ca3a9a385c0 |
|
BLAKE2b-256 | bfd6dd7391f6b1796ce59729048759e1ade64c3f759613234b632ce9236190b8 |
File details
Details for the file mas_cli-10.6.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.6.0-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 | 87cea8796baff2c9f27d1422c3035b23ab471684122f279ca010c8d73a3e4f69 |
|
MD5 | a38678ddab1fded036c886c2b233220a |
|
BLAKE2b-256 | e69fdd31dca5a1b646fe940ac0d58e6975e225e2016a31a084e8004f797ef12b |