Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDILab开源决策智能平台
DI-orchestrator
提交
0a5c25a1
D
DI-orchestrator
项目概览
OpenDILab开源决策智能平台
/
DI-orchestrator
上一次同步 2 年多
通知
1
Star
78
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DI-orchestrator
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0a5c25a1
编写于
8月 03, 2021
作者:
L
liqingping
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into test/e2e
上级
35a0c826
7851228b
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
6901 addition
and
1 deletion
+6901
-1
Makefile
Makefile
+2
-0
api/v1alpha1/aggregatorconfig_types.go
api/v1alpha1/aggregatorconfig_types.go
+1
-1
config/crd/bases/diengine.opendilab.org_aggregatorconfigs.yaml
...g/crd/bases/diengine.opendilab.org_aggregatorconfigs.yaml
+1
-0
config/v1.15.5/cert-manager.yaml
config/v1.15.5/cert-manager.yaml
+6361
-0
config/v1.15.5/di-manager.yaml
config/v1.15.5/di-manager.yaml
+536
-0
未找到文件。
Makefile
浏览文件 @
0a5c25a1
...
...
@@ -64,6 +64,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
cd
config/manager
&&
$(KUSTOMIZE)
edit
set
image
${IMG_BASE}
=
${MASTER_IMG}
${SERVER_IMG_BASE}
=
${MASTER_SERVER_IMG}
${WEBHOOK_IMG_BASE}
=
${MASTER_WEBHOOK_IMG}
./hack/update-version.sh
${MASTER_VERSION}
./hack/update-image-tags.sh config/manager
${MASTER_VERSION}
./hack/update-image-tags.sh config/v1.15.5
${MASTER_VERSION}
# dev-manifests will add COMMIT_SHORT_SHA to ci version, and image tag, so it is only used for development
# used `make manifests` when commited git
...
...
@@ -72,6 +73,7 @@ dev-manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and
cd
config/manager
&&
$(KUSTOMIZE)
edit
set
image
${IMG_BASE}
=
${IMG}
${SERVER_IMG_BASE}
=
${SERVER_IMG}
${WEBHOOK_IMG_BASE}
=
${WEBHOOK_IMG}
./hack/update-version.sh
${VERSION}
./hack/update-image-tags.sh config/manager
${VERSION}
./hack/update-image-tags.sh config/v1.15.5
${VERSION}
generate
:
controller-gen
##
Generate code containing DeepCopy
,
DeepCopyInto
,
and DeepCopyObject method implementations.
$(CONTROLLER_GEN)
object:headerFile
=
"hack/boilerplate.go.txt"
paths
=
"./..."
...
...
api/v1alpha1/aggregatorconfig_types.go
浏览文件 @
0a5c25a1
...
...
@@ -32,7 +32,7 @@ type AggregatorConfigSpec struct {
Aggregator
AggregatorSpec
`json:"aggregator,"`
}
//
//
AggregatorSpec defines the desired state of aggregator
type
AggregatorSpec
struct
{
Template
corev1
.
PodTemplateSpec
`json:"template,"`
}
...
...
config/crd/bases/diengine.opendilab.org_aggregatorconfigs.yaml
浏览文件 @
0a5c25a1
...
...
@@ -43,6 +43,7 @@ spec:
description
:
AggregatorConfigSpec defines the desired state of AggregatorConfig
properties
:
aggregator
:
description
:
AggregatorSpec defines the desired state of aggregator
properties
:
template
:
description
:
PodTemplateSpec describes the data a pod should have
...
...
config/v1.15.5/cert-manager.yaml
0 → 100644
浏览文件 @
0a5c25a1
此差异已折叠。
点击以展开。
config/v1.15.5/di-manager.yaml
0 → 100644
浏览文件 @
0a5c25a1
apiVersion
:
v1
kind
:
Namespace
metadata
:
labels
:
control-plane
:
di-operator
name
:
di-system
---
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
dijobs.diengine.opendilab.org
spec
:
additionalPrinterColumns
:
-
JSONPath
:
.status.phase
name
:
Phase
type
:
string
-
JSONPath
:
.metadata.creationTimestamp
name
:
Age
type
:
date
group
:
diengine.opendilab.org
names
:
kind
:
DIJob
listKind
:
DIJobList
plural
:
dijobs
shortNames
:
-
dijob
singular
:
dijob
scope
:
Namespaced
subresources
:
status
:
{}
validation
:
openAPIV3Schema
:
properties
:
spec
:
properties
:
group
:
description
:
Group is a collection of DIJobs
type
:
string
cleanPodPolicy
:
description
:
CleanPodPolicy defines the policy to clean pods after
DIJob completed
type
:
string
priorityClassName
:
description
:
Priority labels the priority of DIJob
type
:
string
volumes
:
description
:
Volumes defines the shared volumes for DI-engine components
type
:
array
coordinator
:
description
:
CoordinatorSpec defines the desired state of coordinators
type
:
object
collector
:
description
:
CollectorSpec defines the desired state of CollectorSpec
type
:
object
learner
:
description
:
CollectorSpec defines the desired state of CollectorSpec
type
:
object
versions
:
-
name
:
v1alpha1
served
:
true
storage
:
true
---
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
aggregatorconfigs.diengine.opendilab.org
spec
:
additionalPrinterColumns
:
-
JSONPath
:
.metadata.creationTimestamp
name
:
Age
type
:
date
group
:
diengine.opendilab.org
names
:
kind
:
AggregatorConfig
listKind
:
AggregatorConfigList
plural
:
aggregatorconfigs
shortNames
:
-
agconfig
singular
:
aggregatorconfig
scope
:
Namespaced
validation
:
openAPIV3Schema
:
properties
:
spec
:
properties
:
aggregator
:
description
:
AggregatorSpec defines the desired state of aggregator
type
:
object
versions
:
-
name
:
v1alpha1
served
:
true
storage
:
true
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
metadata
:
name
:
di-leader-election-role
namespace
:
di-system
rules
:
-
apiGroups
:
-
"
"
-
coordination.k8s.io
resources
:
-
configmaps
-
leases
verbs
:
-
get
-
list
-
watch
-
create
-
update
-
patch
-
delete
-
apiGroups
:
-
"
"
resources
:
-
events
verbs
:
-
create
-
patch
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
name
:
di-metrics-reader
rules
:
-
nonResourceURLs
:
-
/metrics
verbs
:
-
get
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
creationTimestamp
:
null
name
:
di-operator-cluster-role
rules
:
-
apiGroups
:
-
"
"
resources
:
-
events
-
pods
-
services
verbs
:
-
create
-
delete
-
get
-
list
-
patch
-
update
-
watch
-
apiGroups
:
-
"
"
resources
:
-
namespaces
-
nodes
verbs
:
-
get
-
list
-
apiGroups
:
-
diengine.opendilab.org
resources
:
-
aggregatorconfigs
-
dijobs
verbs
:
-
create
-
delete
-
get
-
list
-
patch
-
update
-
watch
-
apiGroups
:
-
diengine.opendilab.org
resources
:
-
aggregatorconfigs/finalizers
-
dijobs/finalizers
verbs
:
-
update
-
apiGroups
:
-
diengine.opendilab.org
resources
:
-
aggregatorconfigs/status
-
dijobs/status
verbs
:
-
get
-
patch
-
update
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
name
:
di-proxy-role
rules
:
-
apiGroups
:
-
authentication.k8s.io
resources
:
-
tokenreviews
verbs
:
-
create
-
apiGroups
:
-
authorization.k8s.io
resources
:
-
subjectaccessreviews
verbs
:
-
create
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
metadata
:
name
:
di-leader-election-rolebinding
namespace
:
di-system
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
Role
name
:
di-leader-election-role
subjects
:
-
kind
:
ServiceAccount
name
:
default
namespace
:
di-system
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
name
:
di-operator-cluster-rolebinding
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
di-operator-cluster-role
subjects
:
-
kind
:
ServiceAccount
name
:
default
namespace
:
di-system
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
name
:
di-proxy-rolebinding
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
di-proxy-role
subjects
:
-
kind
:
ServiceAccount
name
:
default
namespace
:
di-system
---
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
control-plane
:
di-operator
name
:
di-operator-metrics-service
namespace
:
di-system
spec
:
ports
:
-
name
:
https
port
:
8443
targetPort
:
8080
selector
:
control-plane
:
di-operator
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
di-server
namespace
:
di-system
spec
:
ports
:
-
port
:
8080
protocol
:
TCP
targetPort
:
8080
selector
:
control-plane
:
di-server
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
di-server-nodeport
namespace
:
di-system
spec
:
ports
:
-
nodePort
:
32270
port
:
8080
protocol
:
TCP
targetPort
:
8080
selector
:
control-plane
:
di-server
type
:
NodePort
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
di-webhook-service
namespace
:
di-system
spec
:
ports
:
-
port
:
443
targetPort
:
9443
selector
:
control-plane
:
di-webhook
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
labels
:
control-plane
:
di-operator
name
:
di-operator
namespace
:
di-system
spec
:
replicas
:
1
selector
:
matchLabels
:
control-plane
:
di-operator
template
:
metadata
:
labels
:
control-plane
:
di-operator
spec
:
containers
:
-
args
:
-
--health-probe-bind-address=:8081
-
--metrics-bind-address=:8080
-
--leader-elect
command
:
-
/di-operator
image
:
registry.sensetime.com/cloudnative4ai/di-operator:v0.2.0-alpha.0
imagePullPolicy
:
Always
livenessProbe
:
httpGet
:
path
:
/healthz
port
:
8081
initialDelaySeconds
:
15
periodSeconds
:
20
name
:
manager
readinessProbe
:
httpGet
:
path
:
/readyz
port
:
8081
initialDelaySeconds
:
5
periodSeconds
:
10
resources
:
limits
:
cpu
:
100m
memory
:
500Mi
requests
:
cpu
:
100m
memory
:
500Mi
securityContext
:
allowPrivilegeEscalation
:
false
terminationGracePeriodSeconds
:
10
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
labels
:
control-plane
:
di-server
name
:
di-server
namespace
:
di-system
spec
:
replicas
:
1
selector
:
matchLabels
:
control-plane
:
di-server
template
:
metadata
:
labels
:
control-plane
:
di-server
spec
:
containers
:
-
args
:
-
--server-bind-address=:8080
-
--leader-elect
-
--lease-lock-namespace=di-system
-
--lease-lock-name=di-server
command
:
-
/di-server
image
:
registry.sensetime.com/cloudnative4ai/di-server:v0.2.0-alpha.0
imagePullPolicy
:
Always
livenessProbe
:
httpGet
:
path
:
/healthz
port
:
8080
initialDelaySeconds
:
15
periodSeconds
:
20
name
:
server
resources
:
limits
:
cpu
:
100m
memory
:
500Mi
requests
:
cpu
:
100m
memory
:
500Mi
securityContext
:
allowPrivilegeEscalation
:
false
terminationGracePeriodSeconds
:
10
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
labels
:
control-plane
:
di-webhook
name
:
di-webhook
namespace
:
di-system
spec
:
replicas
:
1
selector
:
matchLabels
:
control-plane
:
di-webhook
template
:
metadata
:
labels
:
control-plane
:
di-webhook
spec
:
containers
:
-
command
:
-
/di-webhook
image
:
registry.sensetime.com/cloudnative4ai/di-webhook:v0.2.0-alpha.0
imagePullPolicy
:
Always
livenessProbe
:
httpGet
:
path
:
/healthz
port
:
8081
initialDelaySeconds
:
15
periodSeconds
:
20
name
:
webhook
ports
:
-
containerPort
:
9443
name
:
webhook-server
protocol
:
TCP
readinessProbe
:
httpGet
:
path
:
/readyz
port
:
8081
initialDelaySeconds
:
5
periodSeconds
:
10
resources
:
limits
:
cpu
:
30m
memory
:
100Mi
requests
:
cpu
:
30m
memory
:
100Mi
securityContext
:
allowPrivilegeEscalation
:
false
volumeMounts
:
-
mountPath
:
/tmp/k8s-webhook-server/serving-certs
name
:
cert
readOnly
:
true
terminationGracePeriodSeconds
:
10
volumes
:
-
name
:
cert
secret
:
defaultMode
:
420
secretName
:
di-webhook-server-cert
---
apiVersion
:
cert-manager.io/v1alpha2
kind
:
Certificate
metadata
:
name
:
di-serving-cert
namespace
:
di-system
spec
:
dnsNames
:
-
di-webhook-service.di-system.svc
-
di-webhook-service.di-system.svc.cluster.local
issuerRef
:
kind
:
Issuer
name
:
di-selfsigned-issuer
secretName
:
di-webhook-server-cert
---
apiVersion
:
cert-manager.io/v1alpha2
kind
:
Issuer
metadata
:
name
:
di-selfsigned-issuer
namespace
:
di-system
spec
:
selfSigned
:
{}
---
apiVersion
:
admissionregistration.k8s.io/v1beta1
kind
:
MutatingWebhookConfiguration
metadata
:
annotations
:
cert-manager.io/inject-ca-from
:
di-system/di-serving-cert
name
:
di-mutating-webhook-configuration
webhooks
:
-
admissionReviewVersions
:
-
v1
-
v1beta1
clientConfig
:
service
:
name
:
di-webhook-service
namespace
:
di-system
path
:
/mutate-diengine-opendilab-org-v1alpha1-dijob
failurePolicy
:
Fail
name
:
mdijob.kb.io
rules
:
-
apiGroups
:
-
diengine.opendilab.org
apiVersions
:
-
v1alpha1
operations
:
-
CREATE
-
UPDATE
resources
:
-
dijobs
sideEffects
:
None
---
apiVersion
:
admissionregistration.k8s.io/v1beta1
kind
:
ValidatingWebhookConfiguration
metadata
:
annotations
:
cert-manager.io/inject-ca-from
:
di-system/di-serving-cert
name
:
di-validating-webhook-configuration
webhooks
:
-
admissionReviewVersions
:
-
v1
-
v1beta1
clientConfig
:
service
:
name
:
di-webhook-service
namespace
:
di-system
path
:
/validate-diengine-opendilab-org-v1alpha1-dijob
failurePolicy
:
Fail
name
:
vdijob.kb.io
rules
:
-
apiGroups
:
-
diengine.opendilab.org
apiVersions
:
-
v1alpha1
operations
:
-
CREATE
-
UPDATE
resources
:
-
dijobs
sideEffects
:
None
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录