Merge pull request #10264 from mikedanese/ca-token

add ca cert to token controller and all service accounts
This commit is contained in:
Maxwell Forbes
2015-06-25 09:56:35 -07:00
11 changed files with 69 additions and 23 deletions

View File

@@ -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()
}
}