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.2.tar.gz
(119.4 kB
view details)
Built Distribution
mas_cli-10.3.2-py3-none-any.whl
(163.3 kB
view details)
File details
Details for the file mas_cli-10.3.2.tar.gz
.
File metadata
- Download URL: mas_cli-10.3.2.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 | de267a618e80564b96a7a2f8edf9feb15fe6ee5dd79c17d5ce951f266c5d1704 |
|
MD5 | 8b49e6db544f0ab461ac317a6c2399f6 |
|
BLAKE2b-256 | ebca3499a3c988cd92b0df90919ca3fd1882c2c92c933bcf9d7daa7a729baca2 |
File details
Details for the file mas_cli-10.3.2-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.3.2-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 | 44f2287a56f47fe4d6ac94b656581f9a2cfe4f7fdd31d4ffbe47fb91a7932f17 |
|
MD5 | 9628fb68b850e4c4599c9f94548b7c67 |
|
BLAKE2b-256 | e597738b324aa053a004abdb1cd9d6217f3f65576ad88ac3660cdfce63d8d4db |