Skip to content

Commit

Permalink
Remove environment annotation from examples (#810)
Browse files Browse the repository at this point in the history
* Remove environment annotation from examples

* Disable safemode environment in dev

* Update examples/complete.yaml

Co-authored-by: Claire Chong <43993569+clairecng@users.noreply.github.com>

* Keep annotation in complete.yaml

---------

Co-authored-by: Claire Chong <43993569+clairecng@users.noreply.github.com>
  • Loading branch information
ptnapoleon and clairecng committed Nov 13, 2023
1 parent 7b29387 commit dc3a801
Show file tree
Hide file tree
Showing 44 changed files with 1 addition and 87 deletions.
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ controller:
host: "" # host to use to serve requests
port: 9443 # port to use to serve requests
safeMode:
environment: lima
environment: ""
enable: false
namespaceThreshold: 80
clusterThreshold: 66
Expand Down
2 changes: 0 additions & 2 deletions examples/advanced_selector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: advanced-selector
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
advancedSelector: # advanced selectors can select targets on something else than an exact key/value match
Expand Down
2 changes: 0 additions & 2 deletions examples/annotation_filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/container_failure_all_forced.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: container-failure-all-forced
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
selector:
app: demo-curl
Expand Down
2 changes: 0 additions & 2 deletions examples/container_failure_all_graceful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: container-failure-all-graceful
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
selector:
app: demo-curl
Expand Down
2 changes: 0 additions & 2 deletions examples/container_failure_forced.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: container-failure-forced
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
selector:
app: demo-curl
Expand Down
2 changes: 0 additions & 2 deletions examples/container_failure_graceful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: container-failure-graceful
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
selector:
app: demo-curl
Expand Down
2 changes: 0 additions & 2 deletions examples/containers_targeting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: containers-targeting
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/count_percentage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: count-percentage
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/cpu_level_node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: level-node
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: node # impact the whole node instead of a single pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/cpu_pressure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: cpu-pressure
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
duration: 5m
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/cpu_pressure_count.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: cpu-pressure
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/disk_failure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: disk-failure
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/disk_pressure_read.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: disk-pressure-read
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/disk_pressure_read_unsafemode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: disk-pressure-read
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/disk_pressure_write.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: disk-pressure-write
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/disruption_crons/disruption_cron_network_drop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: DisruptionCron
metadata:
name: network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
schedule: "*/15 * * * *"
targetResource:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: DisruptionRollout
metadata:
name: network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
targetResource:
kind: deployment
Expand Down
2 changes: 0 additions & 2 deletions examples/dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: dns
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/dry_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: dry-run
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
dryRun: true # enable dry-run mode (chaos pods will be created but won't inject anything)
level: pod
Expand Down
2 changes: 0 additions & 2 deletions examples/grpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: grpc
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/grpc_error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: grpc-error
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/grpc_override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: grpc-override
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_allowed_hosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_bandwidth_limitation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-bandwidth-limitation
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-cloud
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_cloud_s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-cloud
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_corrupt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-corrupt
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_delay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-delay
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_delay_node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-delay-node
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: node
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_drop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_duplication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-duplication
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
selector:
app: demo-curl
Expand Down
2 changes: 0 additions & 2 deletions examples/network_filter_connstate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-filter-connstate
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_filter_http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_filter_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-filter-service
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/network_ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-ingress
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/node_failure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: node-failure
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: node # selector targets nodes instead of pods. Targeting a pod will impact the node hosting given pod.
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/node_failure_shutdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: node-failure-shutdown
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: node # selector targets nodes instead of pods. Targeting a pod will impact the node hosting given pod.
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/on_init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ apiVersion: chaos.datadoghq.com/v1beta1
kind: Disruption
metadata:
name: on-init
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
onInit: true # apply the disruption on pod initialization (it requires the pod to target to be redeployed with the chaos.datadoghq.com/disrupt-on-init label to be held in the pending state)
level: pod
Expand Down
2 changes: 0 additions & 2 deletions examples/pulse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: pulse
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/reporting_network_drop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: reporting-network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
reporting: # optional, add custom notification for this disruption
slackChannel: team-slack-channel # required, custom slack channel to send notifications to (can be a name or slack channel ID)
Expand Down
2 changes: 0 additions & 2 deletions examples/static_targeting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: network-duplication-static-targeting
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
selector:
app: demo-curl
Expand Down
2 changes: 0 additions & 2 deletions examples/timed_disruption.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: timed-network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down
2 changes: 0 additions & 2 deletions examples/triggers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ kind: Disruption
metadata:
name: delayed-network-drop
namespace: chaos-demo
annotations:
chaos.datadoghq.com/environment: "lima"
spec:
level: pod
selector:
Expand Down

0 comments on commit dc3a801

Please sign in to comment.