Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Dapr
提交
f88e806b
D
Dapr
项目概览
int
/
Dapr
11 个月 前同步成功
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dapr
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f88e806b
编写于
6月 21, 2019
作者:
Y
Yaron Schneider
提交者:
GitHub
6月 21, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #37 from yaron2/version
add versioning to runtime, operator and assigner
上级
633d1187
a1cc1f4c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
28 addition
and
3 deletion
+28
-3
cmd/action/main.go
cmd/action/main.go
+4
-0
cmd/assigner/main.go
cmd/assigner/main.go
+3
-0
cmd/controller/main.go
cmd/controller/main.go
+3
-3
pkg/version/version.go
pkg/version/version.go
+18
-0
未找到文件。
cmd/action/main.go
浏览文件 @
f88e806b
...
...
@@ -6,10 +6,14 @@ import (
"os/signal"
"strconv"
log
"github.com/Sirupsen/logrus"
"github.com/actionscore/actions/pkg/action"
"github.com/actionscore/actions/pkg/version"
)
func
main
()
{
log
.
Infof
(
"Starting Actions Runtime -- version %s -- commit %s"
,
version
.
Version
(),
version
.
Commit
())
mode
:=
flag
.
String
(
"mode"
,
"standalone"
,
""
)
actionHTTPPort
:=
flag
.
String
(
"action-http-port"
,
"3500"
,
""
)
actionGRPCPort
:=
flag
.
String
(
"action-grpc-port"
,
"50001"
,
""
)
...
...
cmd/assigner/main.go
浏览文件 @
f88e806b
...
...
@@ -7,9 +7,12 @@ import (
log
"github.com/Sirupsen/logrus"
"github.com/actionscore/actions/pkg/assigner"
"github.com/actionscore/actions/pkg/version"
)
func
main
()
{
log
.
Infof
(
"Starting Actions Assigner -- version %s -- commit %s"
,
version
.
Version
(),
version
.
Commit
())
port
:=
flag
.
String
(
"port"
,
"50005"
,
""
)
flag
.
Parse
()
...
...
cmd/controller/main.go
浏览文件 @
f88e806b
...
...
@@ -4,14 +4,14 @@ import (
"time"
log
"github.com/Sirupsen/logrus"
"github.com/golang/glog"
"github.com/actionscore/actions/pkg/controller"
k8s
"github.com/actionscore/actions/pkg/kubernetes"
"github.com/actionscore/actions/pkg/signals"
"github.com/actionscore/actions/pkg/version"
)
func
main
()
{
log
.
Info
(
"Starting Actions Controller"
)
log
.
Info
f
(
"Starting Actions Operator -- version %s -- commit %s"
,
version
.
Version
(),
version
.
Commit
()
)
ctx
:=
signals
.
Context
()
kubeClient
,
actionsClient
,
err
:=
k8s
.
Clients
()
...
...
@@ -22,6 +22,6 @@ func main() {
controller
.
NewController
(
kubeClient
,
actionsClient
)
.
Run
(
ctx
)
shutdownDuration
:=
5
*
time
.
Second
g
log
.
Infof
(
"allowing %s for graceful shutdown to complete"
,
shutdownDuration
)
log
.
Infof
(
"allowing %s for graceful shutdown to complete"
,
shutdownDuration
)
<-
time
.
After
(
shutdownDuration
)
}
pkg/version/version.go
0 → 100644
浏览文件 @
f88e806b
package
version
// Values for these are injected by the build
var
(
version
string
commit
string
)
// Version returns the Actions version. This is either a semantic version
// number or else, in the case of unreleased code, the string "devel".
func
Version
()
string
{
return
version
}
// Commit returns the git commit SHA for the code that Actions was built from.
func
Commit
()
string
{
return
commit
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录