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

Uploaded Source

Built Distribution

mas_cli-11.0.0-py3-none-any.whl (170.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_cli-11.0.0.tar.gz
  • Upload date:
  • Size: 125.2 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.0.0.tar.gz
Algorithm Hash digest
SHA256 497cf271043b71f7c6d1d318bdfe957d28161638cd09aa0a53cc6eb400d4ee39
MD5 966d940b88bec046c4459b7e40e9dd65
BLAKE2b-256 f6a8313bbd518e04990e7f00cfc92f9445744178964b3c622268a1192e9a5549

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_cli-11.0.0-py3-none-any.whl
  • Upload date:
  • Size: 170.1 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f89dc14eceb8365ee3516909f554132b03367f84a3f20e551425baa450a238
MD5 e84e4d34ffedd1a147fda26e6be19492
BLAKE2b-256 fb3578514b5bde3af3bbfc78378e42274c4fcbf84b8763b5917816acb130b657

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