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-10.8.1.tar.gz
(122.1 kB
view details)
Built Distribution
mas_cli-10.8.1-py3-none-any.whl
(165.9 kB
view details)
File details
Details for the file mas_cli-10.8.1.tar.gz
.
File metadata
- Download URL: mas_cli-10.8.1.tar.gz
- Upload date:
- Size: 122.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1a3e2e6ad249dc13fdc8ba49d613a7bc5d0591107a416cca3e37a55b9234d83 |
|
MD5 | ada8109e52380ab0f9b424999006a147 |
|
BLAKE2b-256 | 75823db19fadd5b0d21c0708dd2c237a8ab4e7c1b1f2c6177159c05cd496a97f |
File details
Details for the file mas_cli-10.8.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.8.1-py3-none-any.whl
- Upload date:
- Size: 165.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a44efdd67b002913ffe813829bb109225c3d61c99d600ba81a1b7db95eb566 |
|
MD5 | faf4ca9fc7aeb2f7756f6c1a1010c0e0 |
|
BLAKE2b-256 | a0944608fb8392b3c650fe3582b23f010f1dc321189759e5311061adce49b668 |