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.6.1.tar.gz
(23.9 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.6.1.tar.gz
.
File metadata
- Download URL: mas_devops-1.6.1.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca6b47575258c00911671d8a2b4db66b0177b1808e4219c7f640d41e1691bb06 |
|
MD5 | 19830755f0083731ad0c67fb70f628ff |
|
BLAKE2b-256 | 748788d1579ca00a61eb2d1864463a79bc815e3fa4b9c26697375c176ba977b9 |
File details
Details for the file mas_devops-1.6.1-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.6.1-py3-none-any.whl
- Upload date:
- Size: 27.7 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 | 27f5834ac62602a8770bd1b360f51b12107a5dab79b7e79a49f9506a66f59ab1 |
|
MD5 | 69792b8e4ee3ae2fbdae546b2adf933b |
|
BLAKE2b-256 | ea0ba98ce00dc5821b1e32b4173139795956c4e1c03b0063df4716c7aa3d53e3 |