mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Merge pull request #10264 from mikedanese/ca-token
add ca cert to token controller and all service accounts
This commit is contained in:
@@ -157,9 +157,10 @@ func (s *CMServer) Run(_ []string) error {
|
||||
} else {
|
||||
serviceaccount.NewTokensController(
|
||||
kubeClient,
|
||||
serviceaccount.DefaultTokenControllerOptions(
|
||||
serviceaccount.JWTTokenGenerator(privateKey),
|
||||
),
|
||||
serviceaccount.TokensControllerOptions{
|
||||
TokenGenerator: serviceaccount.JWTTokenGenerator(privateKey),
|
||||
RootCA: kubeconfig.CAData,
|
||||
},
|
||||
).Run()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user