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.4.1.tar.gz
(19.2 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.4.1.tar.gz
.
File metadata
- Download URL: mas_devops-1.4.1.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b29c61cb88f3efff615a4f325b72259837fe00572cc1dcb6486845c78205547 |
|
MD5 | 4d6410741ab62621e7d3e5887a0d3369 |
|
BLAKE2b-256 | e11e1e17dcd6403519a746412d8e0134e872eefa285ccdcfd81885bb5bbfd0e3 |
File details
Details for the file mas_devops-1.4.1-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.4.1-py3-none-any.whl
- Upload date:
- Size: 22.5 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 | 2f272cd830c147a299a678b95d849dc547c00683cd028159fb38df2e0cfe560f |
|
MD5 | 452fca8bd3aaed1db901fcdb8ee43857 |
|
BLAKE2b-256 | 5a0e6cc5d0e860aa9c8cbc9eafe5128598cd81c465e87d010a15dfc9f1e7069b |