Skip to content

Commit f043f94

Browse files
committed
Try caching?
1 parent b3b8dc9 commit f043f94

File tree

1 file changed

+3
-0
lines changed
  • components/node-labeler/cmd

1 file changed

+3
-0
lines changed

components/node-labeler/cmd/run.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ var runCmd = &cobra.Command{
6868
DefaultNamespaces: map[string]cache.Config{
6969
namespace: {},
7070
},
71+
ByObject: map[client.Object]cache.ByObject{
72+
&workspacev1.Workspace{}: {},
73+
},
7174
// default sync period is 10h.
7275
// in case node-labeler is restarted and not change happens, we could waste (at least) 20m in a node
7376
// that never will run workspaces and the additional nodes cluster-autoscaler adds to compensate

0 commit comments

Comments
 (0)