forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(proto): Define CommonReplicaSpec in common.proto
Resolves: flyteorg#4408 Signed-off-by: Chi-Sheng Liu <[email protected]>
- Loading branch information
1 parent
2f1f813
commit cb2bbaf
Showing
5 changed files
with
44 additions
and
46 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,27 @@ | ||
syntax = "proto3"; | ||
|
||
package flyteidl.plugins; | ||
|
||
option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins"; | ||
|
||
import "flyteidl/core/tasks.proto"; | ||
|
||
enum RestartPolicy { | ||
RESTART_POLICY_NEVER = 0; | ||
RESTART_POLICY_ON_FAILURE = 1; | ||
RESTART_POLICY_ALWAYS = 2; | ||
} | ||
|
||
message CommonReplicaSpec { | ||
// Number of replicas | ||
int32 replicas = 1; | ||
|
||
// Image used for the replica group | ||
string image = 2; | ||
|
||
// Resources required for the replica group | ||
core.Resources resources = 3; | ||
|
||
// RestartPolicy determines whether pods will be restarted when they exit | ||
RestartPolicy restart_policy = 4; | ||
} |
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