feat: add GetSecretNamesForStack, tidy up GetConfigNamesForStack

This commit is contained in:
3wc
2025-09-02 11:32:37 -04:00
parent f3edfea744
commit c2848cb3ec
3 changed files with 38 additions and 8 deletions

View File

@ -216,7 +216,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, context.Background(), app.StackName())
currentConfigNames, err := client.GetConfigNamesForStack(cl, app)
if err != nil {
log.Fatal(err)
}
@ -237,7 +237,7 @@ checkout as-is. Recipe commit hashes are also supported as values for
var configInfo []string
for configName := range newConfigs {
log.Debugf("Searching for abra.sh version for %s", configName)
log.Debugf("Searching abra.sh for version for %s", configName)
versionKey := strings.ToUpper(configName) + "_VERSION"
newVersion, exists := abraShEnv[versionKey]
if !exists {
@ -257,11 +257,15 @@ checkout as-is. Recipe commit hashes are also supported as values for
}
}
// Gather images
var imageInfo []string
for _, service := range compose.Services {
imageInfo = append(imageInfo, fmt.Sprintf("%s: %s", service.Name, service.Image))
}
// Show deploy overview
if err := internal.DeployOverview(
app,
deployedVersion,