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.1.7.tar.gz
(17.8 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.1.7.tar.gz
.
File metadata
- Download URL: mas_devops-1.1.7.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7e72b19ad52a32d821b8ad342aa8846da2e4480029503452191eacdd0a7931 |
|
MD5 | 6e79924b5e2d596e2188c92179a9c5b9 |
|
BLAKE2b-256 | 56bee474369d124273e8a353b0b8d16866527a460dc33e8dfe89f07796170f56 |
File details
Details for the file mas_devops-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.1.7-py3-none-any.whl
- Upload date:
- Size: 20.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 | fa30c03f254e4c7ea5d327ae38efeb89d0053f20020a3c3d9d8a24ff170fec68 |
|
MD5 | 9b21ded2adcca04548937e583429c3e1 |
|
BLAKE2b-256 | 2db4f4f39913b17f2ae6ae8d0fa03be2795f54e407c1bf1eaba4a286c62da5de |