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, "/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)
Raw data
{
"_id": null,
"home_page": "https://github.com/ibm-mas/python-devops",
"name": "mas-devops",
"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/e9/e7/af02a8ab9677e48433d48794e5d36e737b40834e6b419f51caf92f1cbff6/mas_devops-1.6.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, \"/mascli/templates/ibm-mas-tekton.yaml\")\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 for Maximo Application Suite Dev/Ops",
"version": "1.6.0",
"project_urls": {
"Homepage": "https://github.com/ibm-mas/python-devops"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "28913d8a4f6778254503c0391f7a2cf5beb31e8a4604cd54c999635bb0bd3282",
"md5": "3f54c4e2ab3532e8485b33e55857cd34",
"sha256": "e6bc421917fdb96863d83ff2a804a5fdc24112f2985f4a692032bb2c6084f57a"
},
"downloads": -1,
"filename": "mas_devops-1.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3f54c4e2ab3532e8485b33e55857cd34",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 27632,
"upload_time": "2024-09-18T11:34:26",
"upload_time_iso_8601": "2024-09-18T11:34:26.099034Z",
"url": "https://files.pythonhosted.org/packages/28/91/3d8a4f6778254503c0391f7a2cf5beb31e8a4604cd54c999635bb0bd3282/mas_devops-1.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e9e7af02a8ab9677e48433d48794e5d36e737b40834e6b419f51caf92f1cbff6",
"md5": "ca80356aee0fd7ec8c0b5d86af6ec9f6",
"sha256": "3984a9a2732f64a045a7489802e6ec799a6c6e10b42e08359b9d15c7631105ed"
},
"downloads": -1,
"filename": "mas_devops-1.6.0.tar.gz",
"has_sig": false,
"md5_digest": "ca80356aee0fd7ec8c0b5d86af6ec9f6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23794,
"upload_time": "2024-09-18T11:34:27",
"upload_time_iso_8601": "2024-09-18T11:34:27.584216Z",
"url": "https://files.pythonhosted.org/packages/e9/e7/af02a8ab9677e48433d48794e5d36e737b40834e6b419f51caf92f1cbff6/mas_devops-1.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-18 11:34:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ibm-mas",
"github_project": "python-devops",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "mas-devops"
}