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/d5/58/7eb385220bb820171e0a7a5180094bb1f240d3ed1b5768d9d1fd0d523638/mas_cli-11.0.1.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": "11.0.1",
"project_urls": {
"Homepage": "https://github.com/ibm-mas/cli"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4dbbdb0ca5bb7ab13e549f34fcbb369740eb00749dafd22057aa4ecd1c8488dd",
"md5": "c27369febe23e6028413e7b692ff87a1",
"sha256": "73304fa5ace38ffe33472375ebee4e456d4b52bf0995787a946fed46cb9c4fbe"
},
"downloads": -1,
"filename": "mas_cli-11.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c27369febe23e6028413e7b692ff87a1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 170127,
"upload_time": "2024-09-18T10:08:13",
"upload_time_iso_8601": "2024-09-18T10:08:13.280413Z",
"url": "https://files.pythonhosted.org/packages/4d/bb/db0ca5bb7ab13e549f34fcbb369740eb00749dafd22057aa4ecd1c8488dd/mas_cli-11.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d5587eb385220bb820171e0a7a5180094bb1f240d3ed1b5768d9d1fd0d523638",
"md5": "8990a1b37b9f862fa43bb37d61dbf88e",
"sha256": "9b86050a85059ce963c7d052f40b6d41b64f915408002808a5437ba082d53497"
},
"downloads": -1,
"filename": "mas_cli-11.0.1.tar.gz",
"has_sig": false,
"md5_digest": "8990a1b37b9f862fa43bb37d61dbf88e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 125198,
"upload_time": "2024-09-18T10:08:14",
"upload_time_iso_8601": "2024-09-18T10:08:14.925647Z",
"url": "https://files.pythonhosted.org/packages/d5/58/7eb385220bb820171e0a7a5180094bb1f240d3ed1b5768d9d1fd0d523638/mas_cli-11.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-18 10:08: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"
}