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

Uploaded Source

Built Distribution

mas_cli-10.5.0-py3-none-any.whl (165.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mas_cli-10.5.0.tar.gz
Algorithm Hash digest
SHA256 2de07ccacaa83bd5996928ae057890582f06a2a143072091a64e893b8c3f37a0
MD5 a50eb69d1bcaacbc0b010cda02998311
BLAKE2b-256 efaac84d9a071a0c24df28184ae41015539a6a55d537844caffd01fd216d0072

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_cli-10.5.0-py3-none-any.whl
  • Upload date:
  • Size: 165.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for mas_cli-10.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9cf5c0d04a5f2d44232ca66d3996805822b865c5b7d6b6abc27e8fee939296b7
MD5 f4c1dd4239adcdde2044fe9358299077
BLAKE2b-256 4dd0740a1b32de671945683058670b5e60fcb4544bce24c9dba7393db36155a1

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