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.11.1.tar.gz
(137.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mas_cli-11.11.1-py3-none-any.whl
(184.0 kB
view details)
File details
Details for the file mas_cli-11.11.1.tar.gz.
File metadata
- Download URL: mas_cli-11.11.1.tar.gz
- Upload date:
- Size: 137.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf770eab4e5df07fbc8607e6909c8ea159e14f48f3e8ba54fbca24303be87ce
|
|
| MD5 |
245af8d03677b92f061c612e620ccdb0
|
|
| BLAKE2b-256 |
61ee975a87d557caa08ec116e8e347309596cda7082038081db5e025d71eea7e
|
File details
Details for the file mas_cli-11.11.1-py3-none-any.whl.
File metadata
- Download URL: mas_cli-11.11.1-py3-none-any.whl
- Upload date:
- Size: 184.0 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 |
bfdb6a843d95a54ee3289fee0a83ad2a41da977bfee2a60c6cf48dc5d15f4326
|
|
| MD5 |
93feb558f705220f19f81593defcd9f2
|
|
| BLAKE2b-256 |
51936a8e2c6bf31a917d9f86cab0dd07c3f31973eb1f5bb8f23f16202753560d
|