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.9.1.tar.gz
(124.2 kB
view details)
Built Distribution
mas_cli-10.9.1-py3-none-any.whl
(169.1 kB
view details)
File details
Details for the file mas_cli-10.9.1.tar.gz
.
File metadata
- Download URL: mas_cli-10.9.1.tar.gz
- Upload date:
- Size: 124.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5752b2fbfa10f40155f0a3884ce99f17b2c7c0ba012eed32fa24391267471fcd |
|
MD5 | d2603101a7a385f9d0a3f6734a257bb6 |
|
BLAKE2b-256 | 40063991fccb15462f604c4308850d6dd9d0a3a9f93672f7e77620d7698c915e |
File details
Details for the file mas_cli-10.9.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.9.1-py3-none-any.whl
- Upload date:
- Size: 169.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebeb677df25c7d6703568d32bca0e6e383f86c03c82bcc814d6a72ab0ec3933f |
|
MD5 | 19081c615fd8b3c741539ad89618ab9a |
|
BLAKE2b-256 | 78d742f7e641a0235d662d51ea71f05f6e60a2094c7e9ce7221f8e44d9e08397 |