Skip to content

Commit 1e272a0

Browse files
committed
add helmfile support
1 parent 607c12a commit 1e272a0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

pkg/list/utils/utils.go

+9-8
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ func CheckComponentExists(atmosConfig *schema.AtmosConfiguration, componentName
4949
continue
5050
}
5151

52-
terraformComponents, ok := componentsMap["terraform"].(map[string]interface{})
53-
if !ok {
54-
continue
55-
}
52+
for _, componentTypeMap := range componentsMap {
53+
typedComponents, ok := componentTypeMap.(map[string]interface{})
54+
if !ok {
55+
continue
56+
}
5657

57-
// Check if the component exists in this stack
58-
_, exists := terraformComponents[componentName]
59-
if exists {
60-
return true
58+
_, exists := typedComponents[componentName]
59+
if exists {
60+
return true
61+
}
6162
}
6263
}
6364

0 commit comments

Comments
 (0)