1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-13 14:44:48 +00:00

Update indexed fields (#433)

* Update indexed fields

* Add .status.currentReplicas
This commit is contained in:
Tom Lebreux 2025-01-09 09:35:49 -05:00 committed by GitHub
parent d3269c91eb
commit 8666ce1f54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,11 +75,11 @@ var (
{"spec", "containers", "image"}, {"spec", "containers", "image"},
{"spec", "nodeName"}}, {"spec", "nodeName"}},
gvkKey("", "v1", "Service"): { gvkKey("", "v1", "Service"): {
{"spec", "targetPort"}, {"spec", "clusterIP"},
{"spec", "type"}, {"spec", "type"},
}, },
gvkKey("networking.k8s.io", "v1", "Ingress"): { gvkKey("networking.k8s.io", "v1", "Ingress"): {
{"spec", "rules"}, {"spec", "rules", "host"},
{"spec", "ingressClassName"}, {"spec", "ingressClassName"},
}, },
gvkKey("", "v1", "ConfigMap"): { gvkKey("", "v1", "ConfigMap"): {
@ -90,11 +90,11 @@ var (
}, },
gvkKey("", "v1", "PersistentVolumeClaim"): { gvkKey("", "v1", "PersistentVolumeClaim"): {
{"spec", "volumeName"}}, {"spec", "volumeName"}},
gvkKey("autoscaling", "v1", "HorizontalPodAutoscaler"): { gvkKey("autoscaling", "v2", "HorizontalPodAutoscaler"): {
{"spec", "scaleTargetRef", "name"}, {"spec", "scaleTargetRef", "name"},
{"spec", "minReplicas"}, {"spec", "minReplicas"},
{"spec", "maxReplicas"}, {"spec", "maxReplicas"},
{"spec", "currentReplicas"}, {"status", "currentReplicas"},
}, },
gvkKey("apps", "v1", "DaemonSet"): { gvkKey("apps", "v1", "DaemonSet"): {
{"metadata", "annotations[field.cattle.io/publicEndpoints]"}, {"metadata", "annotations[field.cattle.io/publicEndpoints]"},