Skip to content

Commit

Permalink
pass extraPodAnnotations everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kruftik committed Apr 2, 2024
1 parent 85b310e commit 374c322
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/components/controller_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewControllerAgent(cfgen *ytconfig.Generator, ytsaurus *apiproxy.Ytsaurus,
&resource.ObjectMeta,
consts.ControllerAgentType,
consts.YTComponentLabelControllerAgent,
map[string]string{},
ytsaurus.GetCommonSpec().ExtraPodAnnotations,
)

if resource.Spec.ControllerAgents.InstanceSpec.MonitoringPort == nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/data_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewDataNode(
consts.DataNodeType,
consts.YTComponentLabelDataNode,
spec.Name,
map[string]string{},
ytsaurus.GetCommonSpec().ExtraPodAnnotations,
)

if spec.InstanceSpec.MonitoringPort == nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewDiscovery(cfgen *ytconfig.Generator, ytsaurus *apiproxy.Ytsaurus) *Disco
&resource.ObjectMeta,
consts.DiscoveryType,
consts.YTComponentLabelDiscovery,
map[string]string{},
ytsaurus.GetCommonSpec().ExtraPodAnnotations,
)

if resource.Spec.Discovery.InstanceSpec.MonitoringPort == nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/exec_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewExecNode(
consts.ExecNodeType,
consts.YTComponentLabelExecNode,
spec.Name,
map[string]string{},
ytsaurus.GetCommonSpec().ExtraPodAnnotations,
)

if spec.InstanceSpec.MonitoringPort == nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/exec_node_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewRemoteExecNodes(
consts.ExecNodeType,
consts.YTComponentLabelExecNode,
spec.Name,
map[string]string{},
commonSpec.ExtraPodAnnotations,
)
if spec.InstanceSpec.MonitoringPort == nil {
spec.InstanceSpec.MonitoringPort = ptr.Int32(consts.ExecNodeMonitoringPort)
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/httpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewHTTPProxy(
consts.HttpProxyType,
consts.YTComponentLabelHTTPProxy,
spec.Role,
map[string]string{},
ytsaurus.GetCommonSpec().ExtraPodAnnotations,
)

if spec.InstanceSpec.MonitoringPort == nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/rpcproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewRPCProxy(
consts.RpcProxyType,
consts.YTComponentLabelRPCProxy,
spec.Role,
map[string]string{},
ytsaurus.GetCommonSpec().ExtraPodAnnotations,
)

if spec.InstanceSpec.MonitoringPort == nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/tcpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func NewTCPProxy(
consts.TcpProxyType,
consts.YTComponentLabelTCPProxy,
spec.Role,
map[string]string{},
ytsaurus.GetCommonSpec().ExtraPodAnnotations,
)

if spec.InstanceSpec.MonitoringPort == nil {
Expand Down

0 comments on commit 374c322

Please sign in to comment.