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.9.0.tar.gz
(136.5 kB
view details)
Built Distribution
mas_cli-11.9.0-py3-none-any.whl
(183.1 kB
view details)
File details
Details for the file mas_cli-11.9.0.tar.gz
.
File metadata
- Download URL: mas_cli-11.9.0.tar.gz
- Upload date:
- Size: 136.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b432901fb9ca9e5bcd5e23448c93bdf57f2e114e4562b0df1ffe4e4c115f847 |
|
MD5 | 4f74f91cc7f2b291af6c73faac513270 |
|
BLAKE2b-256 | 8ac865915098d159b0ddd3c45d748e1174f3288adfb58babc63414e2d5be3142 |
File details
Details for the file mas_cli-11.9.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.9.0-py3-none-any.whl
- Upload date:
- Size: 183.1 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 | 048b163aac84a8bc2566a2baf4fc0b6f4b58a299cf919c5d9d6c1175bb32ea4c |
|
MD5 | 5707b033f9d698d98420d174ea8ddbd5 |
|
BLAKE2b-256 | 68840e95ab0ddfcc0f1fa48274c60e3e282624b55de5d7938c1e733aecbb15a1 |