refactor: resolve circular import
This commit is contained in:
@ -16,6 +16,7 @@ import (
|
||||
|
||||
appPkg "coopcloud.tech/abra/pkg/app"
|
||||
"coopcloud.tech/abra/pkg/client"
|
||||
"coopcloud.tech/abra/pkg/deploy"
|
||||
"coopcloud.tech/abra/pkg/dns"
|
||||
"coopcloud.tech/abra/pkg/formatter"
|
||||
"coopcloud.tech/abra/pkg/i18n"
|
||||
@ -216,7 +217,7 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
||||
// Gather configs
|
||||
|
||||
// Get current configs from existing deployment
|
||||
currentConfigNames, err := client.GetConfigNamesForStack(cl, app)
|
||||
currentConfigNames, err := deploy.GetConfigNamesForStack(cl, app)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
@ -242,7 +243,7 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
||||
newVersion, exists := abraShEnv[versionKey]
|
||||
if !exists {
|
||||
log.Warnf("No version found for config %s", configName)
|
||||
configInfo = append(configInfo, fmt.Sprintf("%s: ? (missing)", configName))
|
||||
configInfo = append(configInfo, fmt.Sprintf("%s: ? (missing version)", configName))
|
||||
continue
|
||||
}
|
||||
|
||||
@ -255,7 +256,7 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
||||
} else {
|
||||
configInfo = append(configInfo, fmt.Sprintf("%s: %s (new)", configName, newVersion))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Gather images
|
||||
|
||||
|
Reference in New Issue
Block a user