mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Remove unused parameter in Job controller function
This commit is contained in:
parent
e6616033cb
commit
18a14bcff9
@ -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