Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Tke
Commits
c446a1e1
Commit
c446a1e1
authored
5 years ago
by
QianChenglong
Browse files
Options
Download
Email Patches
Plain Diff
fix: provider config when use thirdparty registry
parent
8f92a293
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/tke-installer/app/installer/installer.go
+10
-9
cmd/tke-installer/app/installer/installer.go
with
10 additions
and
9 deletions
+10
-9
cmd/tke-installer/app/installer/installer.go
+
10
-
9
View file @
c446a1e1
...
...
@@ -889,11 +889,14 @@ func (t *TKE) completeProviderConfigForRegistry() error {
return
err
}
c
.
Registry
.
Prefix
=
t
.
Para
.
Config
.
Registry
.
Prefix
()
ip
,
err
:=
util
.
GetExternalIP
()
if
err
!=
nil
{
return
pkgerrors
.
Wrap
(
err
,
"get external ip error"
)
if
t
.
Para
.
Config
.
Registry
.
TKERegistry
!=
nil
{
ip
,
err
:=
util
.
GetExternalIP
()
if
err
!=
nil
{
return
pkgerrors
.
Wrap
(
err
,
"get external ip error"
)
}
c
.
Registry
.
IP
=
ip
}
c
.
Registry
.
IP
=
ip
return
c
.
Save
(
pluginConfigFile
)
}
...
...
@@ -1106,11 +1109,9 @@ func (t *TKE) prepareFrontProxyCertificates() error {
}
func
(
t
*
TKE
)
createGlobalCluster
()
error
{
if
t
.
Para
.
Config
.
Registry
.
TKERegistry
!=
nil
{
err
:=
t
.
completeProviderConfigForRegistry
()
if
err
!=
nil
{
return
err
}
err
:=
t
.
completeProviderConfigForRegistry
()
if
err
!=
nil
{
return
err
}
// do again like platform controller
...
...
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
Menu
Projects
Groups
Snippets
Help