Skip to content

Commit 7544082

Browse files
committed
fix: preserve "Ingress" source_kind metric label
The Ingress->SourceRoute rename accidentally changed RouteSource.Kind from "Ingress" to "SourceRoute", altering the source_kind label on the EnvoyUpstreamInfo gauge and breaking existing dashboards. The value is a pure metric/log passthrough (only "HTTPRoute" is matched in logic), so restoring the literal is behavior-neutral.
1 parent adf45d7 commit 7544082

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/k8s/generic_resources.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func convertExtensionsv1beta1Ingress(i *extensionsv1beta1.Ingress, maintenance b
154154
Maintenance: maintenance,
155155
KubernetesClusterName: kubernetesClusterName,
156156
Source: RouteSource{
157-
Kind: "SourceRoute",
157+
Kind: "Ingress",
158158
Namespace: i.Namespace,
159159
Name: i.Name,
160160
Class: stringValue(i.Spec.IngressClassName),
@@ -201,7 +201,7 @@ func convertNetworkingv1beta1Ingress(i *networkingv1beta1.Ingress, maintenance b
201201
Maintenance: maintenance,
202202
KubernetesClusterName: kubernetesClusterName,
203203
Source: RouteSource{
204-
Kind: "SourceRoute",
204+
Kind: "Ingress",
205205
Namespace: i.Namespace,
206206
Name: i.Name,
207207
Class: stringValue(i.Spec.IngressClassName),
@@ -248,7 +248,7 @@ func convertNetworkingv1Ingress(i *networkingv1.Ingress, maintenance bool, kuber
248248
Maintenance: maintenance,
249249
KubernetesClusterName: kubernetesClusterName,
250250
Source: RouteSource{
251-
Kind: "SourceRoute",
251+
Kind: "Ingress",
252252
Namespace: i.Namespace,
253253
Name: i.Name,
254254
Class: stringValue(i.Spec.IngressClassName),

0 commit comments

Comments
 (0)