Skip to content

Commit eba9651

Browse files
committed
Add cluster_name as tag
1 parent d0ff10a commit eba9651

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkg/remoteconfig/updater.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,13 @@ func (r *RemoteConfigUpdater) Start(apiKey string, site string, clusterName stri
186186
}
187187
r.rcService = rcService
188188

189+
updaterTags := []string{}
190+
if r.serviceConf.clusterName != "" {
191+
updaterTags = append(updaterTags, "cluster_name:"+r.serviceConf.clusterName)
192+
}
189193
rcClient, err := client.NewClient(
190194
rcService,
191-
client.WithUpdater(),
195+
client.WithUpdater(updaterTags...),
192196
client.WithProducts(state.ProductAgentConfig, state.ProductOrchestratorK8sCRDs),
193197
client.WithDirectorRootOverride(r.serviceConf.cfg.GetString("site"), r.serviceConf.cfg.GetString("remote_configuration.director_root")),
194198
client.WithPollInterval(pollInterval),

0 commit comments

Comments
 (0)