Skip to content

Commit

Permalink
update example yamls to instances
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks Townsend <[email protected]>
  • Loading branch information
brooksmtownsend committed Dec 12, 2023
1 parent df301f0 commit ecdb1db
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion oam/custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
# NOTE: This demonstrates what a custom scaler could look like. This functionality does not currently exist
- type: customscaler
properties:
max_concurrent: 4
instances: 4
clouds:
- aws
- azure
Expand Down
4 changes: 2 additions & 2 deletions oam/echo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
- type: linkdef
properties:
target: httpserver
Expand All @@ -29,4 +29,4 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
14 changes: 7 additions & 7 deletions oam/petclinic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: uiclinicapp
requirements:
Expand All @@ -32,7 +32,7 @@ spec:
uri: postgres://user:[email protected]/petclinic
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: customersclinicapp
requirements:
Expand All @@ -50,7 +50,7 @@ spec:
uri: postgres://user:[email protected]/petclinic
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: vetsclinicapp
requirements:
Expand All @@ -69,7 +69,7 @@ spec:

- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: visitsclinicapp
requirements:
Expand All @@ -82,7 +82,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: clinicapp
requirements:
Expand All @@ -101,7 +101,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: httpserverspread
requirements:
Expand All @@ -115,7 +115,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: postgresspread
requirements:
Expand Down
4 changes: 2 additions & 2 deletions oam/simple2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 4
instances: 4
spread:
- name: eastcoast
requirements:
Expand Down Expand Up @@ -43,7 +43,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: haslights
requirements:
Expand Down
6 changes: 3 additions & 3 deletions test/data/complex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 5
instances: 5
spread:
- name: eastcoast
requirements:
Expand Down Expand Up @@ -43,7 +43,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 3
instances: 3
spread:
- name: westcoast
requirements:
Expand All @@ -62,7 +62,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
spread:
- name: the-moon
requirements:
Expand Down
6 changes: 3 additions & 3 deletions test/data/outdatedapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 5
instances: 5
- type: linkdef
properties:
target: httpserver
Expand All @@ -36,7 +36,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 3
instances: 3
# Old linkdef trait
- type: linkdef
properties:
Expand All @@ -51,7 +51,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 3
instances: 3
- type: linkdef
properties:
target: redis
Expand Down
4 changes: 2 additions & 2 deletions test/data/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 4
instances: 4
- type: linkdef
properties:
target: httpserver
Expand All @@ -29,4 +29,4 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
6 changes: 3 additions & 3 deletions test/data/upgradedapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 5
instances: 5
- type: linkdef
properties:
target: httpserver
Expand All @@ -29,7 +29,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 1
instances: 1
# Updated actor component
- name: echo
type: actor
Expand All @@ -38,7 +38,7 @@ spec:
traits:
- type: spreadscaler
properties:
max_concurrent: 3
instances: 3
# Updated linkdef trait
- type: linkdef
properties:
Expand Down

0 comments on commit ecdb1db

Please sign in to comment.