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.1.tar.gz
(121.8 kB
view details)
Built Distribution
mas_cli-10.7.1-py3-none-any.whl
(165.6 kB
view details)
File details
Details for the file mas_cli-10.7.1.tar.gz
.
File metadata
- Download URL: mas_cli-10.7.1.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 | 88b9c9920af03c9632aa665848125f0c92d2b573c67f87c0a195b00db4e1f38c |
|
MD5 | 038f42aa4ea6faf32ddb73b74192208b |
|
BLAKE2b-256 | b3212b64bd9f0aaff6fe965791b163b43c216de85a021777fa32029d30fe7d15 |
File details
Details for the file mas_cli-10.7.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.7.1-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 | a60f1698d806c056afd83988fb85eeeaefefa208a3a20aaf596f70ef23ca2c30 |
|
MD5 | 0e453a9e9b3f09ea6b513fe3b3d3d2e4 |
|
BLAKE2b-256 | 933c28d330ff5c7baecfe7965a9befedb71a0bceb5f96ebc2621447376f55c5a |