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.2.tar.gz
(20.0 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.5.2.tar.gz
.
File metadata
- Download URL: mas_devops-1.5.2.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d8e7e815c117a15f34d4be23b1d96e5d2dff2912dad2d055f76365422770764 |
|
MD5 | c8a0e4ef467d75c1d4fedf27fd45dd7b |
|
BLAKE2b-256 | d936cb32826036db65de3361eefe741459eb4455bc41a6e63efcca6a9b738707 |
File details
Details for the file mas_devops-1.5.2-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.5.2-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80102207f7514eb4f7d78daa68c3968478d0c658d652d6ee94f4c07940842bb4 |
|
MD5 | 6613f334c61f59bb0388c0dedd6200e5 |
|
BLAKE2b-256 | 91d4a3336c10a29745ad8f1c43f4d34ee7672d7aab399ce069994bff54cb6c75 |