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
07262901
Commit
07262901
authored
May 30, 2018
by
Guoliang Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused functions in cmd
parent
15cd3552
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
wait.go
cmd/kubeadm/app/util/apiclient/wait.go
+0
-14
globalflags.go
cmd/kubelet/app/options/globalflags.go
+0
-6
No files found.
cmd/kubeadm/app/util/apiclient/wait.go
View file @
07262901
...
@@ -211,20 +211,6 @@ func (w *KubeWaiter) WaitForStaticPodHashChange(nodeName, component, previousHas
...
@@ -211,20 +211,6 @@ func (w *KubeWaiter) WaitForStaticPodHashChange(nodeName, component, previousHas
})
})
}
}
// getStaticPodControlPlaneHashes computes hashes for all the control plane's Static Pod resources
func
getStaticPodControlPlaneHashes
(
client
clientset
.
Interface
,
nodeName
string
)
(
map
[
string
]
string
,
error
)
{
mirrorPodHashes
:=
map
[
string
]
string
{}
for
_
,
component
:=
range
constants
.
MasterComponents
{
hash
,
err
:=
getStaticPodSingleHash
(
client
,
nodeName
,
component
)
if
err
!=
nil
{
return
nil
,
err
}
mirrorPodHashes
[
component
]
=
hash
}
return
mirrorPodHashes
,
nil
}
// getStaticSinglePodHash computes hashes for a single Static Pod resource
// getStaticSinglePodHash computes hashes for a single Static Pod resource
func
getStaticPodSingleHash
(
client
clientset
.
Interface
,
nodeName
string
,
component
string
)
(
string
,
error
)
{
func
getStaticPodSingleHash
(
client
clientset
.
Interface
,
nodeName
string
,
component
string
)
(
string
,
error
)
{
...
...
cmd/kubelet/app/options/globalflags.go
View file @
07262901
...
@@ -78,12 +78,6 @@ func registerDeprecated(global *flag.FlagSet, local *pflag.FlagSet, globalName,
...
@@ -78,12 +78,6 @@ func registerDeprecated(global *flag.FlagSet, local *pflag.FlagSet, globalName,
local
.
Lookup
(
normalize
(
globalName
))
.
Deprecated
=
deprecated
local
.
Lookup
(
normalize
(
globalName
))
.
Deprecated
=
deprecated
}
}
// pflagRegisterDeprecated registers the flag with pflagRegister, and then marks it deprecated
func
pflagRegisterDeprecated
(
global
,
local
*
pflag
.
FlagSet
,
globalName
,
deprecated
string
)
{
pflagRegister
(
global
,
local
,
globalName
)
local
.
Lookup
(
normalize
(
globalName
))
.
Deprecated
=
deprecated
}
// addCredentialProviderFlags adds flags from k8s.io/kubernetes/pkg/credentialprovider
// addCredentialProviderFlags adds flags from k8s.io/kubernetes/pkg/credentialprovider
func
addCredentialProviderFlags
(
fs
*
pflag
.
FlagSet
)
{
func
addCredentialProviderFlags
(
fs
*
pflag
.
FlagSet
)
{
// lookup flags in global flag set and re-register the values with our flagset
// lookup flags in global flag set and re-register the values with our flagset
...
...
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