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.5.0.tar.gz
(19.9 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.5.0.tar.gz
.
File metadata
- Download URL: mas_devops-1.5.0.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7d9facad29233e95cfe37f4db714adf6578807cf3f50faf16863d11c45034e1 |
|
MD5 | 6f8447f3a817981897f236268d5d4ed0 |
|
BLAKE2b-256 | b81288b7c059c661376ab95e64753d25bc54ba04bdd16a4a1b1958f67bcad2e8 |
File details
Details for the file mas_devops-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.5.0-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e3a6e16b96b8e2b27e8d3f7388b140bbe79a6657c3e6751e39980b2dd67c5c8 |
|
MD5 | a2cf0ca5422994b2be5c8ffbfefa9c86 |
|
BLAKE2b-256 | d0339098933adaadd0742979eb3badd466e55aa69d28aafb105154f10e37336d |