-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from base2Services/feature/rule-paths-and-prior…
…ities Allow for multiple paths in same rule and dynamic priority
- Loading branch information
Showing
4 changed files
with
85 additions
and
3 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
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,24 @@ | ||
|
||
test_metadata: | ||
type: config | ||
name: dynamic_priorities | ||
description: Set a rule priority with a Ref | ||
|
||
task_definition: | ||
proxy: | ||
image: nginx | ||
ports: | ||
- 80 | ||
|
||
targetgroup: | ||
name: web | ||
type: ip | ||
container: nginx | ||
port: 80 | ||
protocol: http | ||
listener: http | ||
rules: | ||
- | ||
host: www.* | ||
priority: | ||
Ref: MinimumHealthyPercent # a valid Ref to pass test |
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,26 @@ | ||
|
||
test_metadata: | ||
type: config | ||
name: multi_path_rules | ||
description: Create a rule with multiple paths | ||
|
||
task_definition: | ||
proxy: | ||
image: nginx | ||
ports: | ||
- 80 | ||
|
||
targetgroup: | ||
name: web | ||
type: ip | ||
container: nginx | ||
port: 80 | ||
protocol: http | ||
listener: http | ||
rules: | ||
- | ||
host: www.* | ||
priority: 10 | ||
path: | ||
- /v1 | ||
- /v1/* |
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,24 @@ | ||
|
||
test_metadata: | ||
type: config | ||
name: single_path_rules | ||
description: Create a rule with multiple paths | ||
|
||
task_definition: | ||
proxy: | ||
image: nginx | ||
ports: | ||
- 80 | ||
|
||
targetgroup: | ||
name: web | ||
type: ip | ||
container: nginx | ||
port: 80 | ||
protocol: http | ||
listener: http | ||
rules: | ||
- | ||
host: www.* | ||
priority: 10 | ||
path: /v1 |