diff --git a/pkg/app/app.go b/pkg/app/app.go index f1118ec14..5b5a19e7b 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -181,6 +181,13 @@ func (a *App) SecretRefs() map[reftracker.RefKey]struct{} { secrets[refKey] = struct{}{} } } + case tpl.Cue != nil && tpl.Cue.ValuesFrom != nil: + for _, valsFrom := range tpl.Cue.ValuesFrom { + if valsFrom.SecretRef != nil { + refKey := reftracker.NewSecretKey(valsFrom.SecretRef.Name, a.app.Namespace) + secrets[refKey] = struct{}{} + } + } default: } } @@ -231,6 +238,13 @@ func (a *App) ConfigMapRefs() map[reftracker.RefKey]struct{} { configMaps[refKey] = struct{}{} } } + case tpl.Cue != nil && tpl.Cue.ValuesFrom != nil: + for _, valsFrom := range tpl.Cue.ValuesFrom { + if valsFrom.ConfigMapRef != nil { + refKey := reftracker.NewConfigMapKey(valsFrom.ConfigMapRef.Name, a.app.Namespace) + configMaps[refKey] = struct{}{} + } + } default: } }