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.3.1.tar.gz
(119.4 kB
view details)
Built Distribution
mas_cli-10.3.1-py3-none-any.whl
(163.3 kB
view details)
File details
Details for the file mas_cli-10.3.1.tar.gz
.
File metadata
- Download URL: mas_cli-10.3.1.tar.gz
- Upload date:
- Size: 119.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99a55d426d3bebe1862e94a70266dd21694f16a2dee8053fe48c653781782a4 |
|
MD5 | 9ba95b270b34e64caa2f04339549941c |
|
BLAKE2b-256 | f6bd1b05716d3d2f0f9e77c0a6857a98479308fc80cf452169e3fb8e5c747a05 |
File details
Details for the file mas_cli-10.3.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.3.1-py3-none-any.whl
- Upload date:
- Size: 163.3 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 | b1d1ffb2881e85673e7c8dc8549ae5c5e1fb314d0933a3a93f5dc0b5b76fb7c5 |
|
MD5 | cb2bf3e8e0c12619f1f000a76b26e791 |
|
BLAKE2b-256 | 524d1a030ffad63f2a1b0ab3e3e94f77d02feb4d79dd19a107023df3c519d3fc |