Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ed04c5f4
Commit
ed04c5f4
authored
May 03, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix golint failures of pkg/apis/scheduling pkg/apis/storage/util…
fix golint failures of pkg/apis/scheduling pkg/apis/storage/util pkg/apis/storage/v1/util pkg/apis/storage/v1beta1/util
parent
6a8a3682
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
11 deletions
+17
-11
.golint_failures
hack/.golint_failures
+0
-4
register.go
pkg/apis/scheduling/register.go
+3
-1
types.go
pkg/apis/scheduling/types.go
+4
-2
helpers.go
pkg/apis/storage/util/helpers.go
+3
-1
helpers.go
pkg/apis/storage/v1/util/helpers.go
+3
-1
helpers.go
pkg/apis/storage/v1beta1/util/helpers.go
+3
-1
storage.go
pkg/kubectl/util/storage/storage.go
+1
-1
No files found.
hack/.golint_failures
View file @
ed04c5f4
...
@@ -47,13 +47,9 @@ pkg/apis/rbac/v1
...
@@ -47,13 +47,9 @@ pkg/apis/rbac/v1
pkg/apis/rbac/v1alpha1
pkg/apis/rbac/v1alpha1
pkg/apis/rbac/v1beta1
pkg/apis/rbac/v1beta1
pkg/apis/rbac/validation
pkg/apis/rbac/validation
pkg/apis/scheduling
pkg/apis/storage
pkg/apis/storage
pkg/apis/storage/util
pkg/apis/storage/v1
pkg/apis/storage/v1
pkg/apis/storage/v1/util
pkg/apis/storage/v1beta1
pkg/apis/storage/v1beta1
pkg/apis/storage/v1beta1/util
pkg/cloudprovider/providers/fake
pkg/cloudprovider/providers/fake
pkg/cloudprovider/providers/photon
pkg/cloudprovider/providers/photon
pkg/controller
pkg/controller
...
...
pkg/apis/scheduling/register.go
View file @
ed04c5f4
...
@@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
...
@@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
}
}
var
(
var
(
// SchemeBuilder points to a list of functions added to Scheme.
SchemeBuilder
=
runtime
.
NewSchemeBuilder
(
addKnownTypes
)
SchemeBuilder
=
runtime
.
NewSchemeBuilder
(
addKnownTypes
)
AddToScheme
=
SchemeBuilder
.
AddToScheme
// AddToScheme applies all the stored functions to the scheme.
AddToScheme
=
SchemeBuilder
.
AddToScheme
)
)
func
addKnownTypes
(
scheme
*
runtime
.
Scheme
)
error
{
func
addKnownTypes
(
scheme
*
runtime
.
Scheme
)
error
{
...
...
pkg/apis/scheduling/types.go
View file @
ed04c5f4
...
@@ -29,11 +29,13 @@ const (
...
@@ -29,11 +29,13 @@ const (
SystemCriticalPriority
=
2
*
HighestUserDefinablePriority
SystemCriticalPriority
=
2
*
HighestUserDefinablePriority
// SystemPriorityClassPrefix is the prefix reserved for system priority class names. Other priority
// SystemPriorityClassPrefix is the prefix reserved for system priority class names. Other priority
// classes are not allowed to start with this prefix.
// classes are not allowed to start with this prefix.
SystemPriorityClassPrefix
=
"system-"
// NOTE: In order to avoid conflict of names with user-defined priority classes, all the names must
// NOTE: In order to avoid conflict of names with user-defined priority classes, all the names must
// start with SystemPriorityClassPrefix.
// start with SystemPriorityClassPrefix.
SystemPriorityClassPrefix
=
"system-"
// SystemClusterCritical is the system priority class name that represents cluster-critical.
SystemClusterCritical
=
SystemPriorityClassPrefix
+
"cluster-critical"
SystemClusterCritical
=
SystemPriorityClassPrefix
+
"cluster-critical"
SystemNodeCritical
=
SystemPriorityClassPrefix
+
"node-critical"
// SystemNodeCritical is the system priority class name that represents node-critical.
SystemNodeCritical
=
SystemPriorityClassPrefix
+
"node-critical"
)
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
...
...
pkg/apis/storage/util/helpers.go
View file @
ed04c5f4
...
@@ -20,8 +20,10 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
...
@@ -20,8 +20,10 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
// marks a class as the default StorageClass
// marks a class as the default StorageClass
//TODO: remove Beta when no longer used
const
IsDefaultStorageClassAnnotation
=
"storageclass.kubernetes.io/is-default-class"
const
IsDefaultStorageClassAnnotation
=
"storageclass.kubernetes.io/is-default-class"
// BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
// TODO: remove Beta when no longer used
const
BetaIsDefaultStorageClassAnnotation
=
"storageclass.beta.kubernetes.io/is-default-class"
const
BetaIsDefaultStorageClassAnnotation
=
"storageclass.beta.kubernetes.io/is-default-class"
// IsDefaultAnnotationText returns a pretty Yes/No String if
// IsDefaultAnnotationText returns a pretty Yes/No String if
...
...
pkg/apis/storage/v1/util/helpers.go
View file @
ed04c5f4
...
@@ -22,8 +22,10 @@ import (
...
@@ -22,8 +22,10 @@ import (
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
// marks a class as the default StorageClass
// marks a class as the default StorageClass
//TODO: remove Beta when no longer used
const
IsDefaultStorageClassAnnotation
=
"storageclass.kubernetes.io/is-default-class"
const
IsDefaultStorageClassAnnotation
=
"storageclass.kubernetes.io/is-default-class"
// BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
// TODO: remove Beta when no longer used
const
BetaIsDefaultStorageClassAnnotation
=
"storageclass.beta.kubernetes.io/is-default-class"
const
BetaIsDefaultStorageClassAnnotation
=
"storageclass.beta.kubernetes.io/is-default-class"
// IsDefaultAnnotationText returns a pretty Yes/No String if
// IsDefaultAnnotationText returns a pretty Yes/No String if
...
...
pkg/apis/storage/v1beta1/util/helpers.go
View file @
ed04c5f4
...
@@ -20,8 +20,10 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
...
@@ -20,8 +20,10 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
// IsDefaultStorageClassAnnotation represents a StorageClass annotation that
// marks a class as the default StorageClass
// marks a class as the default StorageClass
//TODO: remove Beta when no longer used
const
IsDefaultStorageClassAnnotation
=
"storageclass.kubernetes.io/is-default-class"
const
IsDefaultStorageClassAnnotation
=
"storageclass.kubernetes.io/is-default-class"
// BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
// TODO: remove Beta when no longer used
const
BetaIsDefaultStorageClassAnnotation
=
"storageclass.beta.kubernetes.io/is-default-class"
const
BetaIsDefaultStorageClassAnnotation
=
"storageclass.beta.kubernetes.io/is-default-class"
// IsDefaultAnnotationText returns a pretty Yes/No String if
// IsDefaultAnnotationText returns a pretty Yes/No String if
...
...
pkg/kubectl/util/storage/storage.go
View file @
ed04c5f4
...
@@ -28,7 +28,7 @@ import (
...
@@ -28,7 +28,7 @@ import (
// marks a class as the default StorageClass
// marks a class as the default StorageClass
const
IsDefaultStorageClassAnnotation
=
"storageclass.kubernetes.io/is-default-class"
const
IsDefaultStorageClassAnnotation
=
"storageclass.kubernetes.io/is-default-class"
// BetaIsDefaultStorageClassAnnotation is the beta version of
Beta
IsDefaultStorageClassAnnotation.
// BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
const
BetaIsDefaultStorageClassAnnotation
=
"storageclass.beta.kubernetes.io/is-default-class"
const
BetaIsDefaultStorageClassAnnotation
=
"storageclass.beta.kubernetes.io/is-default-class"
// IsDefaultAnnotationText returns a pretty Yes/No String if
// IsDefaultAnnotationText returns a pretty Yes/No String if
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment