Skip to content

Commit

Permalink
fix: ignore when image already contains hash
Browse files Browse the repository at this point in the history
  • Loading branch information
bitofsky committed Mar 17, 2022
1 parent baeda0e commit abbc92c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ func (c *Controller) getImagesFromCurrentWorkload(obj interface{}, key string) (

if !strings.HasPrefix(annotationKey, c.watchKey+"/") { // prefix check
continue
} else if strings.Contains(annotationValue, "@") { // ignore when annotationValue contains @ because it already has image hash
continue
}

keys := strings.SplitN(annotationKey, "/", 2)
Expand Down

0 comments on commit abbc92c

Please sign in to comment.