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
1a0a7575
Unverified
Commit
1a0a7575
authored
Apr 16, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76613 from SataQiu/fix-golint-20190416
Fix golint failures of pkg/apis/core/helper
parents
123b9c9e
556ff16b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
.golint_failures
hack/.golint_failures
+0
-1
helpers.go
pkg/apis/core/helper/helpers.go
+3
-1
No files found.
hack/.golint_failures
View file @
1a0a7575
...
@@ -31,7 +31,6 @@ pkg/apis/certificates
...
@@ -31,7 +31,6 @@ pkg/apis/certificates
pkg/apis/certificates/v1beta1
pkg/apis/certificates/v1beta1
pkg/apis/certificates/validation
pkg/apis/certificates/validation
pkg/apis/core
pkg/apis/core
pkg/apis/core/helper
pkg/apis/core/helper/qos
pkg/apis/core/helper/qos
pkg/apis/core/v1
pkg/apis/core/v1
pkg/apis/core/v1/helper
pkg/apis/core/v1/helper
...
...
pkg/apis/core/helper/helpers.go
View file @
1a0a7575
...
@@ -276,10 +276,12 @@ var standardFinalizers = sets.NewString(
...
@@ -276,10 +276,12 @@ var standardFinalizers = sets.NewString(
metav1
.
FinalizerDeleteDependents
,
metav1
.
FinalizerDeleteDependents
,
)
)
// IsStandardFinalizerName checks if the input string is a standard finalizer name
func
IsStandardFinalizerName
(
str
string
)
bool
{
func
IsStandardFinalizerName
(
str
string
)
bool
{
return
standardFinalizers
.
Has
(
str
)
return
standardFinalizers
.
Has
(
str
)
}
}
// LoadBalancerStatusEqual checks if the status of the load balancer is equal to the target status
// TODO: make method on LoadBalancerStatus?
// TODO: make method on LoadBalancerStatus?
func
LoadBalancerStatusEqual
(
l
,
r
*
core
.
LoadBalancerStatus
)
bool
{
func
LoadBalancerStatusEqual
(
l
,
r
*
core
.
LoadBalancerStatus
)
bool
{
return
ingressSliceEqual
(
l
.
Ingress
,
r
.
Ingress
)
return
ingressSliceEqual
(
l
.
Ingress
,
r
.
Ingress
)
...
@@ -324,7 +326,7 @@ func GetAccessModesAsString(modes []core.PersistentVolumeAccessMode) string {
...
@@ -324,7 +326,7 @@ func GetAccessModesAsString(modes []core.PersistentVolumeAccessMode) string {
return
strings
.
Join
(
modesStr
,
","
)
return
strings
.
Join
(
modesStr
,
","
)
}
}
// GetAccessModes
As
String returns an array of AccessModes from a string created by GetAccessModesAsString
// GetAccessModes
From
String returns an array of AccessModes from a string created by GetAccessModesAsString
func
GetAccessModesFromString
(
modes
string
)
[]
core
.
PersistentVolumeAccessMode
{
func
GetAccessModesFromString
(
modes
string
)
[]
core
.
PersistentVolumeAccessMode
{
strmodes
:=
strings
.
Split
(
modes
,
","
)
strmodes
:=
strings
.
Split
(
modes
,
","
)
accessModes
:=
[]
core
.
PersistentVolumeAccessMode
{}
accessModes
:=
[]
core
.
PersistentVolumeAccessMode
{}
...
...
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