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

Uploaded Source

Built Distribution

mas_cli-11.1.3-py3-none-any.whl (170.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_cli-11.1.3.tar.gz
  • Upload date:
  • Size: 125.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for mas_cli-11.1.3.tar.gz
Algorithm Hash digest
SHA256 ebfbd26691e4ccaa9b9b228ed459b29a19e11fde564f55135367155f4b2acffc
MD5 d48beb9410c6359ac4f34a22839468c6
BLAKE2b-256 361ad70657e919d3df09202a46329eea5c95a6c8a6c6b5672539e86ad54179cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_cli-11.1.3-py3-none-any.whl
  • Upload date:
  • Size: 170.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for mas_cli-11.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d4a7e17c2049aba9157af4ecf5be32d996436e1674ac250a9b530383125b4585
MD5 43e0dda03a2a410c66ff8073920c7ca7
BLAKE2b-256 f1cc11141e79d9a6cbe8fd708d0dbb982691b8ca9e55034281cbc178c5916d19

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