mirror of
https://github.com/outbackdingo/talos-cloud-controller-manager.git
synced 2026-01-27 18:20:23 +00:00
fix: hostname in transformation rules
The hostname is very important for transformation rules. It should be set if the metaserver returns an empty string. Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev>
This commit is contained in:
@@ -139,6 +139,10 @@ func (i *instances) InstanceMetadata(ctx context.Context, node *v1.Node) (*cloud
|
||||
}
|
||||
}
|
||||
|
||||
if meta.Hostname == "" {
|
||||
meta.Hostname = node.Name
|
||||
}
|
||||
|
||||
var sysInfo *hardware.SystemInformationSpec
|
||||
|
||||
if len(i.c.config.Transformations) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user