Compare commits

...

2 Commits

Author SHA1 Message Date
roxxers 6f0eff5919 Merge pull request 'fix: abra app rm trying to remove secrets twice' (#50) from knoflook/go-abra:main into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: coop-cloud/go-abra#50
2021-08-12 13:22:04 +00:00
knoflook cefad74e22
fix: app rm removing secrets and volumes twice
continuous-integration/drone/pr Build is passing Details
2021-08-12 12:59:11 +02:00
1 changed files with 4 additions and 4 deletions

View File

@ -79,14 +79,14 @@ var appRemoveCommand = &cli.Command{
}
secrets := make(map[string]string)
secretNames := []string{}
var secretNames []string
for _, cont := range secretList {
secrets[cont.Spec.Annotations.Name] = cont.ID // we have to map the names to ID's
secretNames = append(secretNames, cont.Spec.Annotations.Name)
}
secretNamesToRemove := secretNames
var secretNamesToRemove []string
if !internal.Force {
secretsPrompt := &survey.MultiSelect{
Message: "Which secrets do you want to remove?",
@ -116,13 +116,13 @@ var appRemoveCommand = &cli.Command{
logrus.Fatal(err)
}
vols := []string{}
var vols []string
for _, vol := range volumeList {
vols = append(vols, vol.Name)
}
if Volumes {
removeVols := vols
var removeVols []string
if !internal.Force {
volumesPrompt := &survey.MultiSelect{
Message: "Which volumes do you want to remove?",