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-13.4.1.tar.gz
(147.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-13.4.1-py3-none-any.whl
(193.9 kB
view details)
File details
Details for the file mas_cli-13.4.1.tar.gz.
File metadata
- Download URL: mas_cli-13.4.1.tar.gz
- Upload date:
- Size: 147.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61f29c5aef35c345c00495113dc7a3ca8630f636ed2ab0212e10adf9d9c71215
|
|
| MD5 |
a8b6891cc897e02599c806ded18766f7
|
|
| BLAKE2b-256 |
1f7baaa40c6ca8e7ed1d4e2d7d8b705802eabc62a2e25403276aec1d36575392
|
File details
Details for the file mas_cli-13.4.1-py3-none-any.whl.
File metadata
- Download URL: mas_cli-13.4.1-py3-none-any.whl
- Upload date:
- Size: 193.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe1a242923366e81ae813238c0e56cc9b8f91bba70d34ff1737cc235aa1098ea
|
|
| MD5 |
ac5f6cb10a2f8f4ed6ebb392c482a1b5
|
|
| BLAKE2b-256 |
531c3ef8904e4d6ee75eb8929d8210fc8170ad50e983c1014972fcf4552d8077
|