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.3.tar.gz
(137.3 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.3-py3-none-any.whl
(184.1 kB
view details)
File details
Details for the file mas_cli-11.11.3.tar.gz.
File metadata
- Download URL: mas_cli-11.11.3.tar.gz
- Upload date:
- Size: 137.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3538e30199b82452631225298384d5afd11c67d96bc762645fa68e9b33d1c4a
|
|
| MD5 |
778bb9783ed233f04ebb005b2f66fb53
|
|
| BLAKE2b-256 |
1fdb24753dac9b9c78071eb3679bcec569e15cae12e9e719a9adcd565aba429d
|
File details
Details for the file mas_cli-11.11.3-py3-none-any.whl.
File metadata
- Download URL: mas_cli-11.11.3-py3-none-any.whl
- Upload date:
- Size: 184.1 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 |
34eac0bc641829e0e98d06ccb1cb778bfae3c55e655cbb0539cb7b640ccf37a9
|
|
| MD5 |
5569f8557c2637001872d9462700f9f5
|
|
| BLAKE2b-256 |
0f198d35e6543a7f818314f458cdac9f7f21bfd56ab7a0011e8a703449c3dc97
|