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
ceb00add
Commit
ceb00add
authored
Aug 29, 2016
by
Michael Taufen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make kubeletConfiguration field on Kubelet struct a value type
parent
79c7d4b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
kubelet.go
pkg/kubelet/kubelet.go
+4
-4
No files found.
pkg/kubelet/kubelet.go
View file @
ceb00add
...
@@ -179,7 +179,7 @@ type Option func(*Kubelet)
...
@@ -179,7 +179,7 @@ type Option func(*Kubelet)
// bootstrapping interface for kubelet, targets the initialization protocol
// bootstrapping interface for kubelet, targets the initialization protocol
type
KubeletBootstrap
interface
{
type
KubeletBootstrap
interface
{
GetConfiguration
()
*
componentconfig
.
KubeletConfiguration
GetConfiguration
()
componentconfig
.
KubeletConfiguration
BirthCry
()
BirthCry
()
StartGarbageCollection
()
StartGarbageCollection
()
ListenAndServe
(
address
net
.
IP
,
port
uint
,
tlsOptions
*
server
.
TLSOptions
,
auth
server
.
AuthInterface
,
enableDebuggingHandlers
bool
)
ListenAndServe
(
address
net
.
IP
,
port
uint
,
tlsOptions
*
server
.
TLSOptions
,
auth
server
.
AuthInterface
,
enableDebuggingHandlers
bool
)
...
@@ -745,7 +745,7 @@ func NewMainKubelet(kubeCfg *componentconfig.KubeletConfiguration, kubeDeps *Kub
...
@@ -745,7 +745,7 @@ func NewMainKubelet(kubeCfg *componentconfig.KubeletConfiguration, kubeDeps *Kub
// Finally, put the most recent version of the config on the Kubelet, so
// Finally, put the most recent version of the config on the Kubelet, so
// people can see how it was configured.
// people can see how it was configured.
klet
.
kubeletConfiguration
=
kubeCfg
klet
.
kubeletConfiguration
=
*
kubeCfg
return
klet
,
nil
return
klet
,
nil
}
}
...
@@ -759,7 +759,7 @@ type nodeLister interface {
...
@@ -759,7 +759,7 @@ type nodeLister interface {
// Kubelet is the main kubelet implementation.
// Kubelet is the main kubelet implementation.
type
Kubelet
struct
{
type
Kubelet
struct
{
kubeletConfiguration
*
componentconfig
.
KubeletConfiguration
kubeletConfiguration
componentconfig
.
KubeletConfiguration
hostname
string
hostname
string
nodeName
string
nodeName
string
...
@@ -3043,7 +3043,7 @@ func (kl *Kubelet) PortForward(podFullName string, podUID types.UID, port uint16
...
@@ -3043,7 +3043,7 @@ func (kl *Kubelet) PortForward(podFullName string, podUID types.UID, port uint16
}
}
// GetConfiguration returns the KubeletConfiguration used to configure the kubelet.
// GetConfiguration returns the KubeletConfiguration used to configure the kubelet.
func
(
kl
*
Kubelet
)
GetConfiguration
()
*
componentconfig
.
KubeletConfiguration
{
func
(
kl
*
Kubelet
)
GetConfiguration
()
componentconfig
.
KubeletConfiguration
{
return
kl
.
kubeletConfiguration
return
kl
.
kubeletConfiguration
}
}
...
...
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