mas.devops
----------
Example
=======
.. code:: python
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)
Raw data
{
"_id": null,
"home_page": "https://github.com/ibm-mas/cli",
"name": "mas-cli",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "David Parker",
"author_email": "parkerda@uk.ibm.com",
"download_url": "https://files.pythonhosted.org/packages/80/29/488b27673c6ea2b03d6761430f0f58e8c3d5c219623da36582ca45a149f2/mas_cli-15.1.3.tar.gz",
"platform": null,
"description": "mas.devops\n----------\n\nExample\n=======\n\n.. code:: python\n\n from openshift import dynamic\n from kubernetes import config\n from kubernetes.client import api_client\n\n from mas.devops.ocp import createNamespace\n from mas.devops.tekton import installOpenShiftPipelines, updateTektonDefinitions, launchUpgradePipeline\n\n instanceId = \"mymas\"\n pipelinesNamespace = f\"mas-{instanceId}-pipelines\"\n\n # Create an OpenShift client\n dynClient = dynamic.DynamicClient(\n api_client.ApiClient(configuration=config.load_kube_config())\n )\n\n # Install OpenShift Pipelines Operator\n installOpenShiftPipelines(dynamicClient)\n\n # Create the pipelines namespace and install the MAS tekton definitions\n createNamespace(dynamicClient, pipelinesNamespace)\n updateTektonDefinitions(pipelinesNamespace)\n\n # Launch the upgrade pipeline and print the URL to view the pipeline run\n pipelineURL = launchUpgradePipeline(self.dynamicClient, instanceId)\n print(pipelineURL)\n",
"bugtrack_url": null,
"license": "Eclipse Public License - v1.0",
"summary": "Python Admin CLI for Maximo Application Suite",
"version": "15.1.3",
"project_urls": {
"Homepage": "https://github.com/ibm-mas/cli"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "775f3c44709b21ca413d9cca7744124876d0dcf3dfd0560ca5aabf5173e5ed95",
"md5": "7691656742f74ad501e5cbe0abf5d8d0",
"sha256": "592bc2562bd40ecc1ad86d7f32d1d99048422ec2f238ced73535c93ae1f8dd50"
},
"downloads": -1,
"filename": "mas_cli-15.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7691656742f74ad501e5cbe0abf5d8d0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 276123,
"upload_time": "2025-08-08T11:34:05",
"upload_time_iso_8601": "2025-08-08T11:34:05.585149Z",
"url": "https://files.pythonhosted.org/packages/77/5f/3c44709b21ca413d9cca7744124876d0dcf3dfd0560ca5aabf5173e5ed95/mas_cli-15.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8029488b27673c6ea2b03d6761430f0f58e8c3d5c219623da36582ca45a149f2",
"md5": "45b75b63ca7ce6a9933fbff9c83cffaf",
"sha256": "3b526fa818f524f6a68e9f04e739366ce3dd7801c0547497b81e0189b3209ab7"
},
"downloads": -1,
"filename": "mas_cli-15.1.3.tar.gz",
"has_sig": false,
"md5_digest": "45b75b63ca7ce6a9933fbff9c83cffaf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 223289,
"upload_time": "2025-08-08T11:34:07",
"upload_time_iso_8601": "2025-08-08T11:34:07.450968Z",
"url": "https://files.pythonhosted.org/packages/80/29/488b27673c6ea2b03d6761430f0f58e8c3d5c219623da36582ca45a149f2/mas_cli-15.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-08 11:34:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ibm-mas",
"github_project": "cli",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "mas-cli"
}