Add GetSecretNamesForStack, tidy up GetConfigNamesForStack

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

View File

@ -213,7 +213,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)
}
@ -234,7 +234,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 {
@ -254,11 +254,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,