Commit 521d40a 1 parent ff2063b commit 521d40a Copy full SHA for 521d40a
File tree 1 file changed +6
-1
lines changed
production/helm/loki/templates
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -931,13 +931,18 @@ enableServiceLinks: false
931
931
{ {/* Determine compactor address based on target configuration */} }
932
932
{ {- define " loki.compactorAddress" -} }
933
933
{ {- $isSimpleScalable := eq (include " loki.deployment.isScalable" .) " true" -} }
934
+ { {- $isDistributed := eq (include " loki.deployment.isDistributed" .) " true " -} }
935
+ { {- $isSingleBinary := eq (include " loki.deployment.isSingleBinary" .) " true" -} }
934
936
{ {- $compactorAddress := include " loki.backendFullname" . -} }
935
937
{ {- if and $isSimpleScalable .Values.read.legacyReadTarget -} }
936
938
{ {/* 2 target configuration */} }
937
939
{ {- $compactorAddress = include " loki.readFullname" . -} }
938
- { {- else if ( not $ isSimpleScalable ) -} }
940
+ { {- else if $ isSingleBinary -} }
939
941
{ {/* single binary */} }
940
942
{ {- $compactorAddress = include " loki.singleBinaryFullname" . -} }
943
+ { {/* distributed */} }
944
+ { {- else if $isDistributed -} }
945
+ { {- $compactorAddress = include " loki.compactorFullname" . -} }
941
946
{ {- end -} }
942
947
{ {- printf " http://%s:%s" $compactorAddress (.Values.loki.server.http_listen_port | toString) } }
943
948
{ {- end } }
You can’t perform that action at this time.
0 commit comments