-
Notifications
You must be signed in to change notification settings - Fork 1.2k
This PR fixes issue #4380 where some files failed to preheating successfully when using distributed load with replication configuration. #5666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,7 +94,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
95
to
99
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
65
to
69
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,7 +77,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
78
to
82
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
68
to
72
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,7 +80,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
81
to
85
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,7 +81,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
82
to
86
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,7 +94,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
95
to
99
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,7 +81,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
82
to
86
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,7 +94,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
95
to
99
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,7 +86,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
87
to
91
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,7 +99,7 @@ spec: | |
|
|
||
| {{- $pathReplicas := ""}} | ||
| {{- range .Values.dataloader.targetPaths }} | ||
| {{- $pathReplicas = cat $pathReplicas ( default 1 .replicas ) ":"}} | ||
| {{- $pathReplicas = cat $pathReplicas (default 1 .replicas | int) ":"}} | ||
| {{- end }} | ||
| {{- $pathReplicas = $pathReplicas | nospace | trimSuffix ":"}} | ||
|
Comment on lines
100
to
104
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the current implementation is correct, building the This suggestion can be applied to all other modified files in this PR as they follow the same pattern. {{- $replicas := list -}}
{{- range .Values.dataloader.targetPaths -}}
{{- $replicas = append $replicas (default 1 .replicas | int) -}}
{{- end -}}
{{- $pathReplicas := $replicas | join ":" -}} |
||
| env: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the current implementation is correct, building the
$pathReplicasstring via repeated concatenation inside a loop can be less efficient and harder to read, especially with a large number of paths. A more idiomatic approach in Helm templates is to build a list of values and then join them into a string. This avoids intermediate string manipulation and cleanup steps likenospaceandtrimSuffix, leading to cleaner and more maintainable code.This suggestion can be applied to all other modified files in this PR as they follow the same pattern.