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.3.tar.gz
(17.6 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.1.3.tar.gz
.
File metadata
- Download URL: mas_devops-1.1.3.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd92f9ce822ee6f28baa1df0a3150583ba66e2963bae9eb40e6bc47bdfebdeb |
|
MD5 | cca28059b52f158167e97acc6daf3df9 |
|
BLAKE2b-256 | 92cea47ca17bcdfc3a857029f3c2f56cf889a40827e0b6c56eafb9186b3de285 |
File details
Details for the file mas_devops-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.1.3-py3-none-any.whl
- Upload date:
- Size: 20.3 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 | 383a4001471e40fe69d70420172af55a42a7414366f5e3d14feb578a02e64a34 |
|
MD5 | 062d64b5810b60d35ced4c7a8f0364e7 |
|
BLAKE2b-256 | a3aadf2e28a77139af16c171f7c83db57301f2ec8f34c7f3600cb88ad12cfc89 |