Skip to content

Commit e58c678

Browse files
authored
Add control labels to Agent for N1C (#8068)
1 parent c680eef commit e58c678

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/nginx/manager.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,12 @@ func (lm *LocalManager) AgentStart(agentDone chan error, instanceGroup string) {
634634
fmt.Sprintf("product-type=%s", metadataInfo.ProductType),
635635
fmt.Sprintf("product-version=%s", metadataInfo.ProductVersion),
636636
fmt.Sprintf("cluster-id=%s", metadataInfo.ClusterID),
637-
fmt.Sprintf("installation-name=%s", metadataInfo.InstallationName),
638637
fmt.Sprintf("installation-id=%s", metadataInfo.InstallationID),
639-
fmt.Sprintf("control-id=%s", metadataInfo.InstallationID), // control-id is required but is the same as installation-id
638+
fmt.Sprintf("installation-name=%s", metadataInfo.InstallationName),
640639
fmt.Sprintf("installation-namespace=%s", metadataInfo.InstallationNamespace),
640+
fmt.Sprintf("control-id=%s", metadataInfo.InstallationID), // control-id is required but is the same as installation-id
641+
fmt.Sprintf("control-name=%s", metadataInfo.InstallationName), // control-name is required but is the same as installation-name
642+
fmt.Sprintf("control-namespace=%s", metadataInfo.InstallationNamespace), // control-namespace is required but is the same as installation-namespace
641643
}
642644
metadataLabels := "--labels=" + strings.Join(labels, ",")
643645
args = append(args, metadataLabels)

0 commit comments

Comments
 (0)