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.1.tar.gz
(121.7 kB
view details)
Built Distribution
mas_cli-10.6.1-py3-none-any.whl
(165.6 kB
view details)
File details
Details for the file mas_cli-10.6.1.tar.gz
.
File metadata
- Download URL: mas_cli-10.6.1.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 | 4766d171042735bcd2217fdbeb683a2977078a7df97cb85dd0719b733f878ba8 |
|
MD5 | 49d8b1827b3fb1e1ad043351d3152f6a |
|
BLAKE2b-256 | b8d6384bbb990727b243bdb94575e9aabf4d6eabfc75e6d568c602c06d60fc08 |
File details
Details for the file mas_cli-10.6.1-py3-none-any.whl
.
File metadata
- Download URL: mas_cli-10.6.1-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 | 87729439ba02a63e7ec62355a5fc8cb055622e84caec8787c01b0a1c859a154b |
|
MD5 | 476c708df7dc669df7ab43026c5fd245 |
|
BLAKE2b-256 | 44c4bda25fb797860f53a9cda99e53f8ede4b651a4ad9ecd5fe00d732e54ec5a |