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
2cc178ad
Unverified
Commit
2cc178ad
authored
May 15, 2018
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Specify DHCP domain for hostname"
This reverts commit
da5ccf7f
.
parent
8063774f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
openstack.go
pkg/cloudprovider/providers/openstack/openstack.go
+0
-3
openstack_instances.go
pkg/cloudprovider/providers/openstack/openstack_instances.go
+0
-4
No files found.
pkg/cloudprovider/providers/openstack/openstack.go
View file @
2cc178ad
...
...
@@ -121,7 +121,6 @@ type RouterOpts struct {
type
MetadataOpts
struct
{
SearchOrder
string
`gcfg:"search-order"`
RequestTimeout
MyDuration
`gcfg:"request-timeout"`
DHCPDomain
string
`gcfg:"dhcp-domain"`
}
// OpenStack is an implementation of cloud provider Interface for OpenStack.
...
...
@@ -234,7 +233,6 @@ func configFromEnv() (cfg Config, ok bool) {
cfg
.
Global
.
TrustID
!=
""
)
cfg
.
Metadata
.
SearchOrder
=
fmt
.
Sprintf
(
"%s,%s"
,
configDriveID
,
metadataID
)
cfg
.
Metadata
.
DHCPDomain
=
"novalocal"
cfg
.
BlockStorage
.
BSVersion
=
"auto"
return
...
...
@@ -252,7 +250,6 @@ func readConfig(config io.Reader) (Config, error) {
cfg
.
BlockStorage
.
TrustDevicePath
=
false
cfg
.
BlockStorage
.
IgnoreVolumeAZ
=
false
cfg
.
Metadata
.
SearchOrder
=
fmt
.
Sprintf
(
"%s,%s"
,
configDriveID
,
metadataID
)
cfg
.
Metadata
.
DHCPDomain
=
"novalocal"
err
:=
gcfg
.
ReadInto
(
&
cfg
,
config
)
return
cfg
,
err
...
...
pkg/cloudprovider/providers/openstack/openstack_instances.go
View file @
2cc178ad
...
...
@@ -61,10 +61,6 @@ func (i *Instances) CurrentNodeName(ctx context.Context, hostname string) (types
if
err
!=
nil
{
return
""
,
err
}
domain
:=
"."
+
i
.
opts
.
DHCPDomain
if
i
.
opts
.
DHCPDomain
!=
""
&&
strings
.
HasSuffix
(
md
.
Hostname
,
domain
)
{
return
types
.
NodeName
(
strings
.
TrimSuffix
(
md
.
Hostname
,
domain
)),
nil
}
return
types
.
NodeName
(
strings
.
Split
(
md
.
Hostname
,
"."
)[
0
]),
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