Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Pass proper profiles when looking up the image details
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Shepherd <darren@acorn.io>
  • Loading branch information
ibuildthecloud committed Aug 3, 2023
1 parent 366ed43 commit 8a46661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/registry/apigroups/acorn/apps/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (s *Validator) Validate(ctx context.Context, obj runtime.Object) (result fi
}
}

imageDetails, err := s.getImageDetails(ctx, app.Namespace, app.Spec.Profiles, app.Spec.DeployArgs, image, "")
imageDetails, err := s.getImageDetails(ctx, app.Namespace, app.Spec.GetProfiles(app.Status.GetDevMode()), app.Spec.DeployArgs, image, "")
if err != nil {
result = append(result, field.Invalid(field.NewPath("spec", "image"), app.Spec.Image, err.Error()))
return
Expand Down

0 comments on commit 8a46661

Please sign in to comment.