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

Uploaded Source

Built Distribution

mas_devops-1.3.2-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_devops-1.3.2.tar.gz
  • Upload date:
  • Size: 19.1 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.3.2.tar.gz
Algorithm Hash digest
SHA256 355486be16b7d6450882380aff651b159897faf34a1c6288925f6ec8152cffb4
MD5 3cbcd5f07fad67ff17ed2eb60704a9b5
BLAKE2b-256 e7205b62d4e98f0d8e3a016434b011b7011d44ff114264ea176885083c13b4c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_devops-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 22.4 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4de37342e8228dc39f68f0416b41d98e2ee3f2767d900074d0ba5105eb151905
MD5 96553ae55d8588e3c873ab372105e9d4
BLAKE2b-256 601f4936265ad82fadcb43d58804a4402ff200f7146eee42b706ad3ce6a64387

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