mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +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
|
*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