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.2.tar.gz
(124.3 kB
view details)
Built Distribution
mas_cli-10.9.2-py3-none-any.whl
(169.2 kB
view details)
File details
Details for the file mas_cli-10.9.2.tar.gz
.
File metadata
- Download URL: mas_cli-10.9.2.tar.gz
- Upload date:
- Size: 124.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0624e3617478fcca6edb74e50f7ec86ca9ab1727c856f4236e864672aa959d |
|
MD5 | 5dd69a6f87668699f8bca30eb90abf83 |
|
BLAKE2b-256 | 7d1ca1194269c8df4c0b61e36591351ce19dc7b3dcb9c4bb370ee0c092eea6f1 |
File details
Details for the file mas_cli-10.9.2-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.9.2-py3-none-any.whl
- Upload date:
- Size: 169.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5ce4570f6231871a28e758d5ea59cbe915f78ca1a95b006e7455cb56dde7ba |
|
MD5 | 6614cb25af300912c302ed984d5b6a57 |
|
BLAKE2b-256 | e6ad05c3f469716ce19851e0f0bcb53b962a6ff09d502c6bad7fac5b93f0915c |