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

Commit

Permalink
Fix nested images
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Jul 1, 2022
1 parent af7282d commit 7c3709e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/appdefinition/acorn.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func toPublishPortBinding(portDef v1.PortDef) v1.PortBinding {
}

func toAcorn(appInstance *v1.AppInstance, tag name.Reference, pullSecrets *PullSecrets, acornName string, acorn v1.Acorn) *v1.AppInstance {
image := resolveTagForAcorn(tag, appInstance.Namespace, acorn.Image)
image := resolveTagForAcorn(tag, appInstance.Labels[labels.AcornRootNamespace], acorn.Image)

// Ensure secret gets copied
pullSecrets.ForAcorn(acornName, image)
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/appdefinition/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func DeploySpec(req router.Request, resp router.Response) (err error) {
}
}()

tag, err := pull.GetTag(req.Ctx, req.Client, appInstance.Namespace, appInstance.Spec.Image)
tag, err := pull.GetTag(req.Ctx, req.Client, appInstance.Labels[labels.AcornRootNamespace], appInstance.Spec.Image)
if err != nil {
return err
}
Expand Down

0 comments on commit 7c3709e

Please sign in to comment.