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
94b5a22d
Commit
94b5a22d
authored
Jun 18, 2019
by
galal-hussein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable the svclb controller nodeploy for svclb is passed
parent
4ea110f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
server.go
pkg/server/server.go
+0
-1
controller.go
pkg/servicelb/controller.go
+4
-0
No files found.
pkg/server/server.go
View file @
94b5a22d
...
@@ -134,7 +134,6 @@ func masterControllers(ctx context.Context, sc *Context, config *Config) error {
...
@@ -134,7 +134,6 @@ func masterControllers(ctx context.Context, sc *Context, config *Config) error {
sc
.
Batch
.
Batch
()
.
V1
()
.
Job
(),
sc
.
Batch
.
Batch
()
.
V1
()
.
Job
(),
sc
.
Auth
.
Rbac
()
.
V1
()
.
ClusterRoleBinding
(),
sc
.
Auth
.
Rbac
()
.
V1
()
.
ClusterRoleBinding
(),
sc
.
Core
.
Core
()
.
V1
()
.
ServiceAccount
())
sc
.
Core
.
Core
()
.
V1
()
.
ServiceAccount
())
if
err
:=
servicelb
.
Register
(
ctx
,
if
err
:=
servicelb
.
Register
(
ctx
,
sc
.
K8s
,
sc
.
K8s
,
sc
.
Apply
,
sc
.
Apply
,
...
...
pkg/servicelb/controller.go
View file @
94b5a22d
...
@@ -153,6 +153,10 @@ func (h *handler) onChangeNode(key string, node *core.Node) (*core.Node, error)
...
@@ -153,6 +153,10 @@ func (h *handler) onChangeNode(key string, node *core.Node) (*core.Node, error)
}
}
func
(
h
*
handler
)
updateService
(
svc
*
core
.
Service
)
(
runtime
.
Object
,
error
)
{
func
(
h
*
handler
)
updateService
(
svc
*
core
.
Service
)
(
runtime
.
Object
,
error
)
{
if
!
h
.
enabled
{
return
svc
,
nil
}
pods
,
err
:=
h
.
podCache
.
List
(
svc
.
Namespace
,
labels
.
SelectorFromSet
(
map
[
string
]
string
{
pods
,
err
:=
h
.
podCache
.
List
(
svc
.
Namespace
,
labels
.
SelectorFromSet
(
map
[
string
]
string
{
svcNameLabel
:
svc
.
Name
,
svcNameLabel
:
svc
.
Name
,
}))
}))
...
...
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