Skip to main content

Python for Maximo Application Suite Dev/Ops

Project description

Code style: PEP8 Flake8: checked GitHub Actions Workflow Status PyPI - Version PyPI - Python Version PyPI - Downloads

Example

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

Uploaded Source

Built Distribution

mas_devops-1.10.1-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mas_devops-1.10.1.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mas_devops-1.10.1.tar.gz
Algorithm Hash digest
SHA256 940c6ca6283c8804041a92c26e0126c1abc5f6fbce8498158e8aff56139b717d
MD5 8447c36bfd2044f34d7961ac32e959ba
BLAKE2b-256 de07b7c59ae95ac97f283252262efac63631c843e15960b6c2b9e48768fee6fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mas_devops-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mas_devops-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b825e8a8505489010a1117be882b8f0233dcd7a3def91203cdaa86ff8d7a5b21
MD5 323de17d8616bd1caf90aef07ec7fae8
BLAKE2b-256 329798934d1c026453bf609d7e91725ec8e5e1fb4c58d7a0d716aa7e0f4ab8b0

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