Skip to content

Commit

Permalink
use labelComponentUploadJob instead of "upload-job"
Browse files Browse the repository at this point in the history
Signed-off-by: Ryotaro Banno <[email protected]>
  • Loading branch information
ushitora-anqou committed Nov 5, 2024
1 parent ba9c162 commit 7cf0f16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/controller/mantlebackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const (
labelAppNameValue = "mantle"
labelComponentExportData = "export-data"
labelComponentExportJob = "export-job"
labelComponentUploadJob = "upload-job"
annotRemoteUID = "mantle.cybozu.io/remote-uid"
annotDiffFrom = "mantle.cybozu.io/diff-from"
annotDiffTo = "mantle.cybozu.io/diff-to"
Expand Down Expand Up @@ -1308,7 +1309,7 @@ func (r *MantleBackupReconciler) createOrUpdateExportDataUploadJob(ctx context.C
labels = map[string]string{}
}
labels["app.kubernetes.io/name"] = labelAppNameValue
labels["app.kubernetes.io/component"] = "upload-job"
labels["app.kubernetes.io/component"] = labelComponentUploadJob
job.SetLabels(labels)

var backoffLimit int32 = 65535
Expand Down

0 comments on commit 7cf0f16

Please sign in to comment.