Skip to main content

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


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.7.0.tar.gz (121.8 kB view details)

Uploaded Source

Built Distribution

mas_cli-10.7.0-py3-none-any.whl (165.6 kB view details)

Uploaded Python 3

File details

Details for the file mas_cli-10.7.0.tar.gz.

File metadata

  • Download URL: mas_cli-10.7.0.tar.gz
  • Upload date:
  • Size: 121.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for mas_cli-10.7.0.tar.gz
Algorithm Hash digest
SHA256 9746db2450fc11c1c359f69e87ae304654d1bea705cefd94e606a4821e9a0fe3
MD5 1d36fa2f351e07fb5711f5ba5ce6b00e
BLAKE2b-256 ddfc7e5936b854e82aa66a583d6f3350ea2a7dd230901faa9a8f7f7eb1664994

See more details on using hashes here.

File details

Details for the file mas_cli-10.7.0-py3-none-any.whl.

File metadata

  • Download URL: mas_cli-10.7.0-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

Hashes for mas_cli-10.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81dbe85d619fcf75ac522a22103a55d9232e48d675ce26e4cabc8eac37a1d532
MD5 939d4d122ec4b5b8e7747aa8e430dc57
BLAKE2b-256 ace82cff8b92250c053be1c7473285809d351a89d0eda0e4ca4d009cea0c5af3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page