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-11.3.0.tar.gz
(126.1 kB
view details)
Built Distribution
mas_cli-11.3.0-py3-none-any.whl
(171.1 kB
view details)
File details
Details for the file mas_cli-11.3.0.tar.gz
.
File metadata
- Download URL: mas_cli-11.3.0.tar.gz
- Upload date:
- Size: 126.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 913b45a76161a2bdccd44bf16d022f3a9afb6a94f0039c6014bc38d7d05e527c |
|
MD5 | eef929ff1ea1159d21ced16263e2d3b1 |
|
BLAKE2b-256 | e929acea04712586f91b999637b61b19c464eb19c9555a03a11501d26c8a6e08 |
File details
Details for the file mas_cli-11.3.0-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-11.3.0-py3-none-any.whl
- Upload date:
- Size: 171.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e53b6cb2a59b7b3d6e6dfd34ec3181b14feb11efed5d96cd2d2fb2706ce01c9 |
|
MD5 | a74ecf3a9e5dbb0819a65f72e4e2e238 |
|
BLAKE2b-256 | 1176d6e6218ff01f95acc55febc4516488e6fc56009a983099392595f537d476 |