< CorrelationId :
- { header_name : Text, echo_downstream : Bool }
+ { header_name : Text, echo_downstream : Bool }
| RequestTransformer :
- { `add.headers` : Text }
+ { add : { headers : List Text } }
| RequestTermination :
- { status_code : Natural, content_type : Text, body : Text }
+ { status_code : Natural, content_type : Text, body : Text }
| IPRestriction :
- { whitelist : Text }
->
+ { whitelist : Text }
+>
\ No newline at end of file
- let Plugin = ./Plugin.dhall
+let Plugin = ./Plugin.dhall
in let config = constructors ./Config.dhall
-in λ(header : Text)
- → { name =
- "request-transformer"
- , config =
- config.RequestTransformer { `add.headers` = header }
- }
- : Plugin
+ in λ(header : Text)
+ → { name =
+ "request-transformer"
+ , config =
+ config.RequestTransformer { add = { headers = [ header ] } }
+ }
+ : Plugin
\ No newline at end of file
#
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
- # platforms:
+ platforms:
+ - name: Debian
+ versions:
+ - all
+ - name: Ubuntu
+ version:
+ - all
# - name: Fedora
# versions:
# - all
current_config: "{{ kong_app_service_plugins_check.json.data | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}"
current_id_hash:
id: "{{ current_config.id }}"
- current_body: "{{ (current_id_hash.id == '') | ternary({}, current_id_hash) }}"
- exists_plugin: "{{ current_id_hash.id == '' }}"
+ current_body: "{{ not current_id_hash.id | ternary({}, current_id_hash) }}"
+ exists_plugin: "{{ not current_id_hash.id }}"
when: not kong_app_service_plugins_check is skipped
no_log: true