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.6.2.tar.gz
(24.3 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.6.2.tar.gz
.
File metadata
- Download URL: mas_devops-1.6.2.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85ebac856d307406eafd66feb516d24f36ac5598d64452d9d449f9a2e505a500 |
|
MD5 | 083c5a1e48843dc6ab523188890834cb |
|
BLAKE2b-256 | 21be1975a44e772ed8dd30122217de43efa54cde889f9efdc6d3fbca9ace8edb |
File details
Details for the file mas_devops-1.6.2-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.6.2-py3-none-any.whl
- Upload date:
- Size: 28.0 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 | 11e6cdf2fb280c1855b00b20b7684ae578039e390d29494097f8db7383e075d4 |
|
MD5 | 46983692afdad5766e4a575363406878 |
|
BLAKE2b-256 | f44af9b1b3733c9d9cbc7a500be473803267a17f0c613e7ebf8e1361434e9e2e |