diff --git a/cmd/flux/tree_kustomization.go b/cmd/flux/tree_kustomization.go
index d3d43ec6bd51190993dac9ca71b8a5d8cba92a59..c0cd03e58bc982b2ce2f8f240e78f0a545115105 100644
--- a/cmd/flux/tree_kustomization.go
+++ b/cmd/flux/tree_kustomization.go
@@ -50,7 +50,8 @@ var treeKsCmd = &cobra.Command{
 
   # Print the Flux resources managed by the root Kustomization
   flux tree kustomization flux-system --compact`,
-	RunE: treeKsCmdRun,
+	RunE:              treeKsCmdRun,
+	ValidArgsFunction: resourceNamesCompletionFunc(kustomizev1.GroupVersion.WithKind(kustomizev1.KustomizationKind)),
 }
 
 type TreeKsFlags struct {