We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f14e2b commit ebe2d70Copy full SHA for ebe2d70
api/internal/managers/app/config/config.go
@@ -167,14 +167,15 @@ func isItemEnabled(when multitype.QuotedBool) bool {
167
return when != "false"
168
}
169
170
+// isRequiredItem checks if an item is required based on whether Required is true and the item is
171
+// enabled and not hidden
172
func isRequiredItem(item kotsv1beta1.ConfigItem) bool {
173
if !item.Required {
174
return false
175
176
if !isItemEnabled(item.When) {
177
178
- // TODO: should an item really not be required if it's hidden?
179
if item.Hidden {
180
181
0 commit comments