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-11.9.2.tar.gz
(136.7 kB
view details)
Built Distribution
mas_cli-11.9.2-py3-none-any.whl
(183.3 kB
view details)
File details
Details for the file mas_cli-11.9.2.tar.gz
.
File metadata
- Download URL: mas_cli-11.9.2.tar.gz
- Upload date:
- Size: 136.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd373de92661c202ebb8b4f7ffbddecd8d3c5581c492850d4ad771efe4ff9e82 |
|
MD5 | b4a14d71452f2034207bbd495d17b456 |
|
BLAKE2b-256 | d48234dfa3a7a5b13694fd489e08b5b5dd8c9fa68c1b964d4f38f37e7f90a3db |
File details
Details for the file mas_cli-11.9.2-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.9.2-py3-none-any.whl
- Upload date:
- Size: 183.3 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 | 680fa9db3d38f2934ab8d882fc043b79db46a6a1b26d4020f79c739d2fba1800 |
|
MD5 | cd866fef47aee4852b1b759ac1b6f001 |
|
BLAKE2b-256 | a0c432ffa3a88bc3362d3bfd1f81d483fcb5ef15fb882998a018009526273278 |