update dependencies

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-12-22 16:48:26 +08:00
parent 4a11a50544
commit fe6c5de00f
2857 changed files with 252134 additions and 115656 deletions

View File

@@ -17,8 +17,10 @@ limitations under the License.
package job
import (
"context"
"encoding/json"
"fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"reflect"
batchv1 "k8s.io/api/batch/v1"
@@ -234,7 +236,7 @@ func (v *JobController) makeRevision(job *batchv1.Job) error {
}
job.Annotations[revisionsAnnotationKey] = string(revisionsByte)
_, err = v.client.BatchV1().Jobs(job.Namespace).Update(job)
_, err = v.client.BatchV1().Jobs(job.Namespace).Update(context.Background(), job, metav1.UpdateOptions{})
if err != nil {
return err