Unverified Commit 4fb52f73 authored by Di Xu's avatar Di Xu Committed by GitHub
Browse files

fix variable typo in agent deployer (#117)

parent 071e2c95
Showing with 2 additions and 2 deletions
+2 -2
......@@ -88,7 +88,7 @@ func (d *Deployer) Run(ctx context.Context, parentDedicatedKubeConfig *rest.Conf
if d.syncMode == clusterapi.Pull || (d.syncMode == clusterapi.Dual && !d.appPusherEnabled) {
appDeployerConfig, err := utils.GenerateKubeConfigFromToken(d.childAPIServerURL,
string(appDeployerSecret.Data[corev1.ServiceAccountTokenKey]),
appDeployerSecret.Data[corev1.ServiceAccountTokenKey], 1)
appDeployerSecret.Data[corev1.ServiceAccountRootCAKey], 1)
if err != nil {
return err
}
......@@ -99,7 +99,7 @@ func (d *Deployer) Run(ctx context.Context, parentDedicatedKubeConfig *rest.Conf
deployCtx, err := utils.NewDeployContext(utils.CreateKubeConfigWithToken(d.childAPIServerURL,
string(appDeployerSecret.Data[corev1.ServiceAccountTokenKey]),
appDeployerSecret.Data[corev1.ServiceAccountTokenKey]))
appDeployerSecret.Data[corev1.ServiceAccountRootCAKey]))
if err != nil {
return err
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment