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.4.3.tar.gz
(120.9 kB
view details)
Built Distribution
mas_cli-10.4.3-py3-none-any.whl
(164.7 kB
view details)
File details
Details for the file mas_cli-10.4.3.tar.gz
.
File metadata
- Download URL: mas_cli-10.4.3.tar.gz
- Upload date:
- Size: 120.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7db8ee2ed1c74e386961899ad754ffc0f4ed7af26c62b45266615d0660ad51e3 |
|
MD5 | 24744367441e5dc1c019ff84a82a99fd |
|
BLAKE2b-256 | 6b143ea652924b67399e39316ea9192dfe711fc348a29a1eedd4e99602bc3a14 |
File details
Details for the file mas_cli-10.4.3-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.4.3-py3-none-any.whl
- Upload date:
- Size: 164.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ba8862d185b518750b30d3601a3944c36655f0d1f554fc8ebf74faa11a639be |
|
MD5 | a168443d2b5828408297b109e6dab796 |
|
BLAKE2b-256 | 767c5e2a98d74c9db4077d31bce19e1bee7bb2e3da59cff1d9a572e5296158b6 |