From ed3f96ce28146fcc53e2df9b55cd58e95e4b8748 Mon Sep 17 00:00:00 2001 From: Sarah Zinger Date: Mon, 3 Mar 2025 15:52:47 -0500 Subject: [PATCH 1/3] Fix misleading log line (#101532) --- pkg/registry/apis/query/query.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkg/registry/apis/query/query.go b/pkg/registry/apis/query/query.go index f3675514a25..fb10e8469f6 100644 --- a/pkg/registry/apis/query/query.go +++ b/pkg/registry/apis/query/query.go @@ -160,7 +160,19 @@ func (r *queryREST) Connect(connectCtx context.Context, name string, _ runtime.O // Actually run the query rsp, err := b.execute(ctx, req) if err != nil { - b.log.Error("hit unexpected error while executing query, this will show as an unhandled k8s status error", "err", err) + // log unexpected errors + var k8sErr *errorsK8s.StatusError + if errors.As(err, &k8sErr) { + // we do not need to log 4xx errors as they are expected + if k8sErr.ErrStatus.Code >= 500 { + b.log.Error("hit unexpected k8s error while executing query", "err", err, "status", k8sErr.Status()) + } + b.log.Debug("sending a known k8s error to the client", "err", err, "status", k8sErr.Status()) + } else { + b.log.Error("hit unexpected error while executing query, this will show as an unhandled k8s status error", "err", err) + } + + // return the error to the client, will send all non k8s errors as a k8 unexpected error responder.Error(err) return } From d9538fd5dc3ce33c3991c5fe860a1633ca3c2758 Mon Sep 17 00:00:00 2001 From: "alerting-team[bot]" <158350966+alerting-team[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 18:10:15 -0500 Subject: [PATCH 2/3] Alerting: Update alerting module to bb85a58ec8975d91b49d746dbd11d312f0485ecc (#101537) [create-pull-request] automated change Co-authored-by: yuri-tceretian <25988953+yuri-tceretian@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- pkg/storage/unified/apistore/go.mod | 2 +- pkg/storage/unified/apistore/go.sum | 7 ++----- pkg/storage/unified/resource/go.mod | 2 +- pkg/storage/unified/resource/go.sum | 4 ++-- 6 files changed, 9 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 1abc5ef7e16..7c34d6cdad5 100644 --- a/go.mod +++ b/go.mod @@ -72,7 +72,7 @@ require ( github.com/googleapis/gax-go/v2 v2.14.1 // @grafana/grafana-backend-group github.com/gorilla/mux v1.8.1 // @grafana/grafana-backend-group github.com/gorilla/websocket v1.5.3 // @grafana/grafana-app-platform-squad - github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2 // @grafana/alerting-backend + github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897 // @grafana/alerting-backend github.com/grafana/authlib v0.0.0-20250225105729-99e678595501 // @grafana/identity-access-team github.com/grafana/authlib/types v0.0.0-20250224151205-5ef97131cc82 // @grafana/identity-access-team github.com/grafana/dataplane/examples v0.0.1 // @grafana/observability-metrics diff --git a/go.sum b/go.sum index a186575cc8d..e46281414a0 100644 --- a/go.sum +++ b/go.sum @@ -1538,8 +1538,8 @@ github.com/gorilla/sessions v1.2.1 h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7Fsg github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2 h1:kESrzm0FcRVLmGIQCgl1MCwDGLH4sLzWphr7mcFdbfI= -github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2/go.mod h1:hdGB3dSl8Ma9Rjo2YiAEAjMkZ5HiNJbNDqRKDefRZrM= +github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897 h1:6rRaOEp1S2sB1qWxJ1JeVjaufyHTUSHnA2C5A34elmI= +github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897/go.mod h1:p5P86ajOwL2XPJN6+xu6QJUtO4DptdFiqJ35r3Ac4HY= github.com/grafana/authlib v0.0.0-20250225105729-99e678595501 h1:FTuDRy/Shw8yOdG+v1DnkeuaCAl8fvwgcfaG9Wccuhg= github.com/grafana/authlib v0.0.0-20250225105729-99e678595501/go.mod h1:XVpdLhaeYqz414FmGnW00/0vTe1x8c0GRH3KaeRtyg0= github.com/grafana/authlib/types v0.0.0-20250224151205-5ef97131cc82 h1:DnRUYiAotHXnrfYJCvhH1NkiyWVcPm5Pd+P7Ugqt/d8= diff --git a/pkg/storage/unified/apistore/go.mod b/pkg/storage/unified/apistore/go.mod index 7eabff03b79..cccba3e9b51 100644 --- a/pkg/storage/unified/apistore/go.mod +++ b/pkg/storage/unified/apistore/go.mod @@ -200,7 +200,7 @@ require ( github.com/googleapis/gax-go/v2 v2.14.1 // indirect github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.3 // indirect - github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2 // indirect + github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897 // indirect github.com/grafana/authlib v0.0.0-20250225105729-99e678595501 // indirect github.com/grafana/dataplane/sdata v0.0.9 // indirect github.com/grafana/dskit v0.0.0-20241105154643-a6b453a88040 // indirect diff --git a/pkg/storage/unified/apistore/go.sum b/pkg/storage/unified/apistore/go.sum index 9a68c6083f1..3d896faaa26 100644 --- a/pkg/storage/unified/apistore/go.sum +++ b/pkg/storage/unified/apistore/go.sum @@ -971,9 +971,6 @@ github.com/envoyproxy/go-control-plane/envoy v1.32.3 h1:hVEaommgvzTjTd4xCaFd+kEQ github.com/envoyproxy/go-control-plane/envoy v1.32.3/go.mod h1:F6hWupPfh75TBXGKA++MCT/CZHFq5r9/uwt/kQYkZfE= github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI= github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4= -github.com/envoyproxy/go-control-plane v0.13.4 h1:zEqyPVyku6IvWCFwux4x9RxkLOMUL+1vC9xUFv5l2/M= -github.com/envoyproxy/go-control-plane/envoy v1.32.3 h1:hVEaommgvzTjTd4xCaFd+kEQ2iYBtGxP6luyLrx6uOk= -github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.6.7/go.mod h1:dyJXwwfPK2VSqiB9Klm1J6romD608Ba7Hij42vrOBCo= github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w= @@ -1254,8 +1251,8 @@ github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2 h1:kESrzm0FcRVLmGIQCgl1MCwDGLH4sLzWphr7mcFdbfI= -github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2/go.mod h1:hdGB3dSl8Ma9Rjo2YiAEAjMkZ5HiNJbNDqRKDefRZrM= +github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897 h1:6rRaOEp1S2sB1qWxJ1JeVjaufyHTUSHnA2C5A34elmI= +github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897/go.mod h1:p5P86ajOwL2XPJN6+xu6QJUtO4DptdFiqJ35r3Ac4HY= github.com/grafana/authlib v0.0.0-20250225105729-99e678595501 h1:FTuDRy/Shw8yOdG+v1DnkeuaCAl8fvwgcfaG9Wccuhg= github.com/grafana/authlib v0.0.0-20250225105729-99e678595501/go.mod h1:XVpdLhaeYqz414FmGnW00/0vTe1x8c0GRH3KaeRtyg0= github.com/grafana/authlib/types v0.0.0-20250224151205-5ef97131cc82 h1:DnRUYiAotHXnrfYJCvhH1NkiyWVcPm5Pd+P7Ugqt/d8= diff --git a/pkg/storage/unified/resource/go.mod b/pkg/storage/unified/resource/go.mod index 6d3c7466b6c..a115ecf8c80 100644 --- a/pkg/storage/unified/resource/go.mod +++ b/pkg/storage/unified/resource/go.mod @@ -128,7 +128,7 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect github.com/googleapis/gax-go/v2 v2.14.1 // indirect github.com/gorilla/mux v1.8.1 // indirect - github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2 // indirect + github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897 // indirect github.com/grafana/dataplane/sdata v0.0.9 // indirect github.com/grafana/grafana-app-sdk/logging v0.30.0 // indirect github.com/grafana/grafana-aws-sdk v0.31.5 // indirect diff --git a/pkg/storage/unified/resource/go.sum b/pkg/storage/unified/resource/go.sum index 65c6a8c7583..3dd216db29c 100644 --- a/pkg/storage/unified/resource/go.sum +++ b/pkg/storage/unified/resource/go.sum @@ -1146,8 +1146,8 @@ github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2z github.com/gorilla/mux v1.7.1/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= -github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2 h1:kESrzm0FcRVLmGIQCgl1MCwDGLH4sLzWphr7mcFdbfI= -github.com/grafana/alerting v0.0.0-20250225150117-15e285d78df2/go.mod h1:hdGB3dSl8Ma9Rjo2YiAEAjMkZ5HiNJbNDqRKDefRZrM= +github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897 h1:6rRaOEp1S2sB1qWxJ1JeVjaufyHTUSHnA2C5A34elmI= +github.com/grafana/alerting v0.0.0-20250303221654-bb85a58ec897/go.mod h1:p5P86ajOwL2XPJN6+xu6QJUtO4DptdFiqJ35r3Ac4HY= github.com/grafana/authlib v0.0.0-20250225105729-99e678595501 h1:FTuDRy/Shw8yOdG+v1DnkeuaCAl8fvwgcfaG9Wccuhg= github.com/grafana/authlib v0.0.0-20250225105729-99e678595501/go.mod h1:XVpdLhaeYqz414FmGnW00/0vTe1x8c0GRH3KaeRtyg0= github.com/grafana/authlib/types v0.0.0-20250224151205-5ef97131cc82 h1:DnRUYiAotHXnrfYJCvhH1NkiyWVcPm5Pd+P7Ugqt/d8= From 8a341ebcceb14d7292b7fab4684111fcd8740cef Mon Sep 17 00:00:00 2001 From: "grafana-pr-automation[bot]" <140550294+grafana-pr-automation[bot]@users.noreply.github.com> Date: Tue, 4 Mar 2025 02:31:05 +0200 Subject: [PATCH 3/3] I18n: Download translations from Crowdin (#101540) New Crowdin translations by GitHub Action Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- public/locales/de-DE/grafana.json | 17 ++++++++++++----- public/locales/es-ES/grafana.json | 17 ++++++++++++----- public/locales/fr-FR/grafana.json | 17 ++++++++++++----- public/locales/pt-BR/grafana.json | 17 ++++++++++++----- public/locales/zh-Hans/grafana.json | 17 ++++++++++++----- 5 files changed, 60 insertions(+), 25 deletions(-) diff --git a/public/locales/de-DE/grafana.json b/public/locales/de-DE/grafana.json index 950616d290a..60ec10f7b67 100644 --- a/public/locales/de-DE/grafana.json +++ b/public/locales/de-DE/grafana.json @@ -1078,11 +1078,6 @@ } }, "open": "", - "panels": { - "multi-select": { - "selection-number": "" - } - }, "row": { "header": { "hide": "", @@ -1171,6 +1166,16 @@ "rows": "Gesamtanzahl an Zeilen", "table-title": "Statistiken" }, + "layout": { + "common": { + "copy": "", + "copy-or-duplicate": "", + "delete": "", + "duplicate": "", + "layout": "", + "panels-title": "" + } + }, "options": { "description": "", "title": "", @@ -1325,6 +1330,8 @@ "viz-panel": { "options": { "description": "", + "open-edit": "", + "plugin-type-image": "", "title": "", "title-option": "", "transparent-background": "" diff --git a/public/locales/es-ES/grafana.json b/public/locales/es-ES/grafana.json index cddcac1dbb6..7e2083358d4 100644 --- a/public/locales/es-ES/grafana.json +++ b/public/locales/es-ES/grafana.json @@ -1078,11 +1078,6 @@ } }, "open": "", - "panels": { - "multi-select": { - "selection-number": "" - } - }, "row": { "header": { "hide": "", @@ -1171,6 +1166,16 @@ "rows": "Número total de filas", "table-title": "Estadísticas" }, + "layout": { + "common": { + "copy": "", + "copy-or-duplicate": "", + "delete": "", + "duplicate": "", + "layout": "", + "panels-title": "" + } + }, "options": { "description": "", "title": "", @@ -1325,6 +1330,8 @@ "viz-panel": { "options": { "description": "", + "open-edit": "", + "plugin-type-image": "", "title": "", "title-option": "", "transparent-background": "" diff --git a/public/locales/fr-FR/grafana.json b/public/locales/fr-FR/grafana.json index 10cebf9fa25..5b5045b14c7 100644 --- a/public/locales/fr-FR/grafana.json +++ b/public/locales/fr-FR/grafana.json @@ -1078,11 +1078,6 @@ } }, "open": "", - "panels": { - "multi-select": { - "selection-number": "" - } - }, "row": { "header": { "hide": "", @@ -1171,6 +1166,16 @@ "rows": "Nombre total de lignes", "table-title": "Statistiques" }, + "layout": { + "common": { + "copy": "", + "copy-or-duplicate": "", + "delete": "", + "duplicate": "", + "layout": "", + "panels-title": "" + } + }, "options": { "description": "", "title": "", @@ -1325,6 +1330,8 @@ "viz-panel": { "options": { "description": "", + "open-edit": "", + "plugin-type-image": "", "title": "", "title-option": "", "transparent-background": "" diff --git a/public/locales/pt-BR/grafana.json b/public/locales/pt-BR/grafana.json index 7e0f679777b..05eaeaa5b35 100644 --- a/public/locales/pt-BR/grafana.json +++ b/public/locales/pt-BR/grafana.json @@ -1078,11 +1078,6 @@ } }, "open": "", - "panels": { - "multi-select": { - "selection-number": "" - } - }, "row": { "header": { "hide": "", @@ -1171,6 +1166,16 @@ "rows": "Número total de linhas", "table-title": "Estatísticas" }, + "layout": { + "common": { + "copy": "", + "copy-or-duplicate": "", + "delete": "", + "duplicate": "", + "layout": "", + "panels-title": "" + } + }, "options": { "description": "", "title": "", @@ -1325,6 +1330,8 @@ "viz-panel": { "options": { "description": "", + "open-edit": "", + "plugin-type-image": "", "title": "", "title-option": "", "transparent-background": "" diff --git a/public/locales/zh-Hans/grafana.json b/public/locales/zh-Hans/grafana.json index 74386956d29..62c80b1ff34 100644 --- a/public/locales/zh-Hans/grafana.json +++ b/public/locales/zh-Hans/grafana.json @@ -1069,11 +1069,6 @@ } }, "open": "", - "panels": { - "multi-select": { - "selection-number": "" - } - }, "row": { "header": { "hide": "", @@ -1162,6 +1157,16 @@ "rows": "总行数", "table-title": "统计信息" }, + "layout": { + "common": { + "copy": "", + "copy-or-duplicate": "", + "delete": "", + "duplicate": "", + "layout": "", + "panels-title": "" + } + }, "options": { "description": "", "title": "", @@ -1316,6 +1321,8 @@ "viz-panel": { "options": { "description": "", + "open-edit": "", + "plugin-type-image": "", "title": "", "title-option": "", "transparent-background": ""