Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
Adding minimum instances to test data for update. Changing YAML de-se…
Browse files Browse the repository at this point in the history
…rializing field name to match the name od the struct member and to decrease ambiguity.
  • Loading branch information
ridv committed May 8, 2020
1 parent 090fdf1 commit 82fe22e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/updateJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type UpdateStrategy struct {
type UpdateSettings struct {
MaxPerInstanceFailures int32 `yaml:"maxPerInstanceFailures"`
MaxFailedInstances int32 `yaml:"maxFailedInstances"`
MinTimeInRunning time.Duration `yaml:"minTimeRunning"`
MinTimeInRunning time.Duration `yaml:"minTimeInRunning"`
RollbackOnFailure bool `yaml:"rollbackOnFailure"`
InstanceRanges []InstanceRange `yaml:"instanceRanges"`
InstanceCount int32 `yaml:"instanceCount"`
Expand Down
7 changes: 4 additions & 3 deletions test/update_hello_world.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ updateSettings:
maxFailedInstances: 1
minTimeInRunning: 1m
rollbackOnFailure: true
instanceCount: 1
instanceRanges:
- first: 1
last: 4
pulseTimeout: 1m
strategy:
batch:
groupSize: 2
autoPause: false
variableBatch:
groupSizes: [1,2,3]
autoPause: true

0 comments on commit 82fe22e

Please sign in to comment.