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
6860628b
Commit
6860628b
authored
Oct 11, 2017
by
Yang Guan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comments in pkg/kubeapiserver/authenticator/config.go
Make the comments consistent with the function signatures
parent
b5ff25ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
config.go
pkg/kubeapiserver/authenticator/config.go
+3
-3
No files found.
pkg/kubeapiserver/authenticator/config.go
View file @
6860628b
...
...
@@ -235,7 +235,7 @@ func newAuthenticatorFromBasicAuthFile(basicAuthFile string) (authenticator.Requ
return
basicauth
.
New
(
basicAuthenticator
),
nil
}
// newAuthenticatorFromTokenFile returns an authenticator.
Request
or an error
// newAuthenticatorFromTokenFile returns an authenticator.
Token
or an error
func
newAuthenticatorFromTokenFile
(
tokenAuthFile
string
)
(
authenticator
.
Token
,
error
)
{
tokenAuthenticator
,
err
:=
tokenfile
.
NewCSV
(
tokenAuthFile
)
if
err
!=
nil
{
...
...
@@ -245,7 +245,7 @@ func newAuthenticatorFromTokenFile(tokenAuthFile string) (authenticator.Token, e
return
tokenAuthenticator
,
nil
}
// newAuthenticatorFromOIDCIssuerURL returns an authenticator.
Request
or an error.
// newAuthenticatorFromOIDCIssuerURL returns an authenticator.
Token
or an error.
func
newAuthenticatorFromOIDCIssuerURL
(
issuerURL
,
clientID
,
caFile
,
usernameClaim
,
usernamePrefix
,
groupsClaim
,
groupsPrefix
string
)
(
authenticator
.
Token
,
error
)
{
const
noUsernamePrefix
=
"-"
...
...
@@ -278,7 +278,7 @@ func newAuthenticatorFromOIDCIssuerURL(issuerURL, clientID, caFile, usernameClai
return
tokenAuthenticator
,
nil
}
// newServiceAccountAuthenticator returns an authenticator.
Request
or an error
// newServiceAccountAuthenticator returns an authenticator.
Token
or an error
func
newServiceAccountAuthenticator
(
keyfiles
[]
string
,
lookup
bool
,
serviceAccountGetter
serviceaccount
.
ServiceAccountTokenGetter
)
(
authenticator
.
Token
,
error
)
{
allPublicKeys
:=
[]
interface
{}{}
for
_
,
keyfile
:=
range
keyfiles
{
...
...
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