Python for Maximo Application Suite Dev/Ops
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, "/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.2.0.tar.gz
(18.5 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.2.0.tar.gz
.
File metadata
- Download URL: mas_devops-1.2.0.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395c8a4d0f1b1d42f2e9f92c9395e651344ef45098fcffbf4466e8fdf9caf5f2 |
|
MD5 | 8a72c35bcdf808b32a0cc5741483ca1c |
|
BLAKE2b-256 | fc3daffa9b644a12947d0255fe207bafaa3a4faab0bf72f5346b05fa870b7ba4 |
File details
Details for the file mas_devops-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.2.0-py3-none-any.whl
- Upload date:
- Size: 21.8 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 | e575c8c44143442db489b53ad095cfa8e7ec53788b50e42851ebea53d8b6233d |
|
MD5 | 5a1c8895a1f3f4a97b780f0f5727d1a6 |
|
BLAKE2b-256 | a579e30b081d8e5cbf11b175c8b83ec15a43ee5ce7f2654236672b089b156392 |