feat: add GetSecretNamesForStack, tidy up GetConfigNamesForStack
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user