Skip to main content

Python for Maximo Application Suite Dev/Ops

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, "/mascli/templates/ibm-mas-tekton.yaml")

# 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_devops-1.1.6.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

mas_devops-1.1.6-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file mas_devops-1.1.6.tar.gz.

File metadata

  • Download URL: mas_devops-1.1.6.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for mas_devops-1.1.6.tar.gz
Algorithm Hash digest
SHA256 6051b22d1d4a4484936800d9930fa161fb3be11f93804c431371490e292a3e10
MD5 396dddab4701af5f0615981804fa607b
BLAKE2b-256 3789c4a3daa4a1034c09da6ae7f3f1d991f508f4eeb20e69990cb60fa01b58cb

See more details on using hashes here.

File details

Details for the file mas_devops-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: mas_devops-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for mas_devops-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4d1df852588fe1c99bc80d452a46ff91810476669bec524347e04703126ae010
MD5 671884a69adee83b9656a9595b137d89
BLAKE2b-256 f735ff41c5bb3a2a2fbb17ef4b426def45b06fcb0343f4d992d7ae01831d4afc

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