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/6a/64/ee1fab9c3d82afa3174fa80743c8fb1548a4ab8a444973a0a1abe6168f24/mas_cli-14.0.0.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": "14.0.0",
"project_urls": {
"Homepage": "https://github.com/ibm-mas/cli"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f416949dab64ea8787ab1851ac2f59016d5e78d38cc1ee14e3533b79b0cd82c0",
"md5": "7dbc2b71f17891baad90946285b70fb1",
"sha256": "286f2a1d2ab32fa07f917e66844040028f7e6ba9c78984f5def1dc0cf067d02e"
},
"downloads": -1,
"filename": "mas_cli-14.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7dbc2b71f17891baad90946285b70fb1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 254156,
"upload_time": "2025-07-18T10:34:12",
"upload_time_iso_8601": "2025-07-18T10:34:12.609847Z",
"url": "https://files.pythonhosted.org/packages/f4/16/949dab64ea8787ab1851ac2f59016d5e78d38cc1ee14e3533b79b0cd82c0/mas_cli-14.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6a64ee1fab9c3d82afa3174fa80743c8fb1548a4ab8a444973a0a1abe6168f24",
"md5": "4f7f84d47e90d61332bbcfd938cbb18b",
"sha256": "08d721cf926ecdf848fe974450cc20b68c92b9e9b864b6842450c85caa4018fa"
},
"downloads": -1,
"filename": "mas_cli-14.0.0.tar.gz",
"has_sig": false,
"md5_digest": "4f7f84d47e90d61332bbcfd938cbb18b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 202419,
"upload_time": "2025-07-18T10:34:14",
"upload_time_iso_8601": "2025-07-18T10:34:14.577067Z",
"url": "https://files.pythonhosted.org/packages/6a/64/ee1fab9c3d82afa3174fa80743c8fb1548a4ab8a444973a0a1abe6168f24/mas_cli-14.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-18 10:34:14",
"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"
}