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.2.tar.gz
(120.6 kB
view details)
Built Distribution
mas_cli-10.4.2-py3-none-any.whl
(164.4 kB
view details)
File details
Details for the file mas_cli-10.4.2.tar.gz
.
File metadata
- Download URL: mas_cli-10.4.2.tar.gz
- Upload date:
- Size: 120.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aca11f374f70427324bb2d37477e219b0ac2055753bef13a9d6bfe57a05bd1d6 |
|
MD5 | 237df2fa0b996710997ed3849cb8a7f8 |
|
BLAKE2b-256 | abb640d5fcab2de8468d68cbf50e439daf078aef8a9cc181d7df35d626e97e3a |
File details
Details for the file mas_cli-10.4.2-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.4.2-py3-none-any.whl
- Upload date:
- Size: 164.4 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 | 45182a9a88b570c4864db0ccc3df0251d3c4d9d9e12292cef7fcb5c38cc35a1c |
|
MD5 | e8d27974309cf4606cac012f7e409dd1 |
|
BLAKE2b-256 | 2905dd3d31fc126bf09a67ad567ddf678392b876d0240ac5b4325cc8ffd44c7c |