Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
skywalking-swck
提交
5285b18f
S
skywalking-swck
项目概览
apache
/
skywalking-swck
通知
9
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skywalking-swck
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5285b18f
编写于
2月 26, 2020
作者:
G
Gao Hongtao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add PodTemplate
Signed-off-by:
N
Gao Hongtao
<
hanahmily@gmail.com
>
上级
8d7d8f7a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
44 deletion
+3
-44
api/v1alpha1/oapserver_types.go
api/v1alpha1/oapserver_types.go
+2
-15
api/v1alpha1/zz_generated.deepcopy.go
api/v1alpha1/zz_generated.deepcopy.go
+1
-29
未找到文件。
api/v1alpha1/oapserver_types.go
浏览文件 @
5285b18f
...
...
@@ -32,22 +32,9 @@ type OAPServerSpec struct {
Instances
int
`json:"instances,imitempty"`
// Config holds the OAP server configuration.
Config
map
[
string
]
string
`json:"config,omitempty"`
// NodeSelector is a selector which must be true for the pod to fit on a node.
// Selector which must match a node's labels for the pod to be scheduled on that node.
// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
// +kubebuilder:validation:Optional
NodeSelector
map
[
string
]
string
`json:"nodeSelector,omitempty"`
// If specified, affinity will define the pod's scheduling constraints
// +kubebuilder:validation:Optional
Affinity
*
corev1
.
Affinity
`json:"affinity,omitempty"`
// Tolerations allows specifying a list of tolerations for controlling which
// set of Nodes a Pod can be scheduled on
// +kubebuilder:validation:Optional
Tolerations
*
[]
corev1
.
Toleration
`json:"tolerations,omitempty"`
// Resources holds ResourceRequirements for the OAP server containers
// PodTemplate provides customisation options (labels, annotations, affinity rules, resource requests, and so on) for the Pods belonging to this OAP server.
// +kubebuilder:validation:Optional
Resources
*
corev1
.
ResourceRequirements
`json:"resources
,omitempty"`
PodTemplate
corev1
.
PodTemplateSpec
`json:"podTemplate
,omitempty"`
}
// OAPServerPhase is the phase OAP server is in from the controller point of view.
...
...
api/v1alpha1/zz_generated.deepcopy.go
浏览文件 @
5285b18f
...
...
@@ -22,7 +22,6 @@
package
v1alpha1
import
(
"k8s.io/api/core/v1"
runtime
"k8s.io/apimachinery/pkg/runtime"
)
...
...
@@ -95,34 +94,7 @@ func (in *OAPServerSpec) DeepCopyInto(out *OAPServerSpec) {
(
*
out
)[
key
]
=
val
}
}
if
in
.
NodeSelector
!=
nil
{
in
,
out
:=
&
in
.
NodeSelector
,
&
out
.
NodeSelector
*
out
=
make
(
map
[
string
]
string
,
len
(
*
in
))
for
key
,
val
:=
range
*
in
{
(
*
out
)[
key
]
=
val
}
}
if
in
.
Affinity
!=
nil
{
in
,
out
:=
&
in
.
Affinity
,
&
out
.
Affinity
*
out
=
new
(
v1
.
Affinity
)
(
*
in
)
.
DeepCopyInto
(
*
out
)
}
if
in
.
Tolerations
!=
nil
{
in
,
out
:=
&
in
.
Tolerations
,
&
out
.
Tolerations
*
out
=
new
([]
v1
.
Toleration
)
if
**
in
!=
nil
{
in
,
out
:=
*
in
,
*
out
*
out
=
make
([]
v1
.
Toleration
,
len
(
*
in
))
for
i
:=
range
*
in
{
(
*
in
)[
i
]
.
DeepCopyInto
(
&
(
*
out
)[
i
])
}
}
}
if
in
.
Resources
!=
nil
{
in
,
out
:=
&
in
.
Resources
,
&
out
.
Resources
*
out
=
new
(
v1
.
ResourceRequirements
)
(
*
in
)
.
DeepCopyInto
(
*
out
)
}
in
.
PodTemplate
.
DeepCopyInto
(
&
out
.
PodTemplate
)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAPServerSpec.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录