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

Uploaded Source

Built Distribution

mas_cli-11.8.1-py3-none-any.whl (183.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mas_cli-11.8.1.tar.gz
Algorithm Hash digest
SHA256 0ed036bb9c03eb7135711f2ce0a7166306f8417e855cf0ca8e8f3c13a448db15
MD5 d731f197d58bf3a7fd742e2f2c66e672
BLAKE2b-256 debf8685350a32e5da94054294b2e9fc3df733035295fdb46ebb493ed5ae996b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mas_cli-11.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc68ce0cfdb1307a4cec167597fa5ea22aa6b046da1274d96dd5516d37ebf731
MD5 b8fb4f9e01003f50d8fdd016486a7f4d
BLAKE2b-256 4d5365dc793cd53e72797e4b8ab598c3c27e631cc80cad3eed6e049e20a66162

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