Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
凌波微步_大先生
dashboard
提交
bcfb4b67
D
dashboard
项目概览
凌波微步_大先生
/
dashboard
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dashboard
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
bcfb4b67
编写于
10月 21, 2019
作者:
F
Faye Zhang
提交者:
Kubernetes Prow Robot
10月 21, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix golint failures (#4439)
* fix golint failures * fix golint failures
上级
3f890689
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
21 addition
and
22 deletion
+21
-22
src/app/backend/resource/common/pod.go
src/app/backend/resource/common/pod.go
+1
-1
src/app/backend/resource/configmap/list.go
src/app/backend/resource/configmap/list.go
+1
-1
src/app/backend/resource/cronjob/list.go
src/app/backend/resource/cronjob/list.go
+1
-1
src/app/backend/resource/daemonset/detail.go
src/app/backend/resource/daemonset/detail.go
+2
-2
src/app/backend/resource/daemonset/list.go
src/app/backend/resource/daemonset/list.go
+1
-1
src/app/backend/resource/ingress/list.go
src/app/backend/resource/ingress/list.go
+1
-1
src/app/backend/resource/job/list.go
src/app/backend/resource/job/list.go
+4
-4
src/app/backend/resource/limitrange/detail.go
src/app/backend/resource/limitrange/detail.go
+2
-3
src/app/backend/resource/persistentvolumeclaim/list.go
src/app/backend/resource/persistentvolumeclaim/list.go
+1
-1
src/app/backend/resource/pod/list.go
src/app/backend/resource/pod/list.go
+1
-1
src/app/backend/resource/replicaset/list.go
src/app/backend/resource/replicaset/list.go
+1
-1
src/app/backend/resource/replicationcontroller/list.go
src/app/backend/resource/replicationcontroller/list.go
+1
-1
src/app/backend/systembanner/api/types.go
src/app/backend/systembanner/api/types.go
+2
-2
src/app/backend/validation/validaterbacstatus.go
src/app/backend/validation/validaterbacstatus.go
+2
-2
未找到文件。
src/app/backend/resource/common/pod.go
浏览文件 @
bcfb4b67
...
...
@@ -22,7 +22,7 @@ import (
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
)
// Filter
PodsByControllerResour
ce returns a subset of pods controlled by given deployment.
// Filter
DeploymentPodsByOwnerReferen
ce returns a subset of pods controlled by given deployment.
func
FilterDeploymentPodsByOwnerReference
(
deployment
apps
.
Deployment
,
allRS
[]
apps
.
ReplicaSet
,
allPods
[]
v1
.
Pod
)
[]
v1
.
Pod
{
var
matchingPods
[]
v1
.
Pod
...
...
src/app/backend/resource/configmap/list.go
浏览文件 @
bcfb4b67
...
...
@@ -26,7 +26,7 @@ import (
kubernetes
"k8s.io/client-go/kubernetes"
)
// ConfigMapList
Component
contains a list of Config Maps in the cluster.
// ConfigMapList contains a list of Config Maps in the cluster.
type
ConfigMapList
struct
{
ListMeta
api
.
ListMeta
`json:"listMeta"`
...
...
src/app/backend/resource/cronjob/list.go
浏览文件 @
bcfb4b67
...
...
@@ -27,7 +27,7 @@ import (
client
"k8s.io/client-go/kubernetes"
)
// CronJobList
Component
contains a list of CronJobs in the cluster.
// CronJobList contains a list of CronJobs in the cluster.
type
CronJobList
struct
{
ListMeta
api
.
ListMeta
`json:"listMeta"`
CumulativeMetrics
[]
metricapi
.
Metric
`json:"cumulativeMetrics"`
...
...
src/app/backend/resource/daemonset/detail.go
浏览文件 @
bcfb4b67
...
...
@@ -24,7 +24,7 @@ import (
k8sClient
"k8s.io/client-go/kubernetes"
)
// DaemonSeDetail represents detailed information about a Daemon Set.
// DaemonSe
t
Detail represents detailed information about a Daemon Set.
type
DaemonSetDetail
struct
{
// Extends list item structure.
DaemonSet
`json:",inline"`
...
...
@@ -35,7 +35,7 @@ type DaemonSetDetail struct {
Errors
[]
error
`json:"errors"`
}
// Returns detailed information about the given daemon set in the given namespace.
//
GetDaemonSetDetail
Returns detailed information about the given daemon set in the given namespace.
func
GetDaemonSetDetail
(
client
k8sClient
.
Interface
,
metricClient
metricapi
.
MetricClient
,
namespace
,
name
string
)
(
*
DaemonSetDetail
,
error
)
{
...
...
src/app/backend/resource/daemonset/list.go
浏览文件 @
bcfb4b67
...
...
@@ -26,7 +26,7 @@ import (
"k8s.io/client-go/kubernetes"
)
// DaemonSetList
Component
contains a list of Daemon Sets in the cluster.
// DaemonSetList contains a list of Daemon Sets in the cluster.
type
DaemonSetList
struct
{
ListMeta
api
.
ListMeta
`json:"listMeta"`
DaemonSets
[]
DaemonSet
`json:"daemonSets"`
...
...
src/app/backend/resource/ingress/list.go
浏览文件 @
bcfb4b67
...
...
@@ -32,7 +32,7 @@ type Ingress struct {
Endpoints
[]
common
.
Endpoint
`json:"endpoints"`
}
// IngressList
Component
- response structure for a queried ingress list.
// IngressList - response structure for a queried ingress list.
type
IngressList
struct
{
api
.
ListMeta
`json:"listMeta"`
...
...
src/app/backend/resource/job/list.go
浏览文件 @
bcfb4b67
...
...
@@ -28,7 +28,7 @@ import (
client
"k8s.io/client-go/kubernetes"
)
// JobList
Component
contains a list of Jobs in the cluster.
// JobList contains a list of Jobs in the cluster.
type
JobList
struct
{
ListMeta
api
.
ListMeta
`json:"listMeta"`
CumulativeMetrics
[]
metricapi
.
Metric
`json:"cumulativeMetrics"`
...
...
@@ -46,11 +46,11 @@ type JobList struct {
type
JobStatusType
string
const
(
// JobRunning means the job is still running.
// Job
Status
Running means the job is still running.
JobStatusRunning
JobStatusType
=
"Running"
// JobComplete means the job has completed its execution.
// Job
Status
Complete means the job has completed its execution.
JobStatusComplete
JobStatusType
=
"Complete"
// JobFailed means the job has failed its execution.
// Job
Status
Failed means the job has failed its execution.
JobStatusFailed
JobStatusType
=
"Failed"
)
...
...
src/app/backend/resource/limitrange/detail.go
浏览文件 @
bcfb4b67
...
...
@@ -27,12 +27,11 @@ func (rMap rangeMap) getRange(resource api.ResourceName) *LimitRangeItem {
if
!
ok
{
rMap
[
resource
]
=
&
LimitRangeItem
{}
return
rMap
[
resource
]
}
else
{
return
r
}
return
r
}
// LimitRange provides resource limit range values
// LimitRange
Item
provides resource limit range values
type
LimitRangeItem
struct
{
// ResourceName usage constraints on this kind by resource name
ResourceName
string
`json:"resourceName,omitempty"`
...
...
src/app/backend/resource/persistentvolumeclaim/list.go
浏览文件 @
bcfb4b67
...
...
@@ -25,7 +25,7 @@ import (
"k8s.io/client-go/kubernetes"
)
// PersistentVolumeClaimList
Component
contains a list of Persistent Volume Claims in the cluster.
// PersistentVolumeClaimList contains a list of Persistent Volume Claims in the cluster.
type
PersistentVolumeClaimList
struct
{
ListMeta
api
.
ListMeta
`json:"listMeta"`
...
...
src/app/backend/resource/pod/list.go
浏览文件 @
bcfb4b67
...
...
@@ -28,7 +28,7 @@ import (
k8sClient
"k8s.io/client-go/kubernetes"
)
// PodList
Component
contains a list of Pods in the cluster.
// PodList contains a list of Pods in the cluster.
type
PodList
struct
{
ListMeta
api
.
ListMeta
`json:"listMeta"`
CumulativeMetrics
[]
metricapi
.
Metric
`json:"cumulativeMetrics"`
...
...
src/app/backend/resource/replicaset/list.go
浏览文件 @
bcfb4b67
...
...
@@ -28,7 +28,7 @@ import (
client
"k8s.io/client-go/kubernetes"
)
// ReplicaSetList
Component
contains a list of Replica Sets in the cluster.
// ReplicaSetList contains a list of Replica Sets in the cluster.
type
ReplicaSetList
struct
{
ListMeta
api
.
ListMeta
`json:"listMeta"`
CumulativeMetrics
[]
metricapi
.
Metric
`json:"cumulativeMetrics"`
...
...
src/app/backend/resource/replicationcontroller/list.go
浏览文件 @
bcfb4b67
...
...
@@ -27,7 +27,7 @@ import (
client
"k8s.io/client-go/kubernetes"
)
// ReplicationControllerList
Component
contains a list of Replication Controllers in the cluster.
// ReplicationControllerList contains a list of Replication Controllers in the cluster.
type
ReplicationControllerList
struct
{
ListMeta
api
.
ListMeta
`json:"listMeta"`
CumulativeMetrics
[]
metricapi
.
Metric
`json:"cumulativeMetrics"`
...
...
src/app/backend/systembanner/api/types.go
浏览文件 @
bcfb4b67
...
...
@@ -33,10 +33,10 @@ const (
// SystemBannerSeverityInfo is the lowest of allowed system banner severities.
SystemBannerSeverityInfo
SystemBannerSeverity
=
"INFO"
// SystemBannerSeverity
Info
is in the middle of allowed system banner severities.
// SystemBannerSeverity
Warning
is in the middle of allowed system banner severities.
SystemBannerSeverityWarning
SystemBannerSeverity
=
"WARNING"
// SystemBannerSeverity
Info
is the highest of allowed system banner severities.
// SystemBannerSeverity
Error
is the highest of allowed system banner severities.
SystemBannerSeverityError
SystemBannerSeverity
=
"ERROR"
)
...
...
src/app/backend/validation/validaterbacstatus.go
浏览文件 @
bcfb4b67
...
...
@@ -23,13 +23,13 @@ import (
"k8s.io/client-go/kubernetes"
)
// R
BAC
Status describes status of RBAC in the cluster.
// R
bac
Status describes status of RBAC in the cluster.
type
RbacStatus
struct
{
// True when RBAC is enabled in the cluster.
Enabled
bool
`json:"enabled"`
}
// ValidateR
BAC
Status validates if RBAC is enabled in the cluster.
// ValidateR
bac
Status validates if RBAC is enabled in the cluster.
// Supported version of RBAC api is: 'rbac.authorization.k8s.io/v1beta1'
func
ValidateRbacStatus
(
client
kubernetes
.
Interface
)
(
*
RbacStatus
,
error
)
{
groupList
,
err
:=
client
.
Discovery
()
.
ServerGroups
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录