diff --git a/cmd/kubenab/admissions.go b/cmd/kubenab/admissions.go index bd63cc6..62b534d 100644 --- a/cmd/kubenab/admissions.go +++ b/cmd/kubenab/admissions.go @@ -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