Skip to content

Commit

Permalink
fix(disk-fill): Add the container runtime and socketPath env (#628)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
  • Loading branch information
ispeakc0de authored Apr 15, 2024
1 parent 08d2a6e commit fe30b73
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions faults/kubernetes/disk-fill/engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ spec:
- name: PODS_AFFECTED_PERC
value: ''

# Provide the container runtime path
# Default set to docker container path
- name: CONTAINER_PATH
value: '/var/lib/docker/containers'
# provide the socket file path
- name: SOCKET_PATH
value: "/run/containerd/containerd.sock"

# provide the name of container runtime
# it supports docker, containerd, crio
- name: CONTAINER_RUNTIME
value: "containerd"

12 changes: 8 additions & 4 deletions faults/kubernetes/disk-fill/fault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,14 @@ spec:
- name: LIB_IMAGE
value: "litmuschaos.docker.scarf.sh/litmuschaos/go-runner:latest"

# Provide the container runtime path
# Default set to docker container path
- name: CONTAINER_PATH
value: "/var/lib/docker/containers"
# provide the socket file path
- name: SOCKET_PATH
value: "/run/containerd/containerd.sock"

# provide the name of container runtime
# it supports docker, containerd, crio
- name: CONTAINER_RUNTIME
value: "containerd"

## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel
Expand Down

0 comments on commit fe30b73

Please sign in to comment.