Python Admin CLI for Maximo Application Suite
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)
# 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_cli-10.9.0.tar.gz
(124.2 kB
view details)
Built Distribution
mas_cli-10.9.0-py3-none-any.whl
(169.2 kB
view details)
File details
Details for the file mas_cli-10.9.0.tar.gz
.
File metadata
- Download URL: mas_cli-10.9.0.tar.gz
- Upload date:
- Size: 124.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 | a92807329bc05194e95f568c30f58ffedf6ac5b6e227a8de7f93e8fd1c5e0840 |
|
MD5 | c22db7512a0f9f11f57699b0fed0e5b8 |
|
BLAKE2b-256 | 782033b7f86283b28908ed089790a31926626afff0eb202f9901efacf4a9961c |
File details
Details for the file mas_cli-10.9.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.9.0-py3-none-any.whl
- Upload date:
- Size: 169.2 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 | 220c1f59787ddaaea71b2d93df8302f2d34b7a51791547fbb3c85c43ea723aa1 |
|
MD5 | ec6e7bdcba494008b517c5226d6bf33f |
|
BLAKE2b-256 | 2caf2fe16a233d53e4e12e212c328d955415d07729638e9785f86c81b84c6bf2 |