Python Admin CLI for Maximo Application Suite
Project description
mas.devops
Example
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
success = installOpenShiftPipelines(dynamicClient)
assert success is True
# 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-20.1.1.tar.gz
(302.4 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-20.1.1-py3-none-any.whl
(362.6 kB
view details)
File details
Details for the file mas_cli-20.1.1.tar.gz.
File metadata
- Download URL: mas_cli-20.1.1.tar.gz
- Upload date:
- Size: 302.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b506f178948a5f40239d6006ef7f156a708a531ec1954bb70aca8b1952a528d
|
|
| MD5 |
a160183259ff8c14c0cddbb89ba96a90
|
|
| BLAKE2b-256 |
21bf64c3e950ee9c38b15fdde7bd2899e9e4c439b8bfc38366097edb5d73f179
|
File details
Details for the file mas_cli-20.1.1-py3-none-any.whl.
File metadata
- Download URL: mas_cli-20.1.1-py3-none-any.whl
- Upload date:
- Size: 362.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
556d0792b2c068918175c13e27e9d84f4c333b5eb1435874013b0160546895b8
|
|
| MD5 |
b70c461330da2af1269ccd7962ee61d4
|
|
| BLAKE2b-256 |
a7a5a4a8bcf24e8ab31314462a26cb0c45e898007fdbb0b084a888620d2f227a
|