Python for Maximo Application Suite Dev/Ops
Project description
Example
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, "/mascli/templates/ibm-mas-tekton.yaml")
# 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_devops-1.9.0.tar.gz
(31.6 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.9.0.tar.gz
.
File metadata
- Download URL: mas_devops-1.9.0.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e99e6cf2b6cce5467cc7852c54350380e654696e52d8bbaeccf8c9856d8279a2 |
|
MD5 | 49b46ce080ac1ba5d6e9468b237bb0bf |
|
BLAKE2b-256 | 27caa7fd1c8436c678979396266ca52cd19fdc5071d2d4f5796e7051c924d9b6 |
File details
Details for the file mas_devops-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.9.0-py3-none-any.whl
- Upload date:
- Size: 58.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21476a728eb6dc264853b5c7f81011798a006d4e5e99cd8625c35d7b07cfaf6c |
|
MD5 | 8062109b50e77105ae7fa6fbd09d93a0 |
|
BLAKE2b-256 | 9c406c3eb49d5ecf1692b11f9db608895a7dea9b111d895dcd382153f6526257 |