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.4.4.tar.gz
(121.0 kB
view details)
Built Distribution
mas_cli-10.4.4-py3-none-any.whl
(164.9 kB
view details)
File details
Details for the file mas_cli-10.4.4.tar.gz
.
File metadata
- Download URL: mas_cli-10.4.4.tar.gz
- Upload date:
- Size: 121.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5875517ba9c521629c6bf9779dfdacee9928f7be205fb9f13862f3da058cc42 |
|
MD5 | 7418c15abc6d431664803741197919c0 |
|
BLAKE2b-256 | 965094812d9791ab14549f6941e363f9374eb1fbc2b3948c10f8818edfb7427a |
File details
Details for the file mas_cli-10.4.4-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.4.4-py3-none-any.whl
- Upload date:
- Size: 164.9 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 | 100cfd53afb102a15381c7e4a2214043cfece28e5a7bfa0dff1741c6f929a1db |
|
MD5 | 3c7513fa5a8cf101cd8504cc637ddb98 |
|
BLAKE2b-256 | d61a86811ea0746eebb03da8b1e17487840cab6d2b0160ce6e295db5d302d02a |