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-15.1.1.tar.gz
(223.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-15.1.1-py3-none-any.whl
(276.1 kB
view details)
File details
Details for the file mas_cli-15.1.1.tar.gz.
File metadata
- Download URL: mas_cli-15.1.1.tar.gz
- Upload date:
- Size: 223.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e153144208bf1f9dc0740c4c5e72e5e78ce9f11b02bf32af78d40a3d4ebda9c
|
|
| MD5 |
d5f80fe390c1d18643283ff5c1c148e0
|
|
| BLAKE2b-256 |
b3689b93026741045024db5dfa73d1e01ef5d8254240048e582ee5cf028957fc
|
File details
Details for the file mas_cli-15.1.1-py3-none-any.whl.
File metadata
- Download URL: mas_cli-15.1.1-py3-none-any.whl
- Upload date:
- Size: 276.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3ba8921e8ffe20d3d56ec932edf6b63e7385d2ec174758b4f24e73055630382
|
|
| MD5 |
05992e7d4602f7cbe6e1b0309ad3456a
|
|
| BLAKE2b-256 |
bdfbdadc4bd7cc75031606ef5f8e39e2b4e92fb23fe5957f48f105da85520000
|