Skip to content

Commit 96e5e33

Browse files
committed
Fix: Get services list
1 parent 58392fc commit 96e5e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/jobs/job_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func K8sJobList() []Job {
3232
Name: "service-list",
3333
OutputFile: "/list/services.json",
3434
RetrieveFunction: func(c *kubernetes.Clientset, ctx context.Context) []byte {
35-
pods, _ := c.CoreV1().ConfigMaps("").List(ctx, v1.ListOptions{})
35+
pods, _ := c.CoreV1().Services("").List(ctx, v1.ListOptions{})
3636
jsonPods, _ := json.MarshalIndent(pods, "", " ")
3737
return jsonPods
3838
},

0 commit comments

Comments
 (0)