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-11.7.0.tar.gz
(135.8 kB
view details)
Built Distribution
mas_cli-11.7.0-py3-none-any.whl
(182.5 kB
view details)
File details
Details for the file mas_cli-11.7.0.tar.gz
.
File metadata
- Download URL: mas_cli-11.7.0.tar.gz
- Upload date:
- Size: 135.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b391558c956853e7d22fb8dc7846d1744a72dcd0732885bb9112c1336e7bdbf |
|
MD5 | 6e6000cb10004f882332d166ddf465a7 |
|
BLAKE2b-256 | 06c22aca699d5535ab3b56f008d26c2f59414343f425d104431e199abd44a518 |
File details
Details for the file mas_cli-11.7.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.7.0-py3-none-any.whl
- Upload date:
- Size: 182.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 894b8cb99a00ab25419a45f8cd8cce44dd8edeee48f420096ab881febbd4d0ab |
|
MD5 | 686c5dd6ae625bebb8b78c08da073b4a |
|
BLAKE2b-256 | cb76e9fc2dbf14863781c048481e63a3f2e016e44cfe5d7505d1f5ad5b2e9a67 |