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.3.tar.gz
(24.3 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.6.3.tar.gz
.
File metadata
- Download URL: mas_devops-1.6.3.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 | 131f24288c8c0843abfe282b3b2aed1907289b41b86d56afaebd7918958056ca |
|
MD5 | 50086b1e7f61d7bed692e3cce5b249b6 |
|
BLAKE2b-256 | 411261684ad171bc6bc7ff34275cd93268fd31391675b7e680844d4861ebefd7 |
File details
Details for the file mas_devops-1.6.3-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.6.3-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 | 2a8ff4c8d5b5b52dee8d184ac3217547fd5d9933f82e0bc03b2a86402822e9b7 |
|
MD5 | 8d17670d5ff03779a1c78299e3ffb83d |
|
BLAKE2b-256 | d048eb3d473176d147f76521147efaef21335e531a961236e24c426c9e34e138 |