Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
4dbc532c
Commit
4dbc532c
authored
Nov 08, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Nov 08, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #33568 from justinsb/fix_33563
Automatic merge from submit-queue AWS: Support default value for ExternalHost
parents
d87dfa27
2c7771e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config.go
pkg/genericapiserver/config.go
+2
-2
No files found.
pkg/genericapiserver/config.go
View file @
4dbc532c
...
@@ -493,14 +493,14 @@ func DefaultAndValidateRunOptions(options *options.ServerRunOptions) {
...
@@ -493,14 +493,14 @@ func DefaultAndValidateRunOptions(options *options.ServerRunOptions) {
// Set default value for ExternalAddress if not specified.
// Set default value for ExternalAddress if not specified.
if
len
(
options
.
ExternalHost
)
==
0
{
if
len
(
options
.
ExternalHost
)
==
0
{
// TODO: extend for other providers
// TODO: extend for other providers
if
options
.
CloudProvider
==
"gce"
{
if
options
.
CloudProvider
==
"gce"
||
options
.
CloudProvider
==
"aws"
{
cloud
,
err
:=
cloudprovider
.
InitCloudProvider
(
options
.
CloudProvider
,
options
.
CloudConfigFile
)
cloud
,
err
:=
cloudprovider
.
InitCloudProvider
(
options
.
CloudProvider
,
options
.
CloudConfigFile
)
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"Cloud provider could not be initialized: %v"
,
err
)
glog
.
Fatalf
(
"Cloud provider could not be initialized: %v"
,
err
)
}
}
instances
,
supported
:=
cloud
.
Instances
()
instances
,
supported
:=
cloud
.
Instances
()
if
!
supported
{
if
!
supported
{
glog
.
Fatalf
(
"
GCE cloud provider has no instances. this shouldn't happen. exiting."
)
glog
.
Fatalf
(
"
%q cloud provider has no instances. this shouldn't happen. exiting."
,
options
.
CloudProvider
)
}
}
hostname
,
err
:=
os
.
Hostname
()
hostname
,
err
:=
os
.
Hostname
()
if
err
!=
nil
{
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
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