chaos-controller icon indicating copy to clipboard operation
chaos-controller copied to clipboard

Network Cloud GCP Disruption

Open clairecng opened this issue 3 years ago • 0 comments

What does this PR do?

  • [x] Adds new functionality
  • [ ] Alters existing functionality
  • [ ] Fixes a bug
  • [ ] Improves documentation or testing

Please briefly describe your changes as well as the motivation behind them:

  • Adds gcp as a cloud provider that could be blocked in a network cloud disruption.

Google has 2 different ip ranges files: https://support.google.com/a/answer/10026322?hl=en. We chose to take the first one as it seemed the second one didn't hold all API calls to some products in Google Cloud (google cloud storage api for example).

Google unfortunately has no information about the different services it blocks in its ip ranges files. As a result, the only service available for google cloud is Google Cloud.

Example of disruption:

apiVersion: chaos.datadoghq.com/v1beta1
kind: Disruption
metadata:
  name: network-cloud
  namespace: chaos-demo
spec:
  level: pod
  selector:
    app: demo-curl
  count: 100%
  network:
    cloud:
      gcp:
        - service: "Google Cloud"
    drop: 100

Code Quality Checklist

  • [x] The documentation is up to date.
  • [x] My code is sufficiently commented and passes continuous integration checks.
  • [x] I have signed my commit (see Contributing Docs).

Testing

  • [x] I leveraged continuous integration testing
    • [ ] by depending on existing unit tests or end-to-end tests.
    • [x] by adding new unit tests or end-to-end tests.
  • [x] I manually tested the following steps:
    • GCP disruption
    • [x] locally.
    • [ ] as a canary deployment to a cluster.

clairecng avatar Oct 13 '22 13:10 clairecng