fix: cleaning up booleans

This commit is contained in:
Aditya
2024-11-04 13:48:23 +05:30
parent 8c499bddba
commit 294f4de9b8
+2 -2
View File
@@ -464,11 +464,11 @@ func deployk8sApp(image string, identifier string, env []string) error {
} }
*/ */
if (len(localRegistry) == 0 && len(os.Getenv("SHUFFLE_BASE_IMAGE_REGISTRY")) > 0) && !baseDeployMode { if (len(localRegistry) == 0 && len(os.Getenv("SHUFFLE_BASE_IMAGE_REGISTRY")) > 0) && !(baseDeployMode && autoDeployOverride) {
localRegistry = os.Getenv("SHUFFLE_BASE_IMAGE_REGISTRY") localRegistry = os.Getenv("SHUFFLE_BASE_IMAGE_REGISTRY")
} }
if (len(localRegistry) > 0 && strings.Count(image, "/") <= 2) { if (len(localRegistry) > 0 && strings.Count(image, "/") <= 2) && !(baseDeployMode && autoDeployOverride) {
log.Printf("[DEBUG] Using REGISTRY_URL %s", localRegistry) log.Printf("[DEBUG] Using REGISTRY_URL %s", localRegistry)
image = fmt.Sprintf("%s/%s", localRegistry, image) image = fmt.Sprintf("%s/%s", localRegistry, image)
} else { } else {