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

Uploaded Source

Built Distribution

mas_cli-11.2.0-py3-none-any.whl (170.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_cli-11.2.0.tar.gz
  • Upload date:
  • Size: 125.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for mas_cli-11.2.0.tar.gz
Algorithm Hash digest
SHA256 5e191a85dedd34fe27e1c28e001cce31c7cff15dcf92be49ce290b7ca0b47848
MD5 b589cfffa979b4cecaf9ca1f77e42af0
BLAKE2b-256 958ea90bd42915ed741f6f03f1f90f9222b2c078d7cefe6ceaefcc22aeae8ee6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_cli-11.2.0-py3-none-any.whl
  • Upload date:
  • Size: 170.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for mas_cli-11.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 424c6fe2450bc237c5bdd71b7aa0cb64a7d04b31954c847c3e1adf73c132ec3c
MD5 0c0c03ca856cc90c32201a077f4af206
BLAKE2b-256 0344d934c1ed917c393f8cf1a63c43a0d1bdf118a118c2f707258f0dd2afb606

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