Change the component name to klusterlet-agent (#809)

Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
Jian Qiu
2025-01-17 18:34:11 +08:00
committed by GitHub
parent 54a99fe880
commit d323b60253
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ func NewKlusterletAgentCmd() *cobra.Command {
agentConfig := singletonspoke.NewAgentConfig(commonOptions, registrationOption, workOptions, cancel)
cmdConfig := commonOptions.CommonOpts.
NewControllerCommandConfig("klusterlet", version.Get(), agentConfig.RunSpokeAgent).
NewControllerCommandConfig("klusterlet-agent", version.Get(), agentConfig.RunSpokeAgent).
WithHealthChecks(agentConfig.HealthCheckers()...)
cmd := cmdConfig.NewCommandWithContext(ctx)
cmd.Use = agentCmdName

View File

@@ -33,8 +33,8 @@ func RenderBootstrapHubKubeConfig(
ServiceAccounts(bootstrapSANamespace).
CreateToken(ctx, bootstrapSAName, &authv1.TokenRequest{
Spec: authv1.TokenRequestSpec{
// token expired in 1 hour
ExpirationSeconds: ptr.To[int64](3600),
// token expired in 24 hours
ExpirationSeconds: ptr.To[int64](24 * 3600),
},
}, metav1.CreateOptions{})
if err != nil {