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

Commit

Permalink
change: cosmetic changes as per pr review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Thorsten Klein <[email protected]>
  • Loading branch information
iwilltry42 committed Oct 12, 2023
1 parent 0bb78eb commit 1f59494
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func TestImageRoleAuthorizationConsumerPerms(t *testing.T) {
return obj.Status.Staged.PermissionsChecked
})

require.Equal(t, 1, len(serviceAcorn.Status.Staged.ImagePermissionsDenied), "should have 0 denied permissions")
require.Equal(t, 1, len(serviceAcorn.Status.Staged.ImagePermissionsDenied), "should have 1 denied permissions")

// Create IRA to allow service Acorn to have the permissions
ira := &adminv1.ImageRoleAuthorization{
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/appdefinition/depends.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ func getDependencyAnnotations(app *v1.AppInstance, containerOrJobName string, de
}
}

consumerpermsok := len(app.Status.DeniedConsumerPermissions) == 0
consumerPermsOk := len(app.Status.DeniedConsumerPermissions) == 0

if !allReady || !consumerpermsok {
if !allReady || !consumerPermsOk {
result[apply.AnnotationCreate] = "false"
if !app.GetStopped() {
result[apply.AnnotationUpdate] = "false"
Expand Down
1 change: 0 additions & 1 deletion pkg/controller/appdefinition/pullappimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type pullClient struct {
pull pullImageFunc
}

// pullAppImage
func pullAppImage(transport http.RoundTripper, client pullClient) router.HandlerFunc {
// NOTE: It is important that this logic does not interact with status.AppImage but instead
// status.Staged.AppImage
Expand Down

0 comments on commit 1f59494

Please sign in to comment.