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.2.2.tar.gz
(18.8 kB
view details)
Built Distribution
File details
Details for the file mas_devops-1.2.2.tar.gz
.
File metadata
- Download URL: mas_devops-1.2.2.tar.gz
- Upload date:
- Size: 18.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 | 6d681c7de5fa4e96669122fd51816d18ff5fa96536fd227b2fd3459b31918d7f |
|
MD5 | b5237bda40d6e210922c66e68385d848 |
|
BLAKE2b-256 | 797bffb8da9d714d3b29e6aea8cdab5bae71b2cad11e773aa697ec646c415a6a |
File details
Details for the file mas_devops-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: mas_devops-1.2.2-py3-none-any.whl
- Upload date:
- Size: 22.0 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 | 867e84b8584141447383b53793ad78912af93e63a0445f7a2c758ae770521606 |
|
MD5 | 1a9c7bfaa100ae4a2361d09422a73ad2 |
|
BLAKE2b-256 | 46b72258fa420c96a82427e3f744d30d1e15b3dcc960f56f65f2d96a31b689cb |