Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clusternet
Commits
4fb52f73
Unverified
Commit
4fb52f73
authored
3 years ago
by
Di Xu
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix variable typo in agent deployer (#117)
parent
071e2c95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/agent/deployer/deployer.go
+2
-2
pkg/agent/deployer/deployer.go
with
2 additions
and
2 deletions
+2
-2
pkg/agent/deployer/deployer.go
+
2
-
2
View file @
4fb52f73
...
...
@@ -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
.
ServiceAccount
Token
Key
],
1
)
appDeployerSecret
.
Data
[
corev1
.
ServiceAccount
RootCA
Key
],
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
.
ServiceAccount
Token
Key
]))
appDeployerSecret
.
Data
[
corev1
.
ServiceAccount
RootCA
Key
]))
if
err
!=
nil
{
return
err
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment