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.1.1.tar.gz
(125.3 kB
view details)
Built Distribution
mas_cli-11.1.1-py3-none-any.whl
(170.2 kB
view details)
File details
Details for the file mas_cli-11.1.1.tar.gz
.
File metadata
- Download URL: mas_cli-11.1.1.tar.gz
- Upload date:
- Size: 125.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd0a72faccb1ac519df283149f31f3636e6997a23f88647e024933d0da8b728a |
|
MD5 | 21da5f35da8b993fe526a5295868e07a |
|
BLAKE2b-256 | 1fa12f0f794953545129c0a4f1db6a5bb56bbef650101c30ab49a0df13e31f12 |
File details
Details for the file mas_cli-11.1.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.1.1-py3-none-any.whl
- Upload date:
- Size: 170.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cde1a99f474dba37193a71650d373a2aef80b3991f70ea568cca62a9505e5a39 |
|
MD5 | c8154b3043037a1b80ef98354b3bd268 |
|
BLAKE2b-256 | 9f2f647aff28889206fccf0115b612d812802e8e82cf0f6b4dd880b420bc8bfb |