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
success = installOpenShiftPipelines(dynamicClient)
assert success is True

# 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


Release history Release notifications | RSS feed

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mas_cli-18.15.2-py3-none-any.whl (306.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_cli-18.15.2.tar.gz
  • Upload date:
  • Size: 251.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mas_cli-18.15.2.tar.gz
Algorithm Hash digest
SHA256 039bfc891ffeb4aad264cbea333d31404683499bc8f3000139770d350c9ab422
MD5 5f809a6140655238173d6d46b514be7f
BLAKE2b-256 229a24571ea9920532a9fd6d98dfac01a3511967112d3f366c19996dfdd1df6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_cli-18.15.2-py3-none-any.whl
  • Upload date:
  • Size: 306.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mas_cli-18.15.2-py3-none-any.whl
Algorithm Hash digest
SHA256 227d63ef909be1179fe38e3d0af989f3aaede50189ea516f0cbf8e0470408ef2
MD5 ca644f02571ebbce982089cdde86fe53
BLAKE2b-256 7cff3e47be313290d61a632b34fde402cfbd51378bdda79b387e6238ab4e13ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page