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.7.2.tar.gz
(24.4 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.7.2.tar.gz
.
File metadata
- Download URL: mas_devops-1.7.2.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bebe596d9c98ea8f31eb12ad0a6d14dbc2e11e62f62cb37b1346848ca377c65b |
|
MD5 | 7b3d3bbec7453d6e639a832e0d7cd8c5 |
|
BLAKE2b-256 | 6ed00c844675b61a212bddf2be00524bdaa33f22001a7abfa953d224f134f789 |
File details
Details for the file mas_devops-1.7.2-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.7.2-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 | 55cd49669d41291c184eb3ddba2e10d6072841627d17ed4dfea7fd25c42aa78c |
|
MD5 | c77fb4de9c44199c622a8e7248d2172d |
|
BLAKE2b-256 | c6385ef043c71a82b44e6b3f5948daca2b0058b101b72d85a697cc7eefce839c |