Skip to content

Commit

Permalink
Merge pull request #180 from vshn/psql/fix_copy_job
Browse files Browse the repository at this point in the history
Fix bug in copyjob
  • Loading branch information
TheBigLee authored Jun 17, 2024
2 parents f1e806c + 6c82fda commit e9325cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func DeployPostgreSQL(ctx context.Context, svc *runtime.ServiceRuntime) *xfnprot
return runtime.NewWarningResult(fmt.Errorf("cannot create podMonitor object: %w", err).Error())
}

if comp.Spec.Parameters.Restore != nil {
if comp.Spec.Parameters.Restore != nil && comp.Spec.Parameters.Restore.BackupName != "" && comp.Spec.Parameters.Restore.ClaimName != "" {
l.Info("Create copy job")
err = createCopyJob(comp, svc)
if err != nil {
Expand Down

0 comments on commit e9325cc

Please sign in to comment.