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.9.tar.gz
(17.8 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.1.9.tar.gz
.
File metadata
- Download URL: mas_devops-1.1.9.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 670f5cf61b99aa225dfbb5743ef836a33de2243acbd23b953049b250644326dc |
|
MD5 | 314a18ea2f9e34bd594723d7569f6f91 |
|
BLAKE2b-256 | 3034624979c3447b81a4554d1c0a314ae612cf8f7a7ccaf4a1e0a1f63bab1912 |
File details
Details for the file mas_devops-1.1.9-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.1.9-py3-none-any.whl
- Upload date:
- Size: 20.5 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 | cac1c9e4da65b41bd2f20289545f5e83f27820395c319dbd959980288b832f98 |
|
MD5 | de2144ccd6b60fee507e8ca3c9b5eac6 |
|
BLAKE2b-256 | f3aae4065c368dd6b02af090078f8686087c90051a168911aa177ce8c663ab38 |