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.4.1.tar.gz
(120.6 kB
view details)
Built Distribution
mas_cli-10.4.1-py3-none-any.whl
(164.4 kB
view details)
File details
Details for the file mas_cli-10.4.1.tar.gz
.
File metadata
- Download URL: mas_cli-10.4.1.tar.gz
- Upload date:
- Size: 120.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba6dae542ceedd399948ad89e2e2e39b0b4952b2ee689f9c5c27ef087cf2ae7e |
|
MD5 | 65de813e609c15301c7f51b21d08df91 |
|
BLAKE2b-256 | f3a520c184a5e9bb0f34a752985dfe7956e12c8f20960230f2efcbcb3db5f77f |
File details
Details for the file mas_cli-10.4.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.4.1-py3-none-any.whl
- Upload date:
- Size: 164.4 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 | b756bdcaea1d70753a6ae7b84e23ccbb32b1bab572c1bcd844a85c7d4d4196c7 |
|
MD5 | f5905df66aa649ec0bd6dee6ceb11a68 |
|
BLAKE2b-256 | 0e2be02df24033bb1c031051fcc94c4088aa462759893f3d67746c0de25f170a |