-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Ambassador V2 Mappings * add v2 mappings to package.dhall * missing idle_timeout_ms default * Fix mappingv2 pointing to old mapping spec
- Loading branch information
1 parent
0a51da8
commit 70e28a6
Showing
12 changed files
with
234 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{- | ||
Ambassador Mapping Spec | ||
https://www.getambassador.io/reference/mappings/ | ||
-} | ||
let Map = | ||
https://prelude.dhall-lang.org/v12.0.0/Map/Type sha256:210c7a9eba71efbb0f7a66b3dcf8b9d3976ffc2bc0e907aadfb6aa29c333e8ed | ||
|
||
in { name : Text | ||
, prefix : Text | ||
, service : Text | ||
, add_linkerd_headers : Optional Bool | ||
, add_request_headers : | ||
Optional | ||
( Map | ||
Text | ||
( ../HeaderValue/Type.dhall sha256:39b0867682d87243817188faa79e0eb9d5300cbacb7bcbdfcc7e6cb1c0e30565 | ||
? ../HeaderValue/Type.dhall | ||
) | ||
) | ||
, add_response_headers : | ||
Optional | ||
( Map | ||
Text | ||
( ../HeaderValue/Type.dhall sha256:39b0867682d87243817188faa79e0eb9d5300cbacb7bcbdfcc7e6cb1c0e30565 | ||
? ../HeaderValue/Type.dhall | ||
) | ||
) | ||
, cluster_idle_timeout_ms : Optional Natural | ||
, connect_timeout_ms : Optional Natural | ||
, cors : | ||
Optional | ||
( ../Cors/Type.dhall sha256:0b86d5f694ee3a96e484ae446d6577d203c9db954ed14411ad136cc333ca48f0 | ||
? ../Cors/Type.dhall | ||
) | ||
, circuit_breakers : | ||
Optional | ||
( List | ||
( ../CircuitBreaker/Type.dhall sha256:5259c491f2a58dc6645dad41259456b1a5246f03eddbf5157d02cc712e714022 | ||
? ../CircuitBreaker/Type.dhall | ||
) | ||
) | ||
, enable_ipv4 : Optional Bool | ||
, enable_ipv6 : Optional Bool | ||
, grpc : Optional Bool | ||
, headers : | ||
Optional | ||
( Map | ||
Text | ||
( ../HeaderValue/Type.dhall sha256:39b0867682d87243817188faa79e0eb9d5300cbacb7bcbdfcc7e6cb1c0e30565 | ||
? ../HeaderValue/Type.dhall | ||
) | ||
) | ||
, host : Optional Text | ||
, host_regex : Optional Bool | ||
, host_rewrite : Optional Text | ||
, idle_timeout_ms : Optional Natural | ||
, load_balancer : | ||
Optional | ||
( ../Loadbalancer/Type.dhall sha256:49728b27fe193b251a030abf3324b36cdcbf898eaf82454078956f73474812e5 | ||
? ../Loadbalancer/Type.dhall | ||
) | ||
, method : Optional Text | ||
, method_regex : Optional Bool | ||
, prefix_regex : Optional Bool | ||
, rate_limits : | ||
Optional | ||
( List | ||
( ../RateLimit/Type.dhall sha256:ff00d495134b63b0cf9b13a8d5b8433ec09023e1be6b3ca214009ab501db2c02 | ||
? ../RateLimit/Type.dhall | ||
) | ||
) | ||
, remove_request_headers : Optional (List Text) | ||
, remove_response_headers : Optional (List Text) | ||
, regex_headers : Optional (Map Text Text) | ||
, rewrite : Optional Text | ||
, retry_policy : | ||
Optional | ||
( ../RetryPolicy/Type.dhall sha256:72293302405d13f7c649c16c88d49cadbee8fd2101baf6853eef0fd437192acd | ||
? ../RetryPolicy/Type.dhall | ||
) | ||
, timeout_ms : Optional Natural | ||
, tls : Optional Bool | ||
, use_websocket : Optional Bool | ||
, shadow : Optional Bool | ||
, weight : Optional Natural | ||
, auto_host_rewrite : Optional Bool | ||
, case_sensitive : Optional Bool | ||
, host_redirect : Optional Bool | ||
, path_redirect : Optional Text | ||
, precedence : Optional Integer | ||
, bypass_auth : Optional Bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
let Map = | ||
https://prelude.dhall-lang.org/v12.0.0/Map/Type sha256:210c7a9eba71efbb0f7a66b3dcf8b9d3976ffc2bc0e907aadfb6aa29c333e8ed | ||
? https://prelude.dhall-lang.org/v12.0.0/Map/Type | ||
|
||
in { add_linkerd_headers = None Bool | ||
, add_request_headers = | ||
None | ||
( Map | ||
Text | ||
( ../HeaderValue/Type.dhall sha256:39b0867682d87243817188faa79e0eb9d5300cbacb7bcbdfcc7e6cb1c0e30565 | ||
? ../HeaderValue/Type.dhall | ||
) | ||
) | ||
, add_response_headers = | ||
None | ||
( Map | ||
Text | ||
( ../HeaderValue/Type.dhall sha256:39b0867682d87243817188faa79e0eb9d5300cbacb7bcbdfcc7e6cb1c0e30565 | ||
? ../HeaderValue/Type.dhall | ||
) | ||
) | ||
, cluster_idle_timeout_ms = None Natural | ||
, cors = | ||
None | ||
( ../Cors/Type.dhall sha256:0b86d5f694ee3a96e484ae446d6577d203c9db954ed14411ad136cc333ca48f0 | ||
? ../Cors/Type.dhall | ||
) | ||
, circuit_breakers = | ||
None | ||
( List | ||
( ../CircuitBreaker/Type.dhall sha256:5259c491f2a58dc6645dad41259456b1a5246f03eddbf5157d02cc712e714022 | ||
? ../CircuitBreaker/Type.dhall | ||
) | ||
) | ||
, enable_ipv4 = None Bool | ||
, enable_ipv6 = None Bool | ||
, grpc = None Bool | ||
, headers = | ||
None | ||
( Map | ||
Text | ||
( ../HeaderValue/Type.dhall sha256:39b0867682d87243817188faa79e0eb9d5300cbacb7bcbdfcc7e6cb1c0e30565 | ||
? ../HeaderValue/Type.dhall | ||
) | ||
) | ||
, host = None Text | ||
, host_regex = None Bool | ||
, host_rewrite = None Text | ||
, idle_timeout_ms = None Natural | ||
, load_balancer = | ||
None | ||
( ../Loadbalancer/Type.dhall sha256:49728b27fe193b251a030abf3324b36cdcbf898eaf82454078956f73474812e5 | ||
? ../Loadbalancer/Type.dhall | ||
) | ||
, method = None Text | ||
, method_regex = None Bool | ||
, prefix_regex = None Bool | ||
, rate_limits = | ||
None | ||
( List | ||
( ../RateLimit/Type.dhall sha256:ff00d495134b63b0cf9b13a8d5b8433ec09023e1be6b3ca214009ab501db2c02 | ||
? ../RateLimit/Type.dhall | ||
) | ||
) | ||
, remove_request_headers = None (List Text) | ||
, remove_response_headers = None (List Text) | ||
, regex_headers = None (Map Text Text) | ||
, rewrite = None Text | ||
, retry_policy = | ||
None | ||
( ../RetryPolicy/Type.dhall sha256:72293302405d13f7c649c16c88d49cadbee8fd2101baf6853eef0fd437192acd | ||
? ../RetryPolicy/Type.dhall | ||
) | ||
, timeout_ms = None Natural | ||
, connect_timeout_ms = None Natural | ||
, tls = None Bool | ||
, use_websocket = None Bool | ||
, shadow = None Bool | ||
, weight = None Natural | ||
, auto_host_rewrite = None Bool | ||
, case_sensitive = None Bool | ||
, host_redirect = None Bool | ||
, path_redirect = None Text | ||
, precedence = None Integer | ||
, bypass_auth = None Bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ Type = | ||
./Type.dhall sha256:c79c13128e0ec1984f8929f5e44311fcd611a8c1c3f0253e4758b7d5d8c49a0c | ||
? ./Type.dhall | ||
, default = | ||
./default.dhall sha256:363d7d2ee579d0c67b5b3774466df7bf900195018abcdd679e9bdeba0815e896 | ||
? ./default.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{- | ||
Ambassador Mapping | ||
https://www.getambassador.io/reference/mappings/ | ||
Note: we support only standalone mappings in dhall | ||
-} | ||
|
||
let k8s = | ||
../../k8s/1.14.dhall sha256:7839bf40f940757e4d71d3c1b84d878f6a4873c3b2706ae4be307b5991acdcac | ||
? ../../k8s/1.14.dhall | ||
|
||
in { apiVersion : Text | ||
, kind : Text | ||
, metadata : k8s.ObjectMeta.Type | ||
, spec : | ||
../MappingSpecV2/Type.dhall sha256:c79c13128e0ec1984f8929f5e44311fcd611a8c1c3f0253e4758b7d5d8c49a0c | ||
? ../MappingSpecV2/Type.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ apiVersion = "getambassador.io/v2", kind = "Mapping" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ Type = | ||
./Type.dhall sha256:37612b234eee4d02c7b51c7894db1fd05a9371555574f917bc3c83c88ba7d9cb | ||
? ./Type.dhall | ||
, default = | ||
./default.dhall sha256:7e2ca7f1d4a89b214af43ec5144f12cb597923968d814f4489462b4d069d2b67 | ||
? ./default.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{- | ||
Rate limit | ||
https://www.getambassador.io/reference/rate-limits/ | ||
-} | ||
{ descriptor : Optional Text, headers : Optional (List Text) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ descriptor = None Text, headers = None (List Text) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ Type = | ||
./Type.dhall sha256:ff00d495134b63b0cf9b13a8d5b8433ec09023e1be6b3ca214009ab501db2c02 | ||
? ./Type.dhall | ||
, default = | ||
./default.dhall sha256:907e41ec8746bb69d6cb347ff385dc54da4bfd8257134c72f2651e387a68d9c5 | ||
? ./default.dhall | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters