Skip to content

Commit

Permalink
dirty hack to get latest to run, #11
Browse files Browse the repository at this point in the history
  • Loading branch information
sebgoa committed Oct 17, 2016
1 parent 7077b55 commit 46cda53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion worker/canary.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,14 @@ func (dcc *DeploymentCanaryController) Check() error {

// get image latest tag
latest := image.GetLatestTag()
log.Infof("Latest tag found to be '%s' ", latest)

if latest == "" {
latest = "latest"
}

if it[1] == latest {
log.Debugf("image '%s' is already using the latet version", it)
log.Debugf("image '%s' is already using the latest version", it)
continue
}

Expand Down

0 comments on commit 46cda53

Please sign in to comment.