Skip to content

Commit

Permalink
fix image name annotation handling (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Iqbal Ali authored Mar 13, 2019
1 parent cede927 commit c229a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/handler/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r ResourceCreatedHandler) Handle(conf config.Config, resourceType string)
}
}

if annotations[constants.ImageNameAnnotation] != "" {
if annotations[constants.ImageNameAnnotation] == "" {
annotations[constants.ImageNameAnnotation] = conf.GatekeeperImage
}

Expand Down

0 comments on commit c229a50

Please sign in to comment.