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

Uploaded Source

Built Distribution

mas_cli-11.9.0-py3-none-any.whl (183.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_cli-11.9.0.tar.gz
  • Upload date:
  • Size: 136.5 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.0.tar.gz
Algorithm Hash digest
SHA256 7b432901fb9ca9e5bcd5e23448c93bdf57f2e114e4562b0df1ffe4e4c115f847
MD5 4f74f91cc7f2b291af6c73faac513270
BLAKE2b-256 8ac865915098d159b0ddd3c45d748e1174f3288adfb58babc63414e2d5be3142

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_cli-11.9.0-py3-none-any.whl
  • Upload date:
  • Size: 183.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 048b163aac84a8bc2566a2baf4fc0b6f4b58a299cf919c5d9d6c1175bb32ea4c
MD5 5707b033f9d698d98420d174ea8ddbd5
BLAKE2b-256 68840e95ab0ddfcc0f1fa48274c60e3e282624b55de5d7938c1e733aecbb15a1

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