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.1.0.tar.gz
(125.3 kB
view details)
Built Distribution
mas_cli-11.1.0-py3-none-any.whl
(170.2 kB
view details)
File details
Details for the file mas_cli-11.1.0.tar.gz
.
File metadata
- Download URL: mas_cli-11.1.0.tar.gz
- Upload date:
- Size: 125.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 597f476569ceb5e1dd5b148d4c0bf0fe592a18defcef701d8d81c9c911f57f11 |
|
MD5 | c472306f5dbd2f28ddcc42a81cf22d7a |
|
BLAKE2b-256 | a48d42e0447509b1046e2cdba4b3ac6e0510ad363604109f014996f90e9583d1 |
File details
Details for the file mas_cli-11.1.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.1.0-py3-none-any.whl
- Upload date:
- Size: 170.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb411bb4504259f0c607efcdca9695b4f82a8dbdc7f4408c18a1e6be8bc42334 |
|
MD5 | 43df4e317f458736acb21bda67c6036c |
|
BLAKE2b-256 | daa8c39a1388fb0d1bb854995d40173b761eb98674e6e718ec247d81fb254115 |