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
5b433332
Unverified
Commit
5b433332
authored
Apr 25, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76884 from SataQiu/fix-golint-pkg/kubelet/pod
Fix golint failures of pkg/kubelet/pod
parents
f4937619
1581055c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.golint_failures
hack/.golint_failures
+0
-1
mirror_client.go
pkg/kubelet/pod/mirror_client.go
+2
-0
No files found.
hack/.golint_failures
View file @
5b433332
...
...
@@ -184,7 +184,6 @@ pkg/kubelet/events
pkg/kubelet/lifecycle
pkg/kubelet/metrics
pkg/kubelet/oom
pkg/kubelet/pod
pkg/kubelet/pod/testing
pkg/kubelet/preemption
pkg/kubelet/prober
...
...
pkg/kubelet/pod/mirror_client.go
View file @
5b433332
...
...
@@ -90,11 +90,13 @@ func (mc *basicMirrorClient) DeleteMirrorPod(podFullName string) error {
return
nil
}
// IsStaticPod returns true if the pod is a static pod.
func
IsStaticPod
(
pod
*
v1
.
Pod
)
bool
{
source
,
err
:=
kubetypes
.
GetPodSource
(
pod
)
return
err
==
nil
&&
source
!=
kubetypes
.
ApiserverSource
}
// IsMirrorPod returns true if the pod is a mirror pod.
func
IsMirrorPod
(
pod
*
v1
.
Pod
)
bool
{
_
,
ok
:=
pod
.
Annotations
[
kubetypes
.
ConfigMirrorAnnotationKey
]
return
ok
...
...
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