Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cjc7373 committed Oct 11, 2024
1 parent 0f2558b commit 916749b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions pkg/dataprotection/restore/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,13 @@ func (r *restoreJobBuilder) build() *batchv1.Job {
// expand the image value with the env variables.
image := common.Expand(r.image, common.MappingFuncFor(utils.CovertEnvToMap(r.env)))
container := corev1.Container{
Name: Restore,
Resources: r.restore.Spec.ContainerResources,
Env: r.env,
EnvFrom: r.envFrom,
VolumeMounts: r.specificVolumeMounts,
Command: r.command,
Args: r.args,
// expand the image value with the env variables.
Name: Restore,
Resources: r.restore.Spec.ContainerResources,
Env: r.env,
EnvFrom: r.envFrom,
VolumeMounts: r.specificVolumeMounts,
Command: r.command,
Args: r.args,
Image: intctrlutil.ReplaceImageRegistry(image),
ImagePullPolicy: corev1.PullIfNotPresent,
}
Expand Down

0 comments on commit 916749b

Please sign in to comment.