Skip to content

Commit

Permalink
[k8s] Add additional_clusters in yql agent config
Browse files Browse the repository at this point in the history
  • Loading branch information
savnadya committed Jul 17, 2023
1 parent 3e1dbe1 commit 45b3e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/ytconfig/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (g *Generator) GetYQLAgentConfig() ([]byte, error) {
return nil, err
}
g.fillCommonService(&c.CommonServer)
c.YQLAgent.Clusters = map[string]string{
c.YQLAgent.AdditionalClusters = map[string]string{
g.ytsaurus.Name: g.GetHTTPProxiesServiceAddress(consts.DefaultHTTPProxyRole),
}
c.YQLAgent.DefaultCluster = g.ytsaurus.Name
Expand Down
4 changes: 2 additions & 2 deletions pkg/ytconfig/yql_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ type YQLEmbedded struct {

type YQLAgent struct {
YQLEmbedded
Clusters map[string]string `yson:"clusters"`
DefaultCluster string `yson:"default_cluster"`
AdditionalClusters map[string]string `yson:"additional_clusters"`
DefaultCluster string `yson:"default_cluster"`
}

type YQLAgentServer struct {
Expand Down

0 comments on commit 45b3e0a

Please sign in to comment.