Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Fix ReplaceRegistryURL Bug
Browse files Browse the repository at this point in the history
I'm verry sorry that I have overseen that.
---

This Patch fixes the Bug described in #27.
  • Loading branch information
l0nax committed Oct 15, 2019
1 parent 5e20fe0 commit bb63cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubenab/admissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func handleContainer(container *v1.Container, dockerRegistryUrl string) bool {

// pre-pend new Docker Registry Domain
repRegUrl, _ := strconv.ParseBool(replaceRegistryUrl) // we do not need to check for errors here, since we have done this already in checkArguments()
if (len(imageParts) < 3) || repRegUrl {
if (len(imageParts) < 3) || !repRegUrl {
newImage = dockerRegistryUrl + "/" + container.Image
} else {
imageParts[0] = dockerRegistryUrl
Expand Down

0 comments on commit bb63cbb

Please sign in to comment.