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.2.1.tar.gz
(125.8 kB
view details)
Built Distribution
mas_cli-11.2.1-py3-none-any.whl
(170.7 kB
view details)
File details
Details for the file mas_cli-11.2.1.tar.gz
.
File metadata
- Download URL: mas_cli-11.2.1.tar.gz
- Upload date:
- Size: 125.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c4dd428c7e31a6363e831b1abc281abc619d4302e5f8f952109e4b68dc48a8d |
|
MD5 | 6db0344966ccd3d6b1bc4c11506acc4e |
|
BLAKE2b-256 | 68773cd8d348dd16bb18e6195c138f0ecb75bba8199dc3c6437f21294890fc7b |
File details
Details for the file mas_cli-11.2.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.2.1-py3-none-any.whl
- Upload date:
- Size: 170.7 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 | e30138d81ab92aee0f02fe603cd6061d110b0f4b48f4406781a46c1f16ee5529 |
|
MD5 | a9c9579b250fb23ec3f646fe4128f717 |
|
BLAKE2b-256 | c2ac4a0cfbbe3dcda5ae0ce2b17fcddb253a2a716541601746ba7c837a44504b |