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.6.2.tar.gz
(121.7 kB
view details)
Built Distribution
mas_cli-10.6.2-py3-none-any.whl
(165.6 kB
view details)
File details
Details for the file mas_cli-10.6.2.tar.gz
.
File metadata
- Download URL: mas_cli-10.6.2.tar.gz
- Upload date:
- Size: 121.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beca67d860e82f672afb3c895026f3de3bf44e3cd6ce013906400402a06d3a8c |
|
MD5 | 1a7e13cc42267afaf2b469a3b52a7456 |
|
BLAKE2b-256 | 1fb9f43901c50b107d2a5bc949f4096c929932b270b790f5ba95609de48dbd40 |
File details
Details for the file mas_cli-10.6.2-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.6.2-py3-none-any.whl
- Upload date:
- Size: 165.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16d8654e4f5bb5dff87619370c6bf2d831d43d70756eda3b52f27672820e9934 |
|
MD5 | 728e22ed77d2ea6e4a35f228e1ce5664 |
|
BLAKE2b-256 | 23a874630f77dbb9aaaa314641c95e7bc857c5debfc967451953cc917e2cff72 |