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
99eda24d
Commit
99eda24d
authored
Jun 14, 2018
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apiserver: add context to authn/authz kubeconfig errors
parent
60cd056c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
authentication.go
...src/k8s.io/apiserver/pkg/server/options/authentication.go
+1
-1
authorization.go
.../src/k8s.io/apiserver/pkg/server/options/authorization.go
+2
-1
No files found.
staging/src/k8s.io/apiserver/pkg/server/options/authentication.go
View file @
99eda24d
...
...
@@ -266,7 +266,7 @@ func (s *DelegatingAuthenticationOptions) getRequestHeader() (*RequestHeaderAuth
func
(
s
*
DelegatingAuthenticationOptions
)
lookupInClusterClientCA
()
(
*
ClientCertAuthenticationOptions
,
error
)
{
clientConfig
,
err
:=
s
.
getClientConfig
()
if
err
!=
nil
{
return
nil
,
err
return
nil
,
fmt
.
Errorf
(
"failed to get delegated authentication kubeconfig: %v"
,
err
)
}
client
,
err
:=
coreclient
.
NewForConfig
(
clientConfig
)
if
err
!=
nil
{
...
...
staging/src/k8s.io/apiserver/pkg/server/options/authorization.go
View file @
99eda24d
...
...
@@ -17,6 +17,7 @@ limitations under the License.
package
options
import
(
"fmt"
"time"
"github.com/spf13/pflag"
...
...
@@ -125,7 +126,7 @@ func (s *DelegatingAuthorizationOptions) newSubjectAccessReview() (authorization
clientConfig
,
err
=
rest
.
InClusterConfig
()
}
if
err
!=
nil
{
return
nil
,
err
return
nil
,
fmt
.
Errorf
(
"failed to get delegated authorization kubeconfig: %v"
,
err
)
}
// set high qps/burst limits since this will effectively limit API server responsiveness
...
...
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