Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
水淹萌龙
kubesphere
提交
052af227
K
kubesphere
项目概览
水淹萌龙
/
kubesphere
与 Fork 源项目一致
Fork自
KubeSphere / kubesphere
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kubesphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
052af227
编写于
4月 15, 2020
作者:
R
runzexia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
regenerate
上级
d8259160
变更
5
展开全部
显示空白变更内容
内联
并排
Showing
5 changed file
with
8359 addition
and
3821 deletion
+8359
-3821
Makefile
Makefile
+1
-0
api/api-rules/violation_exceptions.list
api/api-rules/violation_exceptions.list
+48
-172
api/openapi-spec/swagger.json
api/openapi-spec/swagger.json
+7962
-3349
cmd/controller-manager/app/controllers.go
cmd/controller-manager/app/controllers.go
+2
-2
pkg/apis/cluster/v1alpha1/openapi_generated.go
pkg/apis/cluster/v1alpha1/openapi_generated.go
+346
-298
未找到文件。
Makefile
浏览文件 @
052af227
...
...
@@ -84,6 +84,7 @@ openapi:
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go
-O
openapi_generated
-i
./vendor/k8s.io/api/networking/v1,./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./vendor/k8s.io/apimachinery/pkg/util/intstr,./pkg/apis/network/v1alpha1
-p
kubesphere.io/kubesphere/pkg/apis/network/v1alpha1
-h
./hack/boilerplate.go.txt
--report-filename
./api/api-rules/violation_exceptions.list
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go
-O
openapi_generated
-i
./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./pkg/apis/devops/v1alpha1,./vendor/k8s.io/apimachinery/pkg/runtime,./vendor/k8s.io/api/core/v1
-p
kubesphere.io/kubesphere/pkg/apis/devops/v1alpha1
-h
./hack/boilerplate.go.txt
--report-filename
./api/api-rules/violation_exceptions.list
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go
-O
openapi_generated
-i
./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./pkg/apis/cluster/v1alpha1,./vendor/k8s.io/apimachinery/pkg/runtime,./vendor/k8s.io/api/core/v1
-p
kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1
-h
./hack/boilerplate.go.txt
--report-filename
./api/api-rules/violation_exceptions.list
go run ./vendor/k8s.io/kube-openapi/cmd/openapi-gen/openapi-gen.go
-O
openapi_generated
-i
./vendor/k8s.io/apimachinery/pkg/apis/meta/v1,./pkg/apis/devops/v1alpha3,./vendor/k8s.io/apimachinery/pkg/runtime
-p
kubesphere.io/kubesphere/pkg/apis/devops/v1alpha3
-h
./hack/boilerplate.go.txt
--report-filename
./api/api-rules/violation_exceptions.list
go run ./tools/cmd/crd-doc-gen/main.go
# Build the docker image
docker-build
:
all
...
...
api/api-rules/violation_exceptions.list
浏览文件 @
052af227
此差异已折叠。
点击以展开。
api/openapi-spec/swagger.json
浏览文件 @
052af227
此差异已折叠。
点击以展开。
cmd/controller-manager/app/controllers.go
浏览文件 @
052af227
pkg/apis/cluster/v1alpha1/openapi_generated.go
浏览文件 @
052af227
...
...
@@ -289,6 +289,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
"kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.AgentSpec": schema_pkg_apis_cluster_v1alpha1_AgentSpec(ref),
"kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.AgentStatus": schema_pkg_apis_cluster_v1alpha1_AgentStatus(ref),
"kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.Cluster": schema_pkg_apis_cluster_v1alpha1_Cluster(ref),
"kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.ClusterCondition": schema_pkg_apis_cluster_v1alpha1_ClusterCondition(ref),
"kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.ClusterList": schema_pkg_apis_cluster_v1alpha1_ClusterList(ref),
"kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.ClusterSpec": schema_pkg_apis_cluster_v1alpha1_ClusterSpec(ref),
"kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.ClusterStatus": schema_pkg_apis_cluster_v1alpha1_ClusterStatus(ref),
...
...
@@ -13469,7 +13470,7 @@ func schema_pkg_apis_cluster_v1alpha1_AgentSpec(ref common.ReferenceCallback) co
Format: "int32",
},
},
"
P
aused": {
"
p
aused": {
SchemaProps: spec.SchemaProps{
Description: "Indicates that the agent is paused.",
Type: []string{"boolean"},
...
...
@@ -13509,7 +13510,7 @@ func schema_pkg_apis_cluster_v1alpha1_AgentStatus(ref common.ReferenceCallback)
Format: "int64",
},
},
"
KubeC
onfig": {
"
kubec
onfig": {
SchemaProps: spec.SchemaProps{
Description: "Issued new kubeconfig by proxy server",
Type: []string{"string"},
...
...
@@ -13517,7 +13518,6 @@ func schema_pkg_apis_cluster_v1alpha1_AgentStatus(ref common.ReferenceCallback)
},
},
},
Required: []string{"KubeConfig"},
},
},
Dependencies: []string{
...
...
@@ -13569,6 +13569,61 @@ func schema_pkg_apis_cluster_v1alpha1_Cluster(ref common.ReferenceCallback) comm
}
}
func schema_pkg_apis_cluster_v1alpha1_ClusterCondition(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"type": {
SchemaProps: spec.SchemaProps{
Description: "Type of the condition",
Type: []string{"string"},
Format: "",
},
},
"status": {
SchemaProps: spec.SchemaProps{
Description: "Status of the condition, one of True, False, Unknown.",
Type: []string{"string"},
Format: "",
},
},
"lastUpdateTime": {
SchemaProps: spec.SchemaProps{
Description: "The last time this condition was updated.",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
},
},
"lastTransitionTime": {
SchemaProps: spec.SchemaProps{
Description: "Last time the condition transitioned from one status to another.",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
},
},
"reason": {
SchemaProps: spec.SchemaProps{
Description: "The reason for the condition's last transition.",
Type: []string{"string"},
Format: "",
},
},
"message": {
SchemaProps: spec.SchemaProps{
Description: "A human readable message indicating details about the transition.",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"type", "status"},
},
},
Dependencies: []string{
"k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
}
}
func schema_pkg_apis_cluster_v1alpha1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
...
...
@@ -13623,14 +13678,21 @@ func schema_pkg_apis_cluster_v1alpha1_ClusterSpec(ref common.ReferenceCallback)
Properties: map[string]spec.Schema{
"federated": {
SchemaProps: spec.SchemaProps{
Description: "Join cluster as kubefed cluster",
Description: "Join cluster as
a
kubefed cluster",
Type: []string{"boolean"},
Format: "",
},
},
"
stat
e": {
"
activ
e": {
SchemaProps: spec.SchemaProps{
Description: "Desired state of the cluster",
Type: []string{"boolean"},
Format: "",
},
},
"provider": {
SchemaProps: spec.SchemaProps{
Description: "Provider of the cluster, this field is just for description",
Type: []string{"string"},
Format: "",
},
...
...
@@ -13647,51 +13709,37 @@ func schema_pkg_apis_cluster_v1alpha1_ClusterStatus(ref common.ReferenceCallback
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"
type
": {
"
conditions
": {
SchemaProps: spec.SchemaProps{
Description: "Type of the condition",
Type: []string{"string"},
Format: "",
},
},
"status": {
Description: "Represents the latest available observations of a cluster's current state.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Status of the condition, one of True, False, Unknown.",
Type: []string{"string"},
Format: "",
Ref: ref("kubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.ClusterCondition"),
},
},
"lastUpdateTime": {
SchemaProps: spec.SchemaProps{
Description: "The last time this condition was updated.",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
},
},
"lastTransitionTime": {
SchemaProps: spec.SchemaProps{
Description: "Last time the condition transitioned from one status to another.",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
},
},
"reason": {
"kubernetesVersion": {
SchemaProps: spec.SchemaProps{
Description: "
The reason for the condition's last transition.
",
Description: "
GitVersion of the kubernetes cluster, this field is set by cluster controller
",
Type: []string{"string"},
Format: "",
},
},
"
message
": {
"
nodeCount
": {
SchemaProps: spec.SchemaProps{
Description: "
A human readable message indicating details about the transition.
",
Type: []string{"
string
"},
Format: "",
Description: "
Count of the kubernetes cluster nodes
",
Type: []string{"
integer
"},
Format: "
int32
",
},
},
},
Required: []string{"type", "status"},
},
},
Dependencies: []string{
"k
8s.io/apimachinery/pkg/apis/meta/v1.Time
"},
"k
ubesphere.io/kubesphere/pkg/apis/cluster/v1alpha1.ClusterCondition
"},
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录