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

Uploaded Source

Built Distribution

mas_devops-1.2.1-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_devops-1.2.1.tar.gz
  • Upload date:
  • Size: 18.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.2.1.tar.gz
Algorithm Hash digest
SHA256 7c3947f6778aec798e8e7d02cbdc41e14a01ce20050c3958d008f68aaa13a35a
MD5 b4abe04636ff7b328a640d1da7a1fa7d
BLAKE2b-256 ff7fdd02681931cbaf72117575e6e5d939e538b3b1787edd969770c35016b687

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_devops-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.0 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d8ce007f0d09e6f27d77f152af16613129b2000d7ddbbf391f49a2e1facb69e
MD5 a79d63ac4255c77e092148b75a560c0a
BLAKE2b-256 eb390f14720a3c26c2a4a1e1a3c2f358dd48a4928c6fc34f8f14c34082d7ac16

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