mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +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
|
*oldCounters = jobCtx.job.Status
|
||||||
needsFlush = false
|
needsFlush = false
|
||||||
}
|
}
|
||||||
recordJobPodFailurePolicyActions(jobCtx.job, podFailureCountByPolicyAction)
|
recordJobPodFailurePolicyActions(podFailureCountByPolicyAction)
|
||||||
|
|
||||||
jobKey, err := controller.KeyFunc(jobCtx.job)
|
jobKey, err := controller.KeyFunc(jobCtx.job)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -1935,7 +1935,7 @@ func backoffLimitMetricsLabel(job *batch.Job) string {
|
|||||||
return "global"
|
return "global"
|
||||||
}
|
}
|
||||||
|
|
||||||
func recordJobPodFailurePolicyActions(job *batch.Job, podFailureCountByPolicyAction map[string]int) {
|
func recordJobPodFailurePolicyActions(podFailureCountByPolicyAction map[string]int) {
|
||||||
for action, count := range podFailureCountByPolicyAction {
|
for action, count := range podFailureCountByPolicyAction {
|
||||||
metrics.PodFailuresHandledByFailurePolicy.WithLabelValues(action).Add(float64(count))
|
metrics.PodFailuresHandledByFailurePolicy.WithLabelValues(action).Add(float64(count))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user