mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #125519 from mimowo/remove-unusued-param
Remove unused parameter in Job controller function
This commit is contained in:
commit
e7d0aaa9e3
@ -1254,7 +1254,7 @@ func (jm *Controller) flushUncountedAndRemoveFinalizers(ctx context.Context, job
|
||||
*oldCounters = jobCtx.job.Status
|
||||
needsFlush = false
|
||||
}
|
||||
recordJobPodFailurePolicyActions(jobCtx.job, podFailureCountByPolicyAction)
|
||||
recordJobPodFailurePolicyActions(podFailureCountByPolicyAction)
|
||||
|
||||
jobKey, err := controller.KeyFunc(jobCtx.job)
|
||||
if err != nil {
|
||||
@ -1935,7 +1935,7 @@ func backoffLimitMetricsLabel(job *batch.Job) string {
|
||||
return "global"
|
||||
}
|
||||
|
||||
func recordJobPodFailurePolicyActions(job *batch.Job, podFailureCountByPolicyAction map[string]int) {
|
||||
func recordJobPodFailurePolicyActions(podFailureCountByPolicyAction map[string]int) {
|
||||
for action, count := range podFailureCountByPolicyAction {
|
||||
metrics.PodFailuresHandledByFailurePolicy.WithLabelValues(action).Add(float64(count))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user