Skip to content

Commit 239dcbd

Browse files
upgrade core proto for DeployStrategy (#42)
1 parent 306b171 commit 239dcbd

File tree

4 files changed

+51
-3
lines changed

4 files changed

+51
-3
lines changed

commands/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func generateDeployOpts(data []byte, pod, entry, image, network string, nodes []
207207
Dns: specs.DNS,
208208
ExtraHosts: specs.ExtraHosts,
209209
Nodelabels: nodeLabels,
210-
DeployStrategy: pb.DeployStrategy(pb.DeployStrategy_value[deployStrategy]),
210+
DeployStrategy: pb.DeployOptions_Strategy(pb.DeployOptions_Strategy_value[strings.ToUpper(deployStrategy)]),
211211
Data: fileData,
212212
User: user,
213213
Debug: debug,

commands/lambda.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func generateLambdaOpts(
8585
Networks: networks,
8686
Networkmode: network,
8787
OpenStdin: stdin,
88-
DeployStrategy: pb.DeployStrategy(pb.DeployStrategy_value[deployStrategy]),
88+
DeployStrategy: pb.DeployOptions_Strategy(pb.DeployOptions_Strategy_value[strings.ToUpper(deployStrategy)]),
8989
Data: fileData,
9090
User: user,
9191
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/jedib0t/go-pretty v1.0.1-0.20200513164024-8b58fbaf3b31
1313
github.com/kless/term v0.0.0-20161130133337-e551c64f56c0 // indirect
1414
github.com/pkg/term v0.0.0-20190109203006-aa71e9d9e942
15-
github.com/projecteru2/core v0.0.0-20200924081434-7dbe69ed4063
15+
github.com/projecteru2/core v0.0.0-20200930073142-f2c5f6aaae3d
1616
github.com/sethgrid/curse v0.0.0-20180215154548-b3ce8a719db2
1717
github.com/sirupsen/logrus v1.6.0
1818
github.com/stretchr/testify v1.6.1

0 commit comments

Comments
 (0)