This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
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 #1532 from flynn/generic-worker
controller: Convert the deployer to a generic worker
- Loading branch information
Showing
12 changed files
with
165 additions
and
145 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
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
6 changes: 3 additions & 3 deletions
6
...roller/deployer/strategies/all-at-once.go → controller/worker/deployment/all_at_once.go
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package deployment | ||
|
||
import "fmt" | ||
|
||
type ErrSkipRollback struct { | ||
Err string | ||
} | ||
|
||
func (e ErrSkipRollback) Error() string { | ||
return e.Err | ||
} | ||
|
||
func IsSkipRollback(err error) bool { | ||
_, ok := err.(ErrSkipRollback) | ||
return ok | ||
} | ||
|
||
type UnknownStrategyError struct { | ||
Strategy string | ||
} | ||
|
||
func (e UnknownStrategyError) Error() string { | ||
return fmt.Sprintf("deployment: unknown strategy %q", e.Strategy) | ||
} |
Oops, something went wrong.