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.1.tar.gz
(136.7 kB
view details)
Built Distribution
mas_cli-11.9.1-py3-none-any.whl
(183.3 kB
view details)
File details
Details for the file mas_cli-11.9.1.tar.gz
.
File metadata
- Download URL: mas_cli-11.9.1.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 | 1bb5b7881ac785c08d3f569db2adafe9538366a5cf4f5d17f06f3e648b16ff17 |
|
MD5 | c2e3420f3ab243c194e96a3056ce8f64 |
|
BLAKE2b-256 | bd5952b691337f5865d8f9d050724774cf1424ea2a485b49ad3bf7cfdd07b6e2 |
File details
Details for the file mas_cli-11.9.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.9.1-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 | 0f5fb4f4e72125fb834aaa5423e6e7b7d3c255d90d53606b0095d36d4d4cc704 |
|
MD5 | ad87a55b64d2644349564fb4e79c3cdc |
|
BLAKE2b-256 | 0283fd7ad0f4dfedbaab15162a1f937170e065a1b07e08c182218a47c0a7662f |