From 8666ce1f54ad0b016e9e15ce70fd8c2ef207ee3d Mon Sep 17 00:00:00 2001 From: Tom Lebreux Date: Thu, 9 Jan 2025 09:35:49 -0500 Subject: [PATCH] Update indexed fields (#433) * Update indexed fields * Add .status.currentReplicas --- pkg/stores/sqlproxy/proxy_store.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/stores/sqlproxy/proxy_store.go b/pkg/stores/sqlproxy/proxy_store.go index a257a401..303cf49b 100644 --- a/pkg/stores/sqlproxy/proxy_store.go +++ b/pkg/stores/sqlproxy/proxy_store.go @@ -75,11 +75,11 @@ var ( {"spec", "containers", "image"}, {"spec", "nodeName"}}, gvkKey("", "v1", "Service"): { - {"spec", "targetPort"}, + {"spec", "clusterIP"}, {"spec", "type"}, }, gvkKey("networking.k8s.io", "v1", "Ingress"): { - {"spec", "rules"}, + {"spec", "rules", "host"}, {"spec", "ingressClassName"}, }, gvkKey("", "v1", "ConfigMap"): { @@ -90,11 +90,11 @@ var ( }, gvkKey("", "v1", "PersistentVolumeClaim"): { {"spec", "volumeName"}}, - gvkKey("autoscaling", "v1", "HorizontalPodAutoscaler"): { + gvkKey("autoscaling", "v2", "HorizontalPodAutoscaler"): { {"spec", "scaleTargetRef", "name"}, {"spec", "minReplicas"}, {"spec", "maxReplicas"}, - {"spec", "currentReplicas"}, + {"status", "currentReplicas"}, }, gvkKey("apps", "v1", "DaemonSet"): { {"metadata", "annotations[field.cattle.io/publicEndpoints]"},