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.8.tar.gz
(17.8 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.1.8.tar.gz
.
File metadata
- Download URL: mas_devops-1.1.8.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 | ebe25dcb67653fac181a831f247c37f5ddd0c9d51242613ce857057f4a273a9d |
|
MD5 | acd8288ea45160f1423b0968afcebebc |
|
BLAKE2b-256 | bb1109e91dba0d2b57bb49c665eb03521273eb2b1d1b5e75523a31d0a871bd0d |
File details
Details for the file mas_devops-1.1.8-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.1.8-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 | a3f49aea093f5afb042b511e94dc47dc08690ca7b7e369f9a09623015bab1142 |
|
MD5 | 1086c232793cef3e652a72ae981d131d |
|
BLAKE2b-256 | 835d6d6f4c0363740fa032ac0240ca9900de6d74f33c3bb5461ad3c7dbf7389b |