mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 18:09:57 +00:00
Change the component name to klusterlet-agent (#809)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user