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-12.27.0.tar.gz
(198.0 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-12.27.0-py3-none-any.whl
(249.6 kB
view details)
File details
Details for the file mas_cli-12.27.0.tar.gz.
File metadata
- Download URL: mas_cli-12.27.0.tar.gz
- Upload date:
- Size: 198.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c84232e590047a5ab17fe29fa70cda6b1bea196c1ce0bd3d9eda5cc0f8d186bf
|
|
| MD5 |
0190a0d33e743d1d49fb3c93bdc14b8a
|
|
| BLAKE2b-256 |
030bdf3c88235c00083a00381ef29f76fae71246d3ab1c5f41bf5eb8dfa00b1f
|
File details
Details for the file mas_cli-12.27.0-py3-none-any.whl.
File metadata
- Download URL: mas_cli-12.27.0-py3-none-any.whl
- Upload date:
- Size: 249.6 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 |
d2e936379cac1bb1c2cf6296026e76bed0c4e4888ae635dd29a67eabbc53d8bd
|
|
| MD5 |
1e8582c054f48e82bf1cf04e2ad523ab
|
|
| BLAKE2b-256 |
4a94b66d4d2b897cbdc0bd055193d6c63688c02c3855967caecda854091e31a7
|