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

Uploaded Source

Built Distribution

mas_cli-11.9.2-py3-none-any.whl (183.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_cli-11.9.2.tar.gz
  • Upload date:
  • Size: 136.7 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.9.2.tar.gz
Algorithm Hash digest
SHA256 cd373de92661c202ebb8b4f7ffbddecd8d3c5581c492850d4ad771efe4ff9e82
MD5 b4a14d71452f2034207bbd495d17b456
BLAKE2b-256 d48234dfa3a7a5b13694fd489e08b5b5dd8c9fa68c1b964d4f38f37e7f90a3db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_cli-11.9.2-py3-none-any.whl
  • Upload date:
  • Size: 183.3 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.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 680fa9db3d38f2934ab8d882fc043b79db46a6a1b26d4020f79c739d2fba1800
MD5 cd866fef47aee4852b1b759ac1b6f001
BLAKE2b-256 a0c432ffa3a88bc3362d3bfd1f81d483fcb5ef15fb882998a018009526273278

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