Skip to content

Commit

Permalink
client: update node metadata to match app name and Nomad standard.
Browse files Browse the repository at this point in the history
The metadata relates to the nodesim application, therefore this
change modifies the metadata prefix to match. Nomad also typically
uses dots for metadata partioning, so we use that format too.
  • Loading branch information
jrasell committed Mar 27, 2024
1 parent b1f5c1c commit 82309b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ func startClient(logger hclog.Logger, buildInfo *internalSimnode.BuildInfo, cfg
Reserved: &structs.Resources{},
Links: map[string]string{},
Meta: map[string]string{
"simnode_id": cfg.NodeNamePrefix,
"simnode_enabled": "true",
"simnode_version": buildInfo.Version,
"simnode_sum": buildInfo.Sum,
"nodesim.id": cfg.NodeNamePrefix,
"nodesim.enabled": "true",
"nodesim.version": buildInfo.Version,
"nodesim.sum": buildInfo.Sum,
},
CSIControllerPlugins: make(map[string]*structs.CSIInfo),
CSINodePlugins: make(map[string]*structs.CSIInfo),
Expand Down

0 comments on commit 82309b5

Please sign in to comment.