Added reponse body, content type and encoding fields; Removed trailing whitespaces for some files (#567)

Signed-off-by: avaakash <as86414@gmail.com>

Signed-off-by: avaakash <as86414@gmail.com>
This commit is contained in:
Akash Shrivastava
2022-09-15 18:30:47 +05:30
committed by GitHub
parent 86e3e1b239
commit 16ceadeea4
10 changed files with 90 additions and 65 deletions

View File

@@ -26,10 +26,10 @@ spec:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get","list",]
# Track and get the runner, experiment, and helper pods log
# Track and get the runner, experiment, and helper pods log
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get","list","watch"]
verbs: ["get","list","watch"]
# for creating and managing to execute comands inside target container
- apiGroups: [""]
resources: ["pods/exec"]
@@ -38,7 +38,7 @@ spec:
- apiGroups: ["apps"]
resources: ["deployments","statefulsets","replicasets", "daemonsets"]
verbs: ["list","get"]
# deriving the parent/owner details of the pod(if parent is deploymentConfig)
# deriving the parent/owner details of the pod(if parent is deploymentConfig)
- apiGroups: ["apps.openshift.io"]
resources: ["deploymentconfigs"]
verbs: ["list","get"]
@@ -72,7 +72,7 @@ spec:
# provide lib image
- name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest'
value: 'litmuschaos/go-runner:latest'
# modified status code for the http response
# if no value is provided, a random status code from the supported code list will selected
@@ -86,6 +86,20 @@ spec:
- name: "MODIFY_RESPONSE_BODY"
value: "true"
# provide the body string to overwrite the response body. This will be used only if MODIFY_RESPONSE_BODY is set to true
- name: RESPONSE_BODY
value: ''
# provide the encoding type for the response body
# currently supported value are gzip, deflate
# if empty no encoding will be applied
- name: CONTENT_ENCODING
value: ''
# provide the content type for the response body
- name: CONTENT_TYPE
value: 'text/plain'
# port of the target service
- name: TARGET_SERVICE_PORT
value: "80"
@@ -99,7 +113,7 @@ spec:
# 0 means no request will be affected and 100 means all request will be affected
- name: TOXICITY
value: "100"
# network interface on which the proxy will listen
- name: NETWORK_INTERFACE
value: "eth0"
@@ -140,9 +154,9 @@ spec:
## supported values: serial, parallel
- name: SEQUENCE
value: 'parallel'
labels:
name: pod-http-status-code
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
app.kubernetes.io/version: latest