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

Commit

Permalink
Merge pull request #32 from l0nax/bugfix/27_replaceregistryurl_not_wo…
Browse files Browse the repository at this point in the history
…rking

Fix ReplaceRegistryURL Bug
  • Loading branch information
rimusz authored Oct 15, 2019
2 parents 5e20fe0 + bb63cbb commit 6f47c4b
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 6f47c4b

Please sign in to comment.