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

@@ -39,4 +39,3 @@ spec:
## percentage of total pods to target ## percentage of total pods to target
- name: PODS_AFFECTED_PERC - name: PODS_AFFECTED_PERC
value: '' value: ''

View File

@@ -79,6 +79,16 @@ spec:
- name: RESPONSE_BODY - name: RESPONSE_BODY
value: '' 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 # port of the target service
- name: TARGET_SERVICE_PORT - name: TARGET_SERVICE_PORT
value: "80" value: "80"

View File

@@ -34,6 +34,9 @@ spec:
- name: "MODIFY_RESPONSE_BODY" - name: "MODIFY_RESPONSE_BODY"
value: "true" 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: ''
# port of the target service # port of the target service
- name: TARGET_SERVICE_PORT - name: TARGET_SERVICE_PORT
value: "80" value: "80"
@@ -51,4 +54,3 @@ spec:
- name: PODS_AFFECTED_PERC - name: PODS_AFFECTED_PERC
value: '' value: ''

View File

@@ -86,6 +86,20 @@ spec:
- name: "MODIFY_RESPONSE_BODY" - name: "MODIFY_RESPONSE_BODY"
value: "true" 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 # port of the target service
- name: TARGET_SERVICE_PORT - name: TARGET_SERVICE_PORT
value: "80" value: "80"