{"id":22048908,"url":"https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform","last_synced_at":"2025-05-08T23:05:56.672Z","repository":{"id":89502183,"uuid":"226351213","full_name":"chaostoolkit-incubator/chaostoolkit-google-cloud-platform","owner":"chaostoolkit-incubator","description":"Chaos Toolkit extension for Google Cloud Platform","archived":false,"fork":false,"pushed_at":"2024-07-17T13:14:21.000Z","size":544,"stargazers_count":7,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T23:05:47.785Z","etag":null,"topics":["chaos-engineering","chaostoolkit","chaostoolkit-extension","gcp","google-cloud-platform"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chaostoolkit-incubator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-06T14:52:44.000Z","updated_at":"2024-07-17T13:12:02.000Z","dependencies_parsed_at":"2023-10-11T19:47:30.680Z","dependency_job_id":"bcdfa5b6-81f0-47b8-8185-dcecdbbdfe3d","html_url":"https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform","commit_stats":null,"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaostoolkit-incubator%2Fchaostoolkit-google-cloud-platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaostoolkit-incubator%2Fchaostoolkit-google-cloud-platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaostoolkit-incubator%2Fchaostoolkit-google-cloud-platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaostoolkit-incubator%2Fchaostoolkit-google-cloud-platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaostoolkit-incubator","download_url":"https://codeload.github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160775,"owners_count":21863628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chaos-engineering","chaostoolkit","chaostoolkit-extension","gcp","google-cloud-platform"],"created_at":"2024-11-30T14:13:41.325Z","updated_at":"2025-05-08T23:05:56.635Z","avatar_url":"https://github.com/chaostoolkit-incubator.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/32068152?s=200\u0026v=4\"\u003e\u003c/p\u003e\n\u003c/h2\u003e\n\n\u003ch4 align=\"center\"\u003eGoogle Cloud Platform Extension for the Chaos Toolkit\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://pypi.org/project/chaostoolkit-google-cloud-platform/\"\u003e\n   \u003cimg alt=\"Release\" src=\"https://img.shields.io/pypi/v/chaostoolkit-google-cloud-platform.svg\"\u003e\n   \u003ca href=\"#\"\u003e\n   \u003cimg alt=\"Build\" src=\"https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform/actions/workflows/build.yaml/badge.svg\"\u003e\n   \u003ca href=\"https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform/issues\"\u003e\n   \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/chaostoolkit-incubator/chaostoolkit-google-cloud-platform?style=flat-square\u0026logo=github\u0026logoColor=white\"\u003e\n   \u003ca href=\"https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform/blob/master/LICENSE.md\"\u003e\n   \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/chaostoolkit-incubator/chaostoolkit-google-cloud-platform\"\u003e\n   \u003ca href=\"#\"\u003e\n   \u003cimg alt=\"Python version\" src=\"https://img.shields.io/pypi/pyversions/chaostoolkit-google-cloud-platform.svg\"\u003e\n   \u003ca href=\"https://pkg.go.dev/github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://join.slack.com/t/chaostoolkit/shared_invite/zt-22c5isqi9-3YjYzucVTNFFVIG~Kzns8g\"\u003eCommunity\u003c/a\u003e •\n  \u003ca href=\"https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform/blob/master/CHANGELOG.md\"\u003eChangeLog\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nWelcome to the Google Cloud Platform (GCP) extension for Chaos Toolkit. The\npackage aggregates activities to target your GCP projects and explore\nyour resilience via Chaos Engineering experiments.\n\n## Install\n\nThis package requires Python 3.8+\n\nTo be used from your experiment, this package must be installed in the Python\nenvironment where Chaos Toolkit already lives.\n\n```\n$ pip install -U chaostoolkit-google-cloud-platform\n```\n\n## Usage\n\nTo use the probes and actions from this package, add the following to your\nexperiment file:\n\n```json\n{\n  \"version\": \"1.0.0\",\n  \"title\": \"Our users should not be impacted by increased latency from our services\",\n  \"description\": \"Use traffic shaping from the load Balancer to explore the impact of latency on our users\",\n  \"method\": [\n    {\n      \"name\": \"add-delay-to-traffic\",\n      \"type\": \"action\",\n      \"provider\": {\n        \"type\": \"python\",\n        \"module\": \"chaosgcp.lb.actions\",\n        \"func\": \"inject_traffic_delay\",\n        \"arguments\": {\n          \"url_map\": \"my-service\",\n          \"target_name\": \"all-paths\",\n          \"target_path\": \"/*\",\n          \"delay_in_seconds\": 1,\n          \"impacted_percentage\": 80\n        }\n      },\n      \"pauses\": {\n        \"after\": 180\n      }\n    }\n  ],\n  \"rollbacks\": [\n    {\n      \"name\": \"remove-traffic-delay\",\n      \"type\": \"action\",\n      \"provider\": {\n        \"type\": \"python\",\n        \"module\": \"chaosgcp.lb.actions\",\n        \"func\": \"remove_fault_injection_traffic_policy\",\n        \"arguments\": {\n          \"url_map\": \"my-service\",\n          \"target_name\": \"all-paths\",\n          \"target_path\": \"/*\"\n        }\n      }\n    }\n  ]\n}\n```\n\nThat's it! You can now run it as `chaos run experiment.json`\n\nPlease explore the code to see existing probes and actions.\n\nThe extension picks up the credentials found on the machine running the\nexperiment as describe in the official\n[Python GCP client](https://googleapis.dev/python/google-api-core/latest/auth.html).\n\n\n## Contribute\n\nIf you wish to contribute more functions to this package, you are more than\nwelcome to do so. Please, fork this project, make your changes following the\nusual [PEP 8][pep8] code style, sprinkling with tests and submit a PR for\nreview.\n\n[pep8]: https://pycodestyle.readthedocs.io/en/latest/\n\nThe Chaos Toolkit projects require all contributors must sign a\n[Developer Certificate of Origin][dco] on each commit they would like to merge\ninto the master branch of the repository. Please, make sure you can abide by\nthe rules of the DCO before submitting a PR.\n\n[dco]: https://github.com/probot/dco#how-it-works\n\n### Develop\n\nIf you wish to develop on this project, make sure to install the development\ndependencies. You will need to install [PDM](https://pdm-project.org).\n\n```console\n$ pdm install --dev\n```\n\nWhenever you need to make contribution, ensure to run the linter as follows:\n\n```console\n$ pdm run format\n$ pdm run lint\n```\n\nNow, you can edit the files and they will be automatically be seen by your\nenvironment, even when running from the `chaos` command locally.\n\n### Test\n\nTo run the tests for the project execute the following:\n\n```\n$ pdm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaostoolkit-incubator%2Fchaostoolkit-google-cloud-platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaostoolkit-incubator%2Fchaostoolkit-google-cloud-platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaostoolkit-incubator%2Fchaostoolkit-google-cloud-platform/lists"}