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
bac5cd38
Commit
bac5cd38
authored
Apr 02, 2015
by
Quinton Hoole
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6381 from lavalamp/fix
Stop the bleeding for #6059
parents
6ac59c89
6be09c5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
apiserver.go
pkg/kubelet/config/apiserver.go
+5
-1
factory.go
plugin/pkg/scheduler/factory/factory.go
+3
-1
No files found.
pkg/kubelet/config/apiserver.go
View file @
bac5cd38
...
@@ -18,6 +18,8 @@ limitations under the License.
...
@@ -18,6 +18,8 @@ limitations under the License.
package
config
package
config
import
(
import
(
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/cache"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/cache"
...
@@ -40,7 +42,9 @@ func newSourceApiserverFromLW(lw cache.ListerWatcher, updates chan<- interface{}
...
@@ -40,7 +42,9 @@ func newSourceApiserverFromLW(lw cache.ListerWatcher, updates chan<- interface{}
}
}
updates
<-
kubelet
.
PodUpdate
{
pods
,
kubelet
.
SET
,
kubelet
.
ApiserverSource
}
updates
<-
kubelet
.
PodUpdate
{
pods
,
kubelet
.
SET
,
kubelet
.
ApiserverSource
}
}
}
cache
.
NewReflector
(
lw
,
&
api
.
Pod
{},
cache
.
NewUndeltaStore
(
send
,
cache
.
MetaNamespaceKeyFunc
),
0
)
.
Run
()
// TODO: the 30 second poll loop is here to mitigate #6059 and
// shouldn't be neeeded once that is resolved.
cache
.
NewReflector
(
lw
,
&
api
.
Pod
{},
cache
.
NewUndeltaStore
(
send
,
cache
.
MetaNamespaceKeyFunc
),
30
*
time
.
Second
)
.
Run
()
}
}
func
getHostFieldLabel
(
apiVersion
string
)
string
{
func
getHostFieldLabel
(
apiVersion
string
)
string
{
...
...
plugin/pkg/scheduler/factory/factory.go
View file @
bac5cd38
...
@@ -143,7 +143,9 @@ func (f *ConfigFactory) CreateFromKeys(predicateKeys, priorityKeys util.StringSe
...
@@ -143,7 +143,9 @@ func (f *ConfigFactory) CreateFromKeys(predicateKeys, priorityKeys util.StringSe
}
}
// Watch and queue pods that need scheduling.
// Watch and queue pods that need scheduling.
cache
.
NewReflector
(
f
.
createUnassignedPodLW
(),
&
api
.
Pod
{},
f
.
PodQueue
,
0
)
.
Run
()
// TODO: the 30 second poll loop is here to mitigate #6059 and
// shouldn't be neeeded once that is resolved.
cache
.
NewReflector
(
f
.
createUnassignedPodLW
(),
&
api
.
Pod
{},
f
.
PodQueue
,
30
*
time
.
Second
)
.
Run
()
// Pass through all events to the scheduled pod store, but on a deletion,
// Pass through all events to the scheduled pod store, but on a deletion,
// also remove from the assumed pods.
// also remove from the assumed pods.
...
...
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