-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reuse workload #245
reuse workload #245
Conversation
Codecov Report
@@ Coverage Diff @@
## main #245 +/- ##
==========================================
+ Coverage 38.94% 39.16% +0.22%
==========================================
Files 8 8
Lines 529 526 -3
==========================================
Hits 206 206
+ Misses 318 315 -3
Partials 5 5
Flags with carried forward coverage won't be shown. Click here to find out more.
|
9f06e2f
to
bcd755e
Compare
fe567a7
to
ade9eb8
Compare
dab2193
to
1936ab1
Compare
@@ -59,10 +59,6 @@ spec: | |||
spec: | |||
properties: | |||
agentSpec: | |||
default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个feature 对 原理的新建逻辑 为什么有修改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 feature 如果不填写 agentSpec 使用默认的 agent 执行任务,所以将原 agent 改为指针类型,原有的 agent 存在 默认值,会导致无论怎么做都有 agentspec 字段,这个默认值 只是 agentspec 的默认值,不是 agentspec里字段的默认值
charts/templates/deployment.yaml
Outdated
- name: ENV_GENERAL_AGENT_TYPE | ||
value: DaemonSet | ||
{{- if .Values.feature.enableIPv4 }} | ||
- name: ENV_GENERAL_AGENT_SERVICE_V4_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些都是只为default agent ? 建议都加上 default agent 字眼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
cmd/agent/cmd/config.go
Outdated
@@ -76,6 +76,7 @@ func init() { | |||
globalFlag.StringVar(&types.AgentConfig.ServiceV6Name, "service-ipv6-name", "", "agent IPv6 service name") | |||
|
|||
globalFlag.BoolVarP(&types.AgentConfig.AppMode, "app-mode", "A", false, "app mode") | |||
globalFlag.BoolVarP(&types.AgentConfig.GeneralAgent, "general-agent", "G", false, "general agent") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default agent 更合适
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
b5f2a7c
to
2fc086c
Compare
Signed-off-by: ii2day <ji.li@daocloud.io>
2fc086c
to
aa3e95f
Compare
feature #204
实现复用 daemonset 作为 workload
若 task 未定义 agentSpec 字段,controller 使用默认的 daemonset 执行任务。
若 task 定义了 agentSpec 字段,controller 创建新的 workload 执行任务。