mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
fix golint failures of pkg/kubectl/apps
This commit is contained in:
parent
79a8827c37
commit
4c713e94d9
@ -123,7 +123,6 @@ pkg/features
|
|||||||
pkg/kubeapiserver
|
pkg/kubeapiserver
|
||||||
pkg/kubeapiserver/options
|
pkg/kubeapiserver/options
|
||||||
pkg/kubectl
|
pkg/kubectl
|
||||||
pkg/kubectl/apps
|
|
||||||
pkg/kubectl/cmd/annotate
|
pkg/kubectl/cmd/annotate
|
||||||
pkg/kubectl/cmd/apply
|
pkg/kubectl/cmd/apply
|
||||||
pkg/kubectl/cmd/attach
|
pkg/kubectl/cmd/attach
|
||||||
|
@ -157,9 +157,9 @@ var (
|
|||||||
mediumDead int64 = 2 * 60 * 60
|
mediumDead int64 = 2 * 60 * 60
|
||||||
longDead int64 = 1000000
|
longDead int64 = 1000000
|
||||||
noDead int64 = -12345
|
noDead int64 = -12345
|
||||||
A batchV1beta1.ConcurrencyPolicy = batchV1beta1.AllowConcurrent
|
A = batchV1beta1.AllowConcurrent
|
||||||
f batchV1beta1.ConcurrencyPolicy = batchV1beta1.ForbidConcurrent
|
f = batchV1beta1.ForbidConcurrent
|
||||||
R batchV1beta1.ConcurrencyPolicy = batchV1beta1.ReplaceConcurrent
|
R = batchV1beta1.ReplaceConcurrent
|
||||||
T = true
|
T = true
|
||||||
F = false
|
F = false
|
||||||
)
|
)
|
||||||
|
@ -73,17 +73,3 @@ func (elem GroupKindElement) GroupMatch(groups ...string) bool {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// NoOpKindVisitor implements KindVisitor with no-op functions.
|
|
||||||
type NoOpKindVisitor struct{}
|
|
||||||
|
|
||||||
var _ KindVisitor = &NoOpKindVisitor{}
|
|
||||||
|
|
||||||
func (*NoOpKindVisitor) VisitDaemonSet(kind GroupKindElement) {}
|
|
||||||
func (*NoOpKindVisitor) VisitDeployment(kind GroupKindElement) {}
|
|
||||||
func (*NoOpKindVisitor) VisitJob(kind GroupKindElement) {}
|
|
||||||
func (*NoOpKindVisitor) VisitPod(kind GroupKindElement) {}
|
|
||||||
func (*NoOpKindVisitor) VisitReplicaSet(kind GroupKindElement) {}
|
|
||||||
func (*NoOpKindVisitor) VisitReplicationController(kind GroupKindElement) {}
|
|
||||||
func (*NoOpKindVisitor) VisitStatefulSet(kind GroupKindElement) {}
|
|
||||||
func (*NoOpKindVisitor) VisitCronJob(kind GroupKindElement) {}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user