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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_cli-11.9.3.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.3.tar.gz
Algorithm Hash digest
SHA256 6f9383c59579c89fd7bd20a714e837c1a7d18414d9ad20f0daba1a57e2157d65
MD5 fa8c1990faeecf79d22fdc714e4a9aa5
BLAKE2b-256 bdbfafb031a23942d4d578568758d34e8b3cb3487dfd8de32ddaae3c70bd03e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_cli-11.9.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b673b039390fbb2fa9f08187f60335f073583b3426b505e3a90f3424e49fd67
MD5 1e77d263315914ca3930eb1e90b9a164
BLAKE2b-256 81fc4428e0338f166d5af4dbca88f0eeca31a12ef9f32cf3d6b8944344cd0938

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