From a21a9c67937a7125f845899a5ed236e874180562 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 07:32:45 +0000 Subject: [PATCH 1/7] build(deps): Bump golang.org/x/crypto Bumps the golang-x group with 1 update: [golang.org/x/crypto](https://github.com/golang/crypto). Updates `golang.org/x/crypto` from 0.58.0 to 0.59.0 - [Commits](https://github.com/golang/crypto/compare/v0.58.0...v0.59.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-version: 0.59.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang-x ... Signed-off-by: dependabot[bot] --- go.mod | 14 +++++++------- go.sum | 28 ++++++++++++++-------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/go.mod b/go.mod index fc55e7a..3da775f 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/onsi/ginkgo/v2 v2.34.0 github.com/onsi/gomega v1.44.0 go.uber.org/zap v1.28.0 - golang.org/x/crypto v0.58.0 + golang.org/x/crypto v0.59.0 k8s.io/api v0.37.2 k8s.io/apimachinery v0.37.2 k8s.io/client-go v0.37.2 @@ -81,15 +81,15 @@ require ( go.yaml.in/yaml/v2 v2.4.4 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f // indirect - golang.org/x/mod v0.41.0 // indirect + golang.org/x/mod v0.42.0 // indirect golang.org/x/net v0.62.0 // indirect golang.org/x/oauth2 v0.36.0 // indirect - golang.org/x/sync v0.24.0 // indirect - golang.org/x/sys v0.49.0 // indirect - golang.org/x/term v0.47.0 // indirect - golang.org/x/text v0.43.0 // indirect + golang.org/x/sync v0.25.0 // indirect + golang.org/x/sys v0.50.0 // indirect + golang.org/x/term v0.48.0 // indirect + golang.org/x/text v0.44.0 // indirect golang.org/x/time v0.15.0 // indirect - golang.org/x/tools v0.51.0 // indirect + golang.org/x/tools v0.52.0 // indirect gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260819154853-08b0e4226688 // indirect diff --git a/go.sum b/go.sum index 1fab2ce..25dee6c 100644 --- a/go.sum +++ b/go.sum @@ -208,14 +208,14 @@ go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= -golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= +golang.org/x/crypto v0.59.0 h1:xS2jhqYbzNrpvkWP2YTDf4TJwBy3ykR03i8vFDxEc7c= +golang.org/x/crypto v0.59.0/go.mod h1:veDyUwATGs3c+vN3VfTbzViMGXeTBk3WyhBOkn+F/4U= golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f h1:W3F4c+6OLc6H2lb//N1q4WpJkhzJCK5J6kUi1NTVXfM= golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f/go.mod h1:J1xhfL/vlindoeF/aINzNzt2Bket5bjo9sdOYzOsU80= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c= -golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o= +golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg= +golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -227,27 +227,27 @@ golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7 golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= -golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= +golang.org/x/sync v0.25.0 h1:dJnifr0nMV8/SBnBvdo4eSGGnrc3O4FFx6IqvtLcmRs= +golang.org/x/sync v0.25.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= -golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= -golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= -golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= +golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs= +golang.org/x/sys v0.50.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/term v0.48.0 h1:G6UU1eiSB8nl3DzeUGt7Mg+2SctI8tPS6Z5/mBt6cOk= +golang.org/x/term v0.48.0/go.mod h1:BRDLHCZr2SUjIeBHHpRyQeC9xzSAVbzY2rvKgafnHf4= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= -golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= +golang.org/x/text v0.44.0 h1:YItdp/mQNGnsmrgpcdA5yQ3bnRxCfo/Tj/iByGW9GGo= +golang.org/x/text v0.44.0/go.mod h1:S4FR1waQ9LbjQTls97SyRjDaUUVkaM+cXwwuG/G+MwY= golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U= golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.51.0 h1:k4Xc/1Om9jwkBJBo4NVLMSARBoWtK10mx+W5BnXCeAI= -golang.org/x/tools v0.51.0/go.mod h1:9eEncMayCV6zRMGhR5eZEC2iBx98qWcF1HZ9Z7wJOoA= +golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs= +golang.org/x/tools v0.52.0/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= From a2621c263264830e1ba41d245d79d94e25d7ce8d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 04:09:45 +0000 Subject: [PATCH 2/7] build(deps): Bump go.opentelemetry.io/otel/sdk from 1.46.0 to 1.47.0 Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.46.0 to 1.47.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.46.0...v1.47.0) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel/sdk dependency-version: 1.47.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- go.mod | 9 +++++---- go.sum | 22 ++++++++++++---------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/go.mod b/go.mod index 3da775f..f7ca880 100644 --- a/go.mod +++ b/go.mod @@ -70,12 +70,13 @@ require ( github.com/x448/float16 v0.8.4 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 // indirect - go.opentelemetry.io/otel v1.46.0 // indirect + go.opentelemetry.io/otel v1.47.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.46.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.46.0 // indirect - go.opentelemetry.io/otel/metric v1.46.0 // indirect - go.opentelemetry.io/otel/sdk v1.46.0 // indirect - go.opentelemetry.io/otel/trace v1.46.0 // indirect + go.opentelemetry.io/otel/log v1.47.0 // indirect + go.opentelemetry.io/otel/metric v1.47.0 // indirect + go.opentelemetry.io/otel/sdk v1.47.0 // indirect + go.opentelemetry.io/otel/trace v1.47.0 // indirect go.opentelemetry.io/proto/otlp v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.yaml.in/yaml/v2 v2.4.4 // indirect diff --git a/go.sum b/go.sum index 25dee6c..9643d96 100644 --- a/go.sum +++ b/go.sum @@ -178,20 +178,22 @@ go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 h1:LMuyCAyfalSjDyjdC65nK6N0zoTT63+E/u95X0JovZI= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0/go.mod h1:085m8qbm4hgc8rZWGDEa4vmyyo2c3nPxUslYUKUIU04= -go.opentelemetry.io/otel v1.46.0 h1:FHt5/CDyVxi/8IM1CH7VE/rRgq3kLHa2mSTVMO8AWyc= -go.opentelemetry.io/otel v1.46.0/go.mod h1:Gj3SEScelsNC45tp4nSxRYlS+f5iez7W8XPMCt905kE= +go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM= +go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.46.0 h1:OFnwLJr+pF3iHrlGSzbxyuo6/6HyBlnlN1CWEJmBVcw= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.46.0/go.mod h1:716wFneO0ov19A2beH5hjfh9AK5z/VWNAtDijp1Y0/g= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.46.0 h1:w53CDeOA/Kurp7yRsegSr6pbbr759dOvJ+yNmWM6Hxs= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.46.0/go.mod h1:BOmGMCbAtvcJiSJ+hLuhgPLdDbimnraSl8irz3iY8sY= -go.opentelemetry.io/otel/metric v1.46.0 h1:yBnkXvgV7AXFILZc5K6IZe/CBFF3OS7BJ8ov6/lj0K8= -go.opentelemetry.io/otel/metric v1.46.0/go.mod h1:iPmdWqifKUdzziPkvvzIJXITl56fQx2mGM/DHLB3/2o= -go.opentelemetry.io/otel/sdk v1.46.0 h1:h5CNQQjEbuQXY/JfZtgt3i7HVFV3aHPO2OAwO2eTYPI= -go.opentelemetry.io/otel/sdk v1.46.0/go.mod h1:GAERFXFt5SYCEB+YiKUbMBeza6UaDH7GmGOZEfh2gSM= -go.opentelemetry.io/otel/sdk/metric v1.46.0 h1:0piZ26EG4RBfebb2jhDH6ERCYHoVWduc3kLgPCwSnSE= -go.opentelemetry.io/otel/sdk/metric v1.46.0/go.mod h1:I1PbKrdVc8Qu8HYVDNtqVIwLwjNrhsV/uFuxfwg8mO4= -go.opentelemetry.io/otel/trace v1.46.0 h1:OULy7ccdJnZtJ0UDYFOIGaCmiWzJ8Vi2G/Rsu60qs1c= -go.opentelemetry.io/otel/trace v1.46.0/go.mod h1:J7GAXweO77XSFkB/rmAqk9D6ihszhFjLU+d9WuUxDLI= +go.opentelemetry.io/otel/log v1.47.0 h1:cOTS1CcLbSQeZKanGJ+0JpF/+t4PELi3O3bbl2lqCcI= +go.opentelemetry.io/otel/log v1.47.0/go.mod h1:9byitSQ5pLC6PpqwGXjqdMKya6ZTswHRZh2vvXT33nw= +go.opentelemetry.io/otel/metric v1.47.0 h1:4PptaldXx3Eat1XjMZ68pPJEs5wrhlemctZE9a3UdWY= +go.opentelemetry.io/otel/metric v1.47.0/go.mod h1:ADGSXxRrXM6bjbvLo535EstVFlPpPYZm4LBKixjDHwU= +go.opentelemetry.io/otel/sdk v1.47.0 h1:zWXEr4j2lFefG87TU6Yg8a7ngfohIKFZHKp0Hf5hC6I= +go.opentelemetry.io/otel/sdk v1.47.0/go.mod h1:VUc24kiOeoGsxG8G9ULx3fWKvB7jMhnGE8Oi607lgR0= +go.opentelemetry.io/otel/sdk/metric v1.47.0 h1:lfISg2j93VT6yqdk9OfUaZmw/GfcZqCCV3jdXtsPnKw= +go.opentelemetry.io/otel/sdk/metric v1.47.0/go.mod h1:ypLp+mW1Nt2x+Szt3b5/i1syodyts49lMOwxpDI3VGw= +go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrFNWSrM= +go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0= go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk= go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= From 9c8dbb496f0934cb3adbb02fb1e1b1c09548ffd0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 04:09:59 +0000 Subject: [PATCH 3/7] build(deps): Bump go.opentelemetry.io/otel/sdk in /tools Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.46.0 to 1.47.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.46.0...v1.47.0) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel/sdk dependency-version: 1.47.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- tools/go.mod | 13 +++++++------ tools/go.sum | 26 ++++++++++++++------------ 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/tools/go.mod b/tools/go.mod index 16f688a..67b9f06 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -268,12 +268,13 @@ require ( go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 // indirect - go.opentelemetry.io/otel v1.46.0 // indirect + go.opentelemetry.io/otel v1.47.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.46.0 // indirect - go.opentelemetry.io/otel/metric v1.46.0 // indirect - go.opentelemetry.io/otel/sdk v1.46.0 // indirect - go.opentelemetry.io/otel/sdk/metric v1.46.0 // indirect - go.opentelemetry.io/otel/trace v1.46.0 // indirect + go.opentelemetry.io/otel/log v1.47.0 // indirect + go.opentelemetry.io/otel/metric v1.47.0 // indirect + go.opentelemetry.io/otel/sdk v1.47.0 // indirect + go.opentelemetry.io/otel/sdk/metric v1.47.0 // indirect + go.opentelemetry.io/otel/trace v1.47.0 // indirect go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.28.0 // indirect @@ -285,7 +286,7 @@ require ( golang.org/x/mod v0.40.0 // indirect golang.org/x/net v0.58.0 // indirect golang.org/x/sync v0.22.0 // indirect - golang.org/x/sys v0.47.0 // indirect + golang.org/x/sys v0.48.0 // indirect golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5 // indirect golang.org/x/text v0.41.0 // indirect golang.org/x/tools v0.49.0 // indirect diff --git a/tools/go.sum b/tools/go.sum index 3e4fa54..fe708a7 100644 --- a/tools/go.sum +++ b/tools/go.sum @@ -662,20 +662,22 @@ go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 h1:LMuyCAyfalSjDyjdC65nK6N0zoTT63+E/u95X0JovZI= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0/go.mod h1:085m8qbm4hgc8rZWGDEa4vmyyo2c3nPxUslYUKUIU04= -go.opentelemetry.io/otel v1.46.0 h1:FHt5/CDyVxi/8IM1CH7VE/rRgq3kLHa2mSTVMO8AWyc= -go.opentelemetry.io/otel v1.46.0/go.mod h1:Gj3SEScelsNC45tp4nSxRYlS+f5iez7W8XPMCt905kE= +go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM= +go.opentelemetry.io/otel v1.47.0/go.mod h1:8wS9O2qfXrYrzp6hIF/HOYJJf/wIhFPhR2xLuP+iXQU= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.46.0 h1:OFnwLJr+pF3iHrlGSzbxyuo6/6HyBlnlN1CWEJmBVcw= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.46.0/go.mod h1:716wFneO0ov19A2beH5hjfh9AK5z/VWNAtDijp1Y0/g= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.46.0 h1:w53CDeOA/Kurp7yRsegSr6pbbr759dOvJ+yNmWM6Hxs= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.46.0/go.mod h1:BOmGMCbAtvcJiSJ+hLuhgPLdDbimnraSl8irz3iY8sY= -go.opentelemetry.io/otel/metric v1.46.0 h1:yBnkXvgV7AXFILZc5K6IZe/CBFF3OS7BJ8ov6/lj0K8= -go.opentelemetry.io/otel/metric v1.46.0/go.mod h1:iPmdWqifKUdzziPkvvzIJXITl56fQx2mGM/DHLB3/2o= -go.opentelemetry.io/otel/sdk v1.46.0 h1:h5CNQQjEbuQXY/JfZtgt3i7HVFV3aHPO2OAwO2eTYPI= -go.opentelemetry.io/otel/sdk v1.46.0/go.mod h1:GAERFXFt5SYCEB+YiKUbMBeza6UaDH7GmGOZEfh2gSM= -go.opentelemetry.io/otel/sdk/metric v1.46.0 h1:0piZ26EG4RBfebb2jhDH6ERCYHoVWduc3kLgPCwSnSE= -go.opentelemetry.io/otel/sdk/metric v1.46.0/go.mod h1:I1PbKrdVc8Qu8HYVDNtqVIwLwjNrhsV/uFuxfwg8mO4= -go.opentelemetry.io/otel/trace v1.46.0 h1:OULy7ccdJnZtJ0UDYFOIGaCmiWzJ8Vi2G/Rsu60qs1c= -go.opentelemetry.io/otel/trace v1.46.0/go.mod h1:J7GAXweO77XSFkB/rmAqk9D6ihszhFjLU+d9WuUxDLI= +go.opentelemetry.io/otel/log v1.47.0 h1:cOTS1CcLbSQeZKanGJ+0JpF/+t4PELi3O3bbl2lqCcI= +go.opentelemetry.io/otel/log v1.47.0/go.mod h1:9byitSQ5pLC6PpqwGXjqdMKya6ZTswHRZh2vvXT33nw= +go.opentelemetry.io/otel/metric v1.47.0 h1:4PptaldXx3Eat1XjMZ68pPJEs5wrhlemctZE9a3UdWY= +go.opentelemetry.io/otel/metric v1.47.0/go.mod h1:ADGSXxRrXM6bjbvLo535EstVFlPpPYZm4LBKixjDHwU= +go.opentelemetry.io/otel/sdk v1.47.0 h1:zWXEr4j2lFefG87TU6Yg8a7ngfohIKFZHKp0Hf5hC6I= +go.opentelemetry.io/otel/sdk v1.47.0/go.mod h1:VUc24kiOeoGsxG8G9ULx3fWKvB7jMhnGE8Oi607lgR0= +go.opentelemetry.io/otel/sdk/metric v1.47.0 h1:lfISg2j93VT6yqdk9OfUaZmw/GfcZqCCV3jdXtsPnKw= +go.opentelemetry.io/otel/sdk/metric v1.47.0/go.mod h1:ypLp+mW1Nt2x+Szt3b5/i1syodyts49lMOwxpDI3VGw= +go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrFNWSrM= +go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0= go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk= go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E= go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= @@ -783,8 +785,8 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= -golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5 h1:ZUSxONxc981v7AW7QUg+I9WwZzSTTJ019ENBYr5pV/Q= golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5/go.mod h1:LVehoXe41cL5SCVQilsV7Gg6BNG+Js6P9PhSbYTIUkQ= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= From 5f7bc2e8769642de45fae6625dfc7f3555f5c346 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 05:58:46 +0000 Subject: [PATCH 4/7] build: bump Go to 1.26.11 to resolve GO-2026-6859 Assisted-by: Claude Opus 5.5 --- go.mod | 2 +- tools/go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index f7ca880..a93a01e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/observiq/bindplane-operator -go 1.26.10 +go 1.26.11 require ( github.com/argoproj/argo-rollouts v1.10.2 diff --git a/tools/go.mod b/tools/go.mod index 67b9f06..015e4d3 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module github.com/observiq/bindplane-operator/tools -go 1.26.10 +go 1.26.11 tool ( github.com/elastic/crd-ref-docs From f84b6c8b713534d3da4c6345c7cc33e11488ad13 Mon Sep 17 00:00:00 2001 From: jsirianni Date: Thu, 19 Nov 2026 13:40:49 -0500 Subject: [PATCH 5/7] build: bump Go to 1.27.4 and golangci-lint to v2.15.0 golangci-lint v2.1.0 cannot load Go 1.27 export data; v2.14.0 is the first release that can. Assisted-by: Claude Opus 5.5 --- go.mod | 2 +- tools/go.mod | 250 ++++++++++++----------- tools/go.sum | 567 +++++++++++++++++++++++++-------------------------- 3 files changed, 407 insertions(+), 412 deletions(-) diff --git a/go.mod b/go.mod index a93a01e..256dd5a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/observiq/bindplane-operator -go 1.26.11 +go 1.27.4 require ( github.com/argoproj/argo-rollouts v1.10.2 diff --git a/tools/go.mod b/tools/go.mod index 015e4d3..5525a39 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module github.com/observiq/bindplane-operator/tools -go 1.26.11 +go 1.27.4 tool ( github.com/elastic/crd-ref-docs @@ -17,76 +17,87 @@ tool ( ) require ( - 4d63.com/gocheckcompilerdirectives v1.3.0 // indirect + 4d63.com/gocheckcompilerdirectives v1.4.0 // indirect 4d63.com/gochecknoglobals v0.2.2 // indirect al.essio.dev/pkg/shellescape v1.5.1 // indirect + charm.land/lipgloss/v2 v2.0.6 // indirect cloud.google.com/go v0.123.0 // indirect - cloud.google.com/go/auth v0.21.0 // indirect + cloud.google.com/go/auth v0.23.2 // indirect cloud.google.com/go/compute/metadata v0.9.0 // indirect + codeberg.org/chavacava/garif v0.2.1 // indirect + codeberg.org/polyfloyd/go-errorlint v1.9.0 // indirect dario.cat/mergo v1.0.2 // indirect - github.com/4meepo/tagalign v1.4.2 // indirect - github.com/Abirdcfly/dupword v0.1.3 // indirect - github.com/Antonboom/errname v1.1.0 // indirect - github.com/Antonboom/nilnil v1.1.0 // indirect - github.com/Antonboom/testifylint v1.6.1 // indirect + dev.gaijin.team/go/exhaustruct/v4 v4.0.0 // indirect + dev.gaijin.team/go/exhaustruct/v5 v5.2.0 // indirect + dev.gaijin.team/go/golib v0.8.1 // indirect + github.com/4meepo/tagalign v1.4.4 // indirect + github.com/Abirdcfly/dupword v0.1.8 // indirect + github.com/AdminBenni/iota-mixing v1.0.0 // indirect + github.com/AlwxSin/noinlineerr v1.0.6 // indirect + github.com/Antonboom/errname v1.1.2 // indirect + github.com/Antonboom/nilnil v1.1.2 // indirect + github.com/Antonboom/testifylint v1.6.4 // indirect github.com/BurntSushi/toml v1.6.0 // indirect - github.com/Crocmagnon/fatcontext v0.7.2 // indirect - github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect - github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.1 // indirect + github.com/ClickHouse/clickhouse-go-linter v1.2.1 // indirect + github.com/Djarvur/go-err113 v0.1.1 // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.5.0 // indirect github.com/Masterminds/sprig/v3 v3.3.0 // indirect + github.com/MirrexOne/unqueryvet v1.5.4 // indirect github.com/OpenPeeDeeP/depguard/v2 v2.2.1 // indirect - github.com/alecthomas/chroma/v2 v2.16.0 // indirect - github.com/alecthomas/go-check-sumtype v0.3.1 // indirect + github.com/alecthomas/chroma/v2 v2.27.0 // indirect + github.com/alecthomas/go-check-sumtype v0.5.1-0.20260828200218-ae6904d28606 // indirect github.com/alexkohler/nakedret/v2 v2.0.6 // indirect - github.com/alexkohler/prealloc v1.0.0 // indirect + github.com/alexkohler/prealloc v1.1.0 // indirect + github.com/alfatraining/structtag v1.0.0 // indirect github.com/alingse/asasalint v0.0.11 // indirect github.com/alingse/nilnesserr v0.2.0 // indirect - github.com/anthropics/anthropic-sdk-go v1.57.0 // indirect - github.com/ashanbrown/forbidigo v1.6.0 // indirect - github.com/ashanbrown/makezero v1.2.0 // indirect - github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/anthropics/anthropic-sdk-go v1.66.0 // indirect + github.com/ashanbrown/forbidigo/v2 v2.3.1 // indirect + github.com/ashanbrown/makezero/v2 v2.2.1 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bkielbasa/cyclop v1.2.3 // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/blizzy78/varnamelen v0.8.0 // indirect github.com/bombsimon/wsl/v4 v4.7.0 // indirect - github.com/breml/bidichk v0.3.3 // indirect + github.com/bombsimon/wsl/v5 v5.9.0 // indirect + github.com/breml/bidichk v0.3.4 // indirect github.com/breml/errchkjson v0.4.1 // indirect - github.com/buger/jsonparser v1.2.0 // indirect - github.com/butuzov/ireturn v0.4.0 // indirect - github.com/butuzov/mirror v1.3.0 // indirect - github.com/catenacyber/perfsprint v0.9.1 // indirect + github.com/buger/jsonparser v1.6.1 // indirect + github.com/butuzov/ireturn v0.4.1 // indirect + github.com/butuzov/mirror v1.3.3 // indirect + github.com/catenacyber/perfsprint v0.10.1 // indirect github.com/ccojocar/zxcvbn-go v1.0.4 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect - github.com/charithe/durationcheck v0.0.10 // indirect - github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect - github.com/charmbracelet/lipgloss v1.1.0 // indirect - github.com/charmbracelet/x/ansi v0.8.0 // indirect - github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd // indirect - github.com/charmbracelet/x/term v0.2.1 // indirect - github.com/chavacava/garif v0.1.0 // indirect + github.com/charithe/durationcheck v0.0.11 // indirect + github.com/charmbracelet/colorprofile v0.4.3 // indirect + github.com/charmbracelet/ultraviolet v0.0.0-20260811164956-006e29f97886 // indirect + github.com/charmbracelet/x/ansi v0.11.8 // indirect + github.com/charmbracelet/x/term v0.2.2 // indirect + github.com/charmbracelet/x/termios v0.1.1 // indirect + github.com/charmbracelet/x/windows v0.2.2 // indirect github.com/ckaznocha/intrange v0.3.1 // indirect + github.com/clipperhouse/displaywidth v0.11.0 // indirect + github.com/clipperhouse/uax29/v2 v2.7.0 // indirect github.com/curioswitch/go-reassign v0.3.0 // indirect - github.com/daixiang0/gci v0.13.6 // indirect - github.com/dave/dst v0.27.3 // indirect + github.com/daixiang0/gci v0.13.7 // indirect + github.com/dave/dst v0.28.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/denis-tingaikin/go-header v0.5.0 // indirect - github.com/dlclark/regexp2 v1.11.5 // indirect + github.com/dlclark/regexp2/v2 v2.2.1 // indirect github.com/elastic/crd-ref-docs v0.3.0 // indirect github.com/ettle/strcase v0.2.0 // indirect github.com/evanphx/json-patch/v5 v5.9.11 // indirect - github.com/fatih/color v1.18.0 // indirect + github.com/fatih/color v1.19.0 // indirect github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.1.0 // indirect - github.com/firefart/nonamedreturns v1.0.6 // indirect + github.com/firefart/nonamedreturns v1.0.8 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/fxamacker/cbor/v2 v2.9.1 // indirect github.com/fzipp/gocyclo v0.6.0 // indirect - github.com/ghostiam/protogetter v0.3.13 // indirect - github.com/go-critic/go-critic v0.13.0 // indirect + github.com/ghostiam/protogetter v1.0.1 // indirect + github.com/go-critic/go-critic v0.15.0 // indirect github.com/go-errors/errors v1.4.2 // indirect github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect @@ -117,16 +128,21 @@ require ( github.com/gobuffalo/flect v1.0.3 // indirect github.com/gobwas/glob v0.2.3 // indirect github.com/goccy/go-yaml v1.19.2 // indirect - github.com/gofrs/flock v0.12.1 // indirect + github.com/godoc-lint/godoc-lint v0.11.4 // indirect + github.com/gofrs/flock v0.13.1 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32 // indirect - github.com/golangci/go-printf-func-name v0.1.0 // indirect - github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d // indirect - github.com/golangci/golangci-lint/v2 v2.1.0 // indirect - github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95 // indirect - github.com/golangci/misspell v0.6.0 // indirect - github.com/golangci/plugin-module-register v0.1.1 // indirect + github.com/golangci/asciicheck v0.5.0 // indirect + github.com/golangci/canonicalheader v0.0.0-20260928145534-e18e5c5a078f // indirect + github.com/golangci/dupl v0.0.0-20260401084720-c99c5cf5c202 // indirect + github.com/golangci/go-printf-func-name v0.1.1 // indirect + github.com/golangci/gofmt v0.0.0-20260820135601-e84e05053792 // indirect + github.com/golangci/golangci-lint/v2 v2.15.0 // indirect + github.com/golangci/golines v0.16.0 // indirect + github.com/golangci/misspell v0.8.0 // indirect + github.com/golangci/plugin-module-register v0.1.2 // indirect github.com/golangci/revgrep v0.8.0 // indirect + github.com/golangci/rowserrcheck v0.0.0-20261005233414-e0740d52dee8 // indirect + github.com/golangci/swaggoswag v0.0.0-20250504205917-77f2aca3143e // indirect github.com/golangci/unconvert v0.0.0-20250410112200-a129a6e6413e // indirect github.com/google/cel-go v0.30.0 // indirect github.com/google/gnostic-models v0.7.1 // indirect @@ -136,51 +152,51 @@ require ( github.com/google/s2a-go v0.1.9 // indirect github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.3.18 // indirect - github.com/googleapis/gax-go/v2 v2.23.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.20 // indirect + github.com/googleapis/gax-go/v2 v2.24.0 // indirect github.com/gookit/color v1.6.1 // indirect - github.com/gordonklaus/ineffassign v0.1.0 // indirect + github.com/gordonklaus/ineffassign v0.2.0 // indirect github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect github.com/gostaticanalysis/analysisutil v0.7.1 // indirect github.com/gostaticanalysis/comment v1.5.0 // indirect github.com/gostaticanalysis/forcetypeassert v0.2.0 // indirect - github.com/gostaticanalysis/nilerr v0.1.1 // indirect + github.com/gostaticanalysis/nilerr v0.1.2 // indirect github.com/hashicorp/go-immutable-radix/v2 v2.1.0 // indirect - github.com/hashicorp/go-version v1.7.0 // indirect + github.com/hashicorp/go-version v1.9.0 // indirect github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/hcl v1.0.1-vault-7 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect github.com/huandu/xstrings v1.5.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/invopop/jsonschema v0.14.0 // indirect - github.com/jgautheron/goconst v1.8.1 // indirect - github.com/jingyugao/rowserrcheck v1.1.1 // indirect - github.com/jjti/go-spancheck v0.6.4 // indirect + github.com/jgautheron/goconst v1.11.0 // indirect + github.com/jjti/go-spancheck v0.6.5 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/julz/importas v0.2.0 // indirect - github.com/karamaru-alpha/copyloopvar v1.2.1 // indirect - github.com/kisielk/errcheck v1.9.0 // indirect + github.com/karamaru-alpha/copyloopvar v1.2.2 // indirect + github.com/kisielk/errcheck v1.30.0 // indirect github.com/kkHAIKE/contextcheck v1.1.6 // indirect - github.com/kulti/thelper v0.6.3 // indirect - github.com/kunwardeep/paralleltest v1.0.14 // indirect - github.com/lasiar/canonicalheader v1.1.2 // indirect - github.com/ldez/exptostd v0.4.2 // indirect - github.com/ldez/gomoddirectives v0.6.1 // indirect - github.com/ldez/grignotin v0.9.0 // indirect - github.com/ldez/tagliatelle v0.7.1 // indirect - github.com/ldez/usetesting v0.4.2 // indirect + github.com/kulti/thelper v0.7.1 // indirect + github.com/kunwardeep/paralleltest v1.0.16 // indirect + github.com/ldez/exptostd v0.4.5 // indirect + github.com/ldez/gomoddirectives v0.10.0 // indirect + github.com/ldez/grignotin v0.10.1 // indirect + github.com/ldez/structtags v0.6.1 // indirect + github.com/ldez/tagliatelle v0.8.0 // indirect + github.com/ldez/usetesting v0.5.0 // indirect github.com/leonklingele/grouper v1.1.2 // indirect - github.com/lucasb-eyer/go-colorful v1.2.0 // indirect + github.com/lucasb-eyer/go-colorful v1.4.1 // indirect github.com/macabu/inamedparam v0.2.0 // indirect github.com/magiconair/properties v1.8.6 // indirect - github.com/manuelarte/funcorder v0.2.1 // indirect - github.com/maratori/testableexamples v1.0.0 // indirect - github.com/maratori/testpackage v1.1.1 // indirect + github.com/manuelarte/embeddedstructfieldcheck v0.4.0 // indirect + github.com/manuelarte/funcorder v0.6.0 // indirect + github.com/maratori/testableexamples v1.0.1 // indirect + github.com/maratori/testpackage v1.1.2 // indirect github.com/matoous/godox v1.1.0 // indirect - github.com/mattn/go-colorable v0.1.14 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-runewidth v0.0.16 // indirect - github.com/mgechev/revive v1.9.0 // indirect + github.com/mattn/go-colorable v0.1.16 // indirect + github.com/mattn/go-isatty v0.0.22 // indirect + github.com/mattn/go-runewidth v0.0.24 // indirect + github.com/mgechev/revive v1.17.1 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect @@ -189,47 +205,45 @@ require ( github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect github.com/moricho/tparallel v0.3.2 // indirect - github.com/muesli/termenv v0.16.0 // indirect + github.com/muesli/cancelreader v0.2.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/nakabonne/nestif v0.3.1 // indirect - github.com/nishanths/exhaustive v0.12.0 // indirect - github.com/nishanths/predeclared v0.2.2 // indirect - github.com/nunnatsa/ginkgolinter v0.19.1 // indirect - github.com/olekukonko/tablewriter v0.0.5 // indirect - github.com/onsi/ginkgo/v2 v2.32.1 // indirect - github.com/openai/openai-go/v3 v3.42.0 // indirect + github.com/nishanths/exhaustive v0.15.0 // indirect + github.com/nishanths/predeclared v0.3.0 // indirect + github.com/nunnatsa/ginkgolinter v0.24.0 // indirect + github.com/openai/openai-go/v3 v3.52.0 // indirect github.com/otiai10/copy v1.14.0 // indirect github.com/pb33f/ordered-map/v2 v2.3.1 // indirect github.com/pelletier/go-toml v1.9.5 // indirect - github.com/pelletier/go-toml/v2 v2.2.4 // indirect + github.com/pelletier/go-toml/v2 v2.4.3 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/polyfloyd/go-errorlint v1.8.0 // indirect github.com/prometheus/client_golang v1.24.0 // indirect github.com/prometheus/client_model v0.6.2 // indirect github.com/prometheus/common v0.70.0 // indirect github.com/prometheus/procfs v0.21.1 // indirect - github.com/quasilyte/go-ruleguard v0.4.4 // indirect - github.com/quasilyte/go-ruleguard/dsl v0.3.22 // indirect + github.com/quasilyte/go-ruleguard v0.4.5 // indirect + github.com/quasilyte/go-ruleguard/dsl v0.3.23 // indirect github.com/quasilyte/gogrep v0.5.0 // indirect github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect - github.com/raeperd/recvcheck v0.2.0 // indirect + github.com/raeperd/recvcheck v0.3.1 // indirect github.com/rivo/uniseg v0.4.7 // indirect - github.com/rogpeppe/go-internal v1.14.1 // indirect + github.com/rogpeppe/go-internal v1.16.0 // indirect github.com/ryancurrah/gomodguard v1.4.1 // indirect - github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect + github.com/ryancurrah/gomodguard/v2 v2.1.3 // indirect + github.com/ryanrolds/sqlclosecheck v0.6.0 // indirect github.com/sanposhiho/wastedassign/v2 v2.1.0 // indirect - github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect + github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 // indirect github.com/sashamelentyev/interfacebloat v1.1.0 // indirect - github.com/sashamelentyev/usestdlibvars v1.28.0 // indirect - github.com/securego/gosec/v2 v2.28.0 // indirect + github.com/sashamelentyev/usestdlibvars v1.29.0 // indirect + github.com/securego/gosec/v2 v2.29.0 // indirect github.com/sergi/go-diff v1.2.0 // indirect github.com/shopspring/decimal v1.4.0 // indirect - github.com/sirupsen/logrus v1.9.4 // indirect + github.com/sirupsen/logrus v1.10.2 // indirect github.com/sivchari/containedctx v1.0.3 // indirect - github.com/sonatard/noctx v0.1.0 // indirect - github.com/sourcegraph/go-diff v0.7.0 // indirect - github.com/spf13/afero v1.14.0 // indirect + github.com/sonatard/noctx v0.5.1 // indirect + github.com/sourcegraph/go-diff v0.9.0 // indirect + github.com/spf13/afero v1.15.0 // indirect github.com/spf13/cast v1.10.0 // indirect github.com/spf13/cobra v1.10.2 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect @@ -237,34 +251,35 @@ require ( github.com/spf13/viper v1.12.0 // indirect github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect github.com/standard-webhooks/standard-webhooks/libraries v0.0.1 // indirect - github.com/stbenjam/no-sprintf-host-port v0.2.0 // indirect + github.com/stbenjam/no-sprintf-host-port v0.3.1 // indirect github.com/stretchr/objx v0.5.3 // indirect github.com/stretchr/testify v1.12.1 // indirect github.com/subosito/gotenv v1.4.1 // indirect - github.com/tdakkota/asciicheck v0.4.1 // indirect - github.com/tetafro/godot v1.5.0 // indirect + github.com/tetafro/godot v1.5.6 // indirect github.com/tidwall/gjson v1.19.0 // indirect github.com/tidwall/match v1.2.0 // indirect github.com/tidwall/pretty v1.2.1 // indirect github.com/tidwall/sjson v1.2.5 // indirect - github.com/timakin/bodyclose v0.0.0-20241222091800-1db5c5ca4d67 // indirect - github.com/timonwong/loggercheck v0.11.0 // indirect - github.com/tomarrell/wrapcheck/v2 v2.11.0 // indirect + github.com/timakin/bodyclose v0.0.0-20260723120731-857993a2939c // indirect + github.com/timonwong/loggercheck v0.13.0 // indirect + github.com/tomarrell/wrapcheck/v2 v2.13.0 // indirect github.com/tommy-muehle/go-mnd/v2 v2.5.1 // indirect github.com/ultraware/funlen v0.2.0 // indirect github.com/ultraware/whitespace v0.2.0 // indirect - github.com/uudashr/gocognit v1.2.0 // indirect - github.com/uudashr/iface v1.3.1 // indirect + github.com/uudashr/gocognit v1.3.0 // indirect + github.com/uudashr/iface v1.5.3 // indirect github.com/x448/float16 v0.8.4 // indirect github.com/xen0n/gosmopolitan v1.3.0 // indirect github.com/xlab/treeprint v1.2.0 // indirect - github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect + github.com/xo/terminfo v1.0.0 // indirect github.com/yagipy/maintidx v1.0.0 // indirect github.com/yeya24/promlinter v0.3.0 // indirect github.com/ykadowak/zerologlint v0.1.5 // indirect gitlab.com/bosi/decorder v0.4.2 // indirect - go-simpler.org/musttag v0.13.0 // indirect - go-simpler.org/sloglint v0.11.0 // indirect + go-simpler.org/musttag v0.14.0 // indirect + go-simpler.org/sloglint v0.12.0 // indirect + go.augendre.info/arangolint v0.4.0 // indirect + go.augendre.info/fatcontext v0.10.1 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 // indirect @@ -275,24 +290,23 @@ require ( go.opentelemetry.io/otel/sdk v1.47.0 // indirect go.opentelemetry.io/otel/sdk/metric v1.47.0 // indirect go.opentelemetry.io/otel/trace v1.47.0 // indirect - go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.28.0 // indirect go.yaml.in/yaml/v2 v2.4.4 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect go.yaml.in/yaml/v4 v4.0.0-rc.6 // indirect - golang.org/x/crypto v0.56.0 // indirect - golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac // indirect - golang.org/x/mod v0.40.0 // indirect - golang.org/x/net v0.58.0 // indirect - golang.org/x/sync v0.22.0 // indirect - golang.org/x/sys v0.48.0 // indirect - golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5 // indirect - golang.org/x/text v0.41.0 // indirect - golang.org/x/tools v0.49.0 // indirect + golang.org/x/crypto v0.58.0 // indirect + golang.org/x/exp/typeparams v0.0.0-20260811152304-ee035b5b010f // indirect + golang.org/x/mod v0.42.0 // indirect + golang.org/x/net v0.61.0 // indirect + golang.org/x/sync v0.24.0 // indirect + golang.org/x/sys v0.49.0 // indirect + golang.org/x/telemetry v0.0.0-20261009151841-97e8ea77aa2a // indirect + golang.org/x/text v0.43.0 // indirect + golang.org/x/tools v0.52.0 // indirect golang.org/x/vuln v1.1.4 // indirect - google.golang.org/api v0.288.0 // indirect - google.golang.org/genai v1.63.0 // indirect + google.golang.org/api v0.293.0 // indirect + google.golang.org/genai v1.69.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260819154853-08b0e4226688 // indirect google.golang.org/grpc v1.83.2 // indirect @@ -302,7 +316,7 @@ require ( gopkg.in/ini.v1 v1.67.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - honnef.co/go/tools v0.6.1 // indirect + honnef.co/go/tools v0.8.2 // indirect k8s.io/api v0.37.0 // indirect k8s.io/apiextensions-apiserver v0.37.0 // indirect k8s.io/apimachinery v0.37.0 // indirect @@ -311,8 +325,8 @@ require ( k8s.io/klog/v2 v2.140.0 // indirect k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad // indirect k8s.io/utils v0.0.0-20260626114624-be93311217bd // indirect - mvdan.cc/gofumpt v0.7.0 // indirect - mvdan.cc/unparam v0.0.0-20250301125049-0df0534333a4 // indirect + mvdan.cc/gofumpt v0.12.0 // indirect + mvdan.cc/unparam v0.0.0-20260823230713-2fa3d841b0c8 // indirect sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20260216173200-e4c1c38bcbdb // indirect sigs.k8s.io/controller-tools v0.20.0 // indirect sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect diff --git a/tools/go.sum b/tools/go.sum index fe708a7..c2b0c50 100644 --- a/tools/go.sum +++ b/tools/go.sum @@ -1,73 +1,89 @@ -4d63.com/gocheckcompilerdirectives v1.3.0 h1:Ew5y5CtcAAQeTVKUVFrE7EwHMrTO6BggtEj8BZSjZ3A= -4d63.com/gocheckcompilerdirectives v1.3.0/go.mod h1:ofsJ4zx2QAuIP/NO/NAh1ig6R1Fb18/GI7RVMwz7kAY= +4d63.com/gocheckcompilerdirectives v1.4.0 h1:ZLq62rbGWVmQhiZ8kuNVIT/M09xCSTdJz9K3xOdT/CY= +4d63.com/gocheckcompilerdirectives v1.4.0/go.mod h1:9ZOAiMOjqC/nRwci2fcUXVHUNLG/cH6r6rhUh+jTFtQ= 4d63.com/gochecknoglobals v0.2.2 h1:H1vdnwnMaZdQW/N+NrkT1SZMTBmcwHe9Vq8lJcYYTtU= 4d63.com/gochecknoglobals v0.2.2/go.mod h1:lLxwTQjL5eIesRbvnzIP3jZtG140FnTdz+AlMa+ogt0= al.essio.dev/pkg/shellescape v1.5.1 h1:86HrALUujYS/h+GtqoB26SBEdkWfmMI6FubjXlsXyho= al.essio.dev/pkg/shellescape v1.5.1/go.mod h1:6sIqp7X2P6mThCQ7twERpZTuigpr6KbZWtls1U8I890= cel.dev/expr v0.25.2 h1:K6j46C81hXtZQfuX60cVWQFBJahKSE2gfRbNuvr5bFs= cel.dev/expr v0.25.2/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4= +charm.land/lipgloss/v2 v2.0.6 h1:EaGKeuA8FvF+v2BT5VmZd2LoYLaMZJXA5n34th8nCIQ= +charm.land/lipgloss/v2 v2.0.6/go.mod h1:ipDDJNSGa1hlwDtSfW1s2/xR8Vdhbut4PXh2zEKZd0Q= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.123.0 h1:2NAUJwPR47q+E35uaJeYoNhuNEM9kM8SjgRgdeOJUSE= cloud.google.com/go v0.123.0/go.mod h1:xBoMV08QcqUGuPW65Qfm1o9Y4zKZBpGS+7bImXLTAZU= -cloud.google.com/go/auth v0.21.0 h1:g/QwYfYb2Ai6HH8oomAOyBaIHLbscZ4+T/F/f5JZHkE= -cloud.google.com/go/auth v0.21.0/go.mod h1:M9o2Oz+YI2jAfxewJgb1vyI3vceHF+eohmxyzmrl+9s= +cloud.google.com/go/auth v0.23.2 h1:pxSCpfiji41hpzpPdMCftEUCezpgpqmmDdYiAjCKXxo= +cloud.google.com/go/auth v0.23.2/go.mod h1:4DhBRcqvtljQN3dJ57qtqbib5ZGCYE5f2crfiiC2EM0= cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs= cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10= +codeberg.org/chavacava/garif v0.2.1 h1:K9oYxSlvlXrHXyW26Z4q61bTpJDo1wbvXcYKar/F/LM= +codeberg.org/chavacava/garif v0.2.1/go.mod h1:oHnDSmc0f9K1MeE+MQD/yjkiIB5Xsn5y3S9Dg96Xk84= +codeberg.org/polyfloyd/go-errorlint v1.9.0 h1:VkdEEmA1VBpH6ecQoMR4LdphVI3fA4RrCh2an7YmodI= +codeberg.org/polyfloyd/go-errorlint v1.9.0/go.mod h1:GPRRu2LzVijNn4YkrZYJfatQIdS+TrcK8rL5Xs24qw8= dario.cat/mergo v1.0.2 h1:85+piFYR1tMbRrLcDwR18y4UKJ3aH1Tbzi24VRW1TK8= dario.cat/mergo v1.0.2/go.mod h1:E/hbnu0NxMFBjpMIE34DRGLWqDy0g5FuKDhCb31ngxA= -github.com/4meepo/tagalign v1.4.2 h1:0hcLHPGMjDyM1gHG58cS73aQF8J4TdVR96TZViorO9E= -github.com/4meepo/tagalign v1.4.2/go.mod h1:+p4aMyFM+ra7nb41CnFG6aSDXqRxU/w1VQqScKqDARI= -github.com/Abirdcfly/dupword v0.1.3 h1:9Pa1NuAsZvpFPi9Pqkd93I7LIYRURj+A//dFd5tgBeE= -github.com/Abirdcfly/dupword v0.1.3/go.mod h1:8VbB2t7e10KRNdwTVoxdBaxla6avbhGzb8sCTygUMhw= -github.com/Antonboom/errname v1.1.0 h1:A+ucvdpMwlo/myWrkHEUEBWc/xuXdud23S8tmTb/oAE= -github.com/Antonboom/errname v1.1.0/go.mod h1:O1NMrzgUcVBGIfi3xlVuvX8Q/VP/73sseCaAppfjqZw= -github.com/Antonboom/nilnil v1.1.0 h1:jGxJxjgYS3VUUtOTNk8Z1icwT5ESpLH/426fjmQG+ng= -github.com/Antonboom/nilnil v1.1.0/go.mod h1:b7sAlogQjFa1wV8jUW3o4PMzDVFLbTux+xnQdvzdcIE= -github.com/Antonboom/testifylint v1.6.1 h1:6ZSytkFWatT8mwZlmRCHkWz1gPi+q6UBSbieji2Gj/o= -github.com/Antonboom/testifylint v1.6.1/go.mod h1:k+nEkathI2NFjKO6HvwmSrbzUcQ6FAnbZV+ZRrnXPLI= +dev.gaijin.team/go/exhaustruct/v4 v4.0.0 h1:873r7aNneqoBB3IaFIzhvt2RFYTuHgmMjoKfwODoI1Y= +dev.gaijin.team/go/exhaustruct/v4 v4.0.0/go.mod h1:aZ/k2o4Y05aMJtiux15x8iXaumE88YdiB0Ai4fXOzPI= +dev.gaijin.team/go/exhaustruct/v5 v5.2.0 h1:HZB49Fshn8qHJCi9VzYtrcnR1jbLteRHXfnQz8Adams= +dev.gaijin.team/go/exhaustruct/v5 v5.2.0/go.mod h1:5IshpqhgGdKIrF8lBmi3M6YKmI7T3hMzAL9nrflko88= +dev.gaijin.team/go/golib v0.8.1 h1:JYju4x9BSo+QD/AYeHULVDcvEhiFg8wOi6pT0IaZF5E= +dev.gaijin.team/go/golib v0.8.1/go.mod h1:c5fu7t1RSGMxSQgcUYO1sODbzsYnOCXJLmHeNG1Eb+0= +github.com/4meepo/tagalign v1.4.4 h1:052JDGj2pBORc6NkD30dDXpsUpoYszDeUwr9/5YZuVA= +github.com/4meepo/tagalign v1.4.4/go.mod h1:00WwRjiuSbrRJnSVeGWPLp2epS5Q/l4UEy0apLLS37c= +github.com/Abirdcfly/dupword v0.1.8 h1:SrhcUuGsROBuChFxHALRYzyyPODWn9zwghmzPvD9Cd8= +github.com/Abirdcfly/dupword v0.1.8/go.mod h1:XZrhVnI7YGpsTiWZANSQaBJ4QpL/Tq5vIEdKJJAs9WI= +github.com/AdminBenni/iota-mixing v1.0.0 h1:Os6lpjG2dp/AE5fYBPAA1zfa2qMdCAWwPMCgpwKq7wo= +github.com/AdminBenni/iota-mixing v1.0.0/go.mod h1:i4+tpAaB+qMVIV9OK3m4/DAynOd5bQFaOu+2AhtBCNY= +github.com/AlwxSin/noinlineerr v1.0.6 h1:KAvuxunTe9QxvqrFB7nZTdb/7Wzas4AvifslTnG0Ld8= +github.com/AlwxSin/noinlineerr v1.0.6/go.mod h1:+QgkkoYrMH7RHvcdxdlI7vYYEdgeoFOVjU9sUhw/rQc= +github.com/Antonboom/errname v1.1.2 h1:dxwONZJua3VB8Xh/VaCjqAcqF645sWWv7xj26zy7tdQ= +github.com/Antonboom/errname v1.1.2/go.mod h1:YeZIpgLMxT+SNkruGgYkLhzq/9vs3fsolTZegKaKDZI= +github.com/Antonboom/nilnil v1.1.2 h1:aNlFuJhaEseXe4fHO3xbjXlSeEiQVYa2lEkWD2s2hAY= +github.com/Antonboom/nilnil v1.1.2/go.mod h1:0ynwvphOLmAuMwTNDyBnDZmSwZoDpcFXmUHmzoHH2WA= +github.com/Antonboom/testifylint v1.6.4 h1:gs9fUEy+egzxkEbq9P4cpcMB6/G0DYdMeiFS87UiqmQ= +github.com/Antonboom/testifylint v1.6.4/go.mod h1:YO33FROXX2OoUfwjz8g+gUxQXio5i9qpVy7nXGbxDD4= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk= github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= -github.com/Crocmagnon/fatcontext v0.7.2 h1:BY5/dUhs2kuD3sDn7vZrgOneRib5EHk9GOiyK8Vg+14= -github.com/Crocmagnon/fatcontext v0.7.2/go.mod h1:OAZCUteH59eiddbJZ9/bF4ppC140jYD/hepU2FDkFk4= -github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= -github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= -github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.1 h1:Sz1JIXEcSfhz7fUi7xHnhpIE0thVASYjvosApmHuD2k= -github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.1/go.mod h1:n/LSCXNuIYqVfBlVXyHfMQkZDdp1/mmxfSjADd3z1Zg= +github.com/ClickHouse/clickhouse-go-linter v1.2.1 h1:zGEKIyd5YL08ieWG/LOUmlau2DxbxPVOfAeo+4Jz3ck= +github.com/ClickHouse/clickhouse-go-linter v1.2.1/go.mod h1:pLorS7ffPTfuUV9M0SJgfHA/h/WQPQUk2FWG9x74cQ4= +github.com/Djarvur/go-err113 v0.1.1 h1:eHfopDqXRwAi+YmCUas75ZE0+hoBHJ2GQNLYRSxao4g= +github.com/Djarvur/go-err113 v0.1.1/go.mod h1:IaWJdYFLg76t2ihfflPZnM1LIQszWOsFDh2hhhAVF6k= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE= github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= github.com/Masterminds/sprig/v3 v3.3.0 h1:mQh0Yrg1XPo6vjYXgtf5OtijNAKJRNcTdOOGZe3tPhs= github.com/Masterminds/sprig/v3 v3.3.0/go.mod h1:Zy1iXRYNqNLUolqCpL4uhk6SHUMAOSCzdgBfDb35Lz0= +github.com/MirrexOne/unqueryvet v1.5.4 h1:38QOxShO7JmMWT+eCdDMbcUgGCOeJphVkzzRgyLJgsQ= +github.com/MirrexOne/unqueryvet v1.5.4/go.mod h1:fs9Zq6eh1LRIhsDIsxf9PONVUjYdFHdtkHIgZdJnyPU= github.com/OpenPeeDeeP/depguard/v2 v2.2.1 h1:vckeWVESWp6Qog7UZSARNqfu/cZqvki8zsuj3piCMx4= github.com/OpenPeeDeeP/depguard/v2 v2.2.1/go.mod h1:q4DKzC4UcVaAvcfd41CZh0PWpGgzrVxUYBlgKNGquUo= github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0= github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= -github.com/alecthomas/chroma/v2 v2.16.0 h1:QC5ZMizk67+HzxFDjQ4ASjni5kWBTGiigRG1u23IGvA= -github.com/alecthomas/chroma/v2 v2.16.0/go.mod h1:RVX6AvYm4VfYe/zsk7mjHueLDZor3aWCNE14TFlepBk= -github.com/alecthomas/go-check-sumtype v0.3.1 h1:u9aUvbGINJxLVXiFvHUlPEaD7VDULsrxJb4Aq31NLkU= -github.com/alecthomas/go-check-sumtype v0.3.1/go.mod h1:A8TSiN3UPRw3laIgWEUOHHLPa6/r9MtoigdlP5h3K/E= -github.com/alecthomas/repr v0.4.0 h1:GhI2A8MACjfegCPVq9f1FLvIBS+DrQ2KQBFZP1iFzXc= -github.com/alecthomas/repr v0.4.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= +github.com/alecthomas/chroma/v2 v2.27.0 h1:FodwmyOBgJULFYmDqibcp9pvfDLWdtPRh9v/r5BXYZs= +github.com/alecthomas/chroma/v2 v2.27.0/go.mod h1:NjJ3ciIgrqBNeIkWZ4e46nseoLDslxU1LmfCoL+wcY8= +github.com/alecthomas/go-check-sumtype v0.5.1-0.20260828200218-ae6904d28606 h1:dXPJ+uOJLWb8rjlAuLX7JPiRJtZKw/53Ol+WxdDJ1Eo= +github.com/alecthomas/go-check-sumtype v0.5.1-0.20260828200218-ae6904d28606/go.mod h1:ZH31IJyNpxpStxP2ayCcPQz+3T2G/OnxIQqe4LWvSDw= +github.com/alecthomas/repr v0.5.2 h1:SU73FTI9D1P5UNtvseffFSGmdNci/O6RsqzeXJtP0Qs= +github.com/alecthomas/repr v0.5.2/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/alexkohler/nakedret/v2 v2.0.6 h1:ME3Qef1/KIKr3kWX3nti3hhgNxw6aqN5pZmQiFSsuzQ= github.com/alexkohler/nakedret/v2 v2.0.6/go.mod h1:l3RKju/IzOMQHmsEvXwkqMDzHHvurNQfAgE1eVmT40Q= -github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= -github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= +github.com/alexkohler/prealloc v1.1.0 h1:cKGRBqlXw5iyQGLYhrXrDlcHxugXpTq4tQ5c91wkf8M= +github.com/alexkohler/prealloc v1.1.0/go.mod h1:fT39Jge3bQrfA7nPMDngUfvUbQGQeJyGQnR+913SCig= +github.com/alfatraining/structtag v1.0.0 h1:2qmcUqNcCoyVJ0up879K614L9PazjBSFruTB0GOFjCc= +github.com/alfatraining/structtag v1.0.0/go.mod h1:p3Xi5SwzTi+Ryj64DqjLWz7XurHxbGsq6y3ubePJPus= github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= github.com/alingse/nilnesserr v0.2.0 h1:raLem5KG7EFVb4UIDAXgrv3N2JIaffeKNtcEXkEWd/w= github.com/alingse/nilnesserr v0.2.0/go.mod h1:1xJPrXonEtX7wyTq8Dytns5P2hNzoWymVUIaKm4HNFg= -github.com/anthropics/anthropic-sdk-go v1.57.0 h1:iEAcPbUKfJ2Iqz9uN/jEndCNW2+x7OYLHDidXDhPjI0= -github.com/anthropics/anthropic-sdk-go v1.57.0/go.mod h1:3EfIfmFqxH6rbiLcIP4tPFyXL/IHakx2wDG4OU+TIEI= +github.com/anthropics/anthropic-sdk-go v1.66.0 h1:/CKwgscn0Pe1q4U8aFInSOt/v06JeMc9Aq4vIlctCFw= +github.com/anthropics/anthropic-sdk-go v1.66.0/go.mod h1:3EfIfmFqxH6rbiLcIP4tPFyXL/IHakx2wDG4OU+TIEI= github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= -github.com/ashanbrown/forbidigo v1.6.0 h1:D3aewfM37Yb3pxHujIPSpTf6oQk9sc9WZi8gerOIVIY= -github.com/ashanbrown/forbidigo v1.6.0/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= -github.com/ashanbrown/makezero v1.2.0 h1:/2Lp1bypdmK9wDIq7uWBlDF1iMUpIIS4A+pF6C9IEUU= -github.com/ashanbrown/makezero v1.2.0/go.mod h1:dxlPhHbDMC6N6xICzFBSK+4njQDdK8euNO0qjQMtGY4= -github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= -github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= +github.com/ashanbrown/forbidigo/v2 v2.3.1 h1:KAZijvQ7zeIBKbhikT4jCm0TLYXC4u78bTiLh/8JROI= +github.com/ashanbrown/forbidigo/v2 v2.3.1/go.mod h1:2QDkLTzU6TV937eFROamXrW92M3paehdae4HCDCOZCM= +github.com/ashanbrown/makezero/v2 v2.2.1 h1:A7uU8dgB1PA9aelTxHMfHIQ8Qev8AB3JLxJUBUsejqM= +github.com/ashanbrown/makezero/v2 v2.2.1/go.mod h1:aEGT/9q3S8DHeE57C88z2a6xydvgx8J5hgXIGWgo0MY= github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk= github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -80,18 +96,20 @@ github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= github.com/bombsimon/wsl/v4 v4.7.0 h1:1Ilm9JBPRczjyUs6hvOPKvd7VL1Q++PL8M0SXBDf+jQ= github.com/bombsimon/wsl/v4 v4.7.0/go.mod h1:uV/+6BkffuzSAVYD+yGyld1AChO7/EuLrCF/8xTiapg= -github.com/breml/bidichk v0.3.3 h1:WSM67ztRusf1sMoqH6/c4OBCUlRVTKq+CbSeo0R17sE= -github.com/breml/bidichk v0.3.3/go.mod h1:ISbsut8OnjB367j5NseXEGGgO/th206dVa427kR8YTE= +github.com/bombsimon/wsl/v5 v5.9.0 h1:WCrgZ7RQnZO5oEwbVTlYgBdU3wL294kR1BSWV8vTfsU= +github.com/bombsimon/wsl/v5 v5.9.0/go.mod h1:kjo4HiAV5FDkHC8/uzJq9mBffEEd6WT/nvN7DoMovDM= +github.com/breml/bidichk v0.3.4 h1:70G6w80G6GDZTUURHTC5gBKVjMLMw2736CzXquSf5Ek= +github.com/breml/bidichk v0.3.4/go.mod h1:GOHprnh4i0V7HrvWjtbvbpicTUcqoYt9zYESKcJkk4M= github.com/breml/errchkjson v0.4.1 h1:keFSS8D7A2T0haP9kzZTi7o26r7kE3vymjZNeNDRDwg= github.com/breml/errchkjson v0.4.1/go.mod h1:a23OvR6Qvcl7DG/Z4o0el6BRAjKnaReoPQFciAl9U3s= -github.com/buger/jsonparser v1.2.0 h1:4EFcvK1kD4jyj6YqNK6skK6w+y7FHHBR+XBCtxwu/6g= -github.com/buger/jsonparser v1.2.0/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= -github.com/butuzov/ireturn v0.4.0 h1:+s76bF/PfeKEdbG8b54aCocxXmi0wvYdOVsWxVO7n8E= -github.com/butuzov/ireturn v0.4.0/go.mod h1:ghI0FrCmap8pDWZwfPisFD1vEc56VKH4NpQUxDHta70= -github.com/butuzov/mirror v1.3.0 h1:HdWCXzmwlQHdVhwvsfBb2Au0r3HyINry3bDWLYXiKoc= -github.com/butuzov/mirror v1.3.0/go.mod h1:AEij0Z8YMALaq4yQj9CPPVYOyJQyiexpQEQgihajRfI= -github.com/catenacyber/perfsprint v0.9.1 h1:5LlTp4RwTooQjJCvGEFV6XksZvWE7wCOUvjD2z0vls0= -github.com/catenacyber/perfsprint v0.9.1/go.mod h1:q//VWC2fWbcdSLEY1R3l8n0zQCDPdE4IjZwyY1HMunM= +github.com/buger/jsonparser v1.6.1 h1:I0phFv0PlbLHnM7TZAVjZ2MJ2/eWRTDyuO7GLR98IEs= +github.com/buger/jsonparser v1.6.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= +github.com/butuzov/ireturn v0.4.1 h1:vWb3NO4t77iku/sjCQ/2pHTQeOmxEhjIriJqRLg1Y+I= +github.com/butuzov/ireturn v0.4.1/go.mod h1:q+DXKzTDV5guNuXLnIab9fKXizTn2miZHLhxH7V/GB4= +github.com/butuzov/mirror v1.3.3 h1:v0RsWBhfFc1RQqE/f3sHpSttKDtodFn0gFmtYyD4/hA= +github.com/butuzov/mirror v1.3.3/go.mod h1:h9BzzwYnTiHO0GzgvaTqIg7VSsOUhdIv51cHFFBmX1w= +github.com/catenacyber/perfsprint v0.10.1 h1:u7Riei30bk46XsG8nknMhKLXG9BcXz3+3tl/WpKm0PQ= +github.com/catenacyber/perfsprint v0.10.1/go.mod h1:DJTGsi/Zufpuus6XPGJyKOTMELe347o6akPvWG9Zcsc= github.com/ccojocar/zxcvbn-go v1.0.4 h1:FWnCIRMXPj43ukfX000kvBZvV6raSxakYr1nzyNrUcc= github.com/ccojocar/zxcvbn-go v1.0.4/go.mod h1:3GxGX+rHmueTUMvm5ium7irpyjmm7ikxYFOSJB21Das= github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= @@ -99,31 +117,35 @@ github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F9 github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/charithe/durationcheck v0.0.10 h1:wgw73BiocdBDQPik+zcEoBG/ob8uyBHf2iyoHGPf5w4= -github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ= -github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc h1:4pZI35227imm7yK2bGPcfpFEmuY1gc2YSTShr4iJBfs= -github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc/go.mod h1:X4/0JoqgTIPSFcRA/P6INZzIuyqdFY5rm8tb41s9okk= -github.com/charmbracelet/lipgloss v1.1.0 h1:vYXsiLHVkK7fp74RkV7b2kq9+zDLoEU4MZoFqR/noCY= -github.com/charmbracelet/lipgloss v1.1.0/go.mod h1:/6Q8FR2o+kj8rz4Dq0zQc3vYf7X+B0binUUBwA0aL30= -github.com/charmbracelet/x/ansi v0.8.0 h1:9GTq3xq9caJW8ZrBTe0LIe2fvfLR/bYXKTx2llXn7xE= -github.com/charmbracelet/x/ansi v0.8.0/go.mod h1:wdYl/ONOLHLIVmQaxbIYEC/cRKOQyjTkowiI4blgS9Q= -github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd h1:vy0GVL4jeHEwG5YOXDmi86oYw2yuYUGqz6a8sLwg0X8= -github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd/go.mod h1:xe0nKWGd3eJgtqZRaN9RjMtK7xUYchjzPr7q6kcvCCs= -github.com/charmbracelet/x/term v0.2.1 h1:AQeHeLZ1OqSXhrAWpYUtZyX1T3zVxfpZuEQMIQaGIAQ= -github.com/charmbracelet/x/term v0.2.1/go.mod h1:oQ4enTYFV7QN4m0i9mzHrViD7TQKvNEEkHUMCmsxdUg= -github.com/chavacava/garif v0.1.0 h1:2JHa3hbYf5D9dsgseMKAmc/MZ109otzgNFk5s87H9Pc= -github.com/chavacava/garif v0.1.0/go.mod h1:XMyYCkEL58DF0oyW4qDjjnPWONs2HBqYKI+UIPD+Gww= +github.com/charithe/durationcheck v0.0.11 h1:g1/EX1eIiKS57NTWsYtHDZ/APfeXKhye1DidBcABctk= +github.com/charithe/durationcheck v0.0.11/go.mod h1:x5iZaixRNl8ctbM+3B2RrPG5t856TxRyVQEnbIEM2X4= +github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q= +github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q= +github.com/charmbracelet/ultraviolet v0.0.0-20260811164956-006e29f97886 h1:rdnVWKgJpTVXKuKuJyxDJ+NFJdUaUqGvyGy61OcvlbA= +github.com/charmbracelet/ultraviolet v0.0.0-20260811164956-006e29f97886/go.mod h1:nAw0d9PhFp1qdzi2xhQU5YOu5sVpDIHWlaW2Uz/bCro= +github.com/charmbracelet/x/ansi v0.11.8 h1:JMFwp0CgDC2+jcOB162HH5k7I3FVbgFSMMYg7dSPBQQ= +github.com/charmbracelet/x/ansi v0.11.8/go.mod h1:ZNN+3mXny/516oTQPLMPIBeSINvNJJQ8uQXDgbeJxY0= +github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk= +github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI= +github.com/charmbracelet/x/termios v0.1.1 h1:o3Q2bT8eqzGnGPOYheoYS8eEleT5ZVNYNy8JawjaNZY= +github.com/charmbracelet/x/termios v0.1.1/go.mod h1:rB7fnv1TgOPOyyKRJ9o+AsTU/vK5WHJ2ivHeut/Pcwo= +github.com/charmbracelet/x/windows v0.2.2 h1:IofanmuvaxnKHuV04sC0eBy/smG6kIKrWG2/jYn2GuM= +github.com/charmbracelet/x/windows v0.2.2/go.mod h1:/8XtdKZzedat74NQFn0NGlGL4soHB0YQZrETF96h75k= github.com/ckaznocha/intrange v0.3.1 h1:j1onQyXvHUsPWujDH6WIjhyH26gkRt/txNlV7LspvJs= github.com/ckaznocha/intrange v0.3.1/go.mod h1:QVepyz1AkUoFQkpEqksSYpNpUo3c5W7nWh/s6SHIJJk= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/clipperhouse/displaywidth v0.11.0 h1:lBc6kY44VFw+TDx4I8opi/EtL9m20WSEFgwIwO+UVM8= +github.com/clipperhouse/displaywidth v0.11.0/go.mod h1:bkrFNkf81G8HyVqmKGxsPufD3JhNl3dSqnGhOoSD/o0= +github.com/clipperhouse/uax29/v2 v2.7.0 h1:+gs4oBZ2gPfVrKPthwbMzWZDaAFPGYK72F0NJv2v7Vk= +github.com/clipperhouse/uax29/v2 v2.7.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/curioswitch/go-reassign v0.3.0 h1:dh3kpQHuADL3cobV/sSGETA8DOv457dwl+fbBAhrQPs= github.com/curioswitch/go-reassign v0.3.0/go.mod h1:nApPCCTtqLJN/s8HfItCcKV0jIPwluBOvZP+dsJGA88= -github.com/daixiang0/gci v0.13.6 h1:RKuEOSkGpSadkGbvZ6hJ4ddItT3cVZ9Vn9Rybk6xjl8= -github.com/daixiang0/gci v0.13.6/go.mod h1:12etP2OniiIdP4q+kjUGrC/rUagga7ODbqsom5Eo5Yk= -github.com/dave/dst v0.27.3 h1:P1HPoMza3cMEquVf9kKy8yXsFirry4zEnWOdYPOoIzY= -github.com/dave/dst v0.27.3/go.mod h1:jHh6EOibnHgcUW3WjKHisiooEkYwqpHLBSX1iOBhEyc= +github.com/daixiang0/gci v0.13.7 h1:+0bG5eK9vlI08J+J/NWGbWPTNiXPG4WhNLJOkSxWITQ= +github.com/daixiang0/gci v0.13.7/go.mod h1:812WVN6JLFY9S6Tv76twqmNqevN0pa3SX3nih0brVzQ= +github.com/dave/dst v0.28.0 h1:EIEuRC5XmVKuZF2OeyMahXX9ARVt6Xxr8vI0WtIY7K8= +github.com/dave/dst v0.28.0/go.mod h1:C4mfimBeSHfsgskhR/mUYSE05s2ih+PW6g9FP3c49tE= github.com/dave/jennifer v1.7.1 h1:B4jJJDHelWcDhlRQxWeo0Npa/pYKBLrirAQoTN45txo= github.com/dave/jennifer v1.7.1/go.mod h1:nXbxhEmQfOZhWml3D1cDK5M1FLnMSozpbFN/m3RmGZc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -132,8 +154,10 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/denis-tingaikin/go-header v0.5.0 h1:SRdnP5ZKvcO9KKRP1KJrhFR3RrlGuD+42t4429eC9k8= github.com/denis-tingaikin/go-header v0.5.0/go.mod h1:mMenU5bWrok6Wl2UsZjy+1okegmwQ3UgWl4V1D8gjlY= -github.com/dlclark/regexp2 v1.11.5 h1:Q/sSnsKerHeCkc/jSTNq1oCm7KiVgUMZRDUoRu0JQZQ= -github.com/dlclark/regexp2 v1.11.5/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= +github.com/dlclark/regexp2 v1.12.0 h1:0j4c5qQmnC6XOWNjP3PIXURXN2gWx76rd3KvgdPkCz8= +github.com/dlclark/regexp2 v1.12.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= +github.com/dlclark/regexp2/v2 v2.2.1 h1:mf4KkFUj0gJuarK8P+LgiS+Lit7m9N1yAwEfPbee7R0= +github.com/dlclark/regexp2/v2 v2.2.1/go.mod h1:avUrQvPaLz2DrFNHJF0taWAFFX2C1GMSSoeiqFjcBmU= github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/elastic/crd-ref-docs v0.3.0 h1:9bGSUkBR56Z7TuDGQAu3KGbBkagwwZ6RkZmS+qvDuDM= @@ -146,14 +170,14 @@ github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q= github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A= github.com/evanphx/json-patch/v5 v5.9.11 h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU= github.com/evanphx/json-patch/v5 v5.9.11/go.mod h1:3j+LviiESTElxA4p3EMKAB9HXj3/XEtnUf6OZxqIQTM= -github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= -github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= +github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w= +github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE= github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= github.com/felixge/httpsnoop v1.1.0 h1:3YtUj32ZZkqZtt3sZZsClsymw/QDuVfpNhoA31zeORc= github.com/felixge/httpsnoop v1.1.0/go.mod h1:Zqxgdd+1Rkcz8euOqdr7lqgCRJztwr5hp9vDSi5UZCE= -github.com/firefart/nonamedreturns v1.0.6 h1:vmiBcKV/3EqKY3ZiPxCINmpS431OcE1S47AQUwhrg8E= -github.com/firefart/nonamedreturns v1.0.6/go.mod h1:R8NisJnSIpvPWheCq0mNRXJok6D8h7fagJTF8EMEwCo= +github.com/firefart/nonamedreturns v1.0.8 h1:iB32Dl17zJl1zlVEj/WlUWgx0HiRyQ85OUw1WHa4/II= +github.com/firefart/nonamedreturns v1.0.8/go.mod h1:vxFNvm5AfP/8rgAKFzYmnqx0yp1HjrYsErZ9pHPTznA= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= @@ -162,10 +186,10 @@ github.com/fxamacker/cbor/v2 v2.9.1 h1:2rWm8B193Ll4VdjsJY28jxs70IdDsHRWgQYAI80+r github.com/fxamacker/cbor/v2 v2.9.1/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= -github.com/ghostiam/protogetter v0.3.13 h1:T4qt1JU0xvx8+jO30+JaA49fngUd6YNajqwk0Rn3t1s= -github.com/ghostiam/protogetter v0.3.13/go.mod h1:WZ0nw9pfzsgxuRsPOFQomgDVSWtDLJRfQJEhsGbmQMA= -github.com/go-critic/go-critic v0.13.0 h1:kJzM7wzltQasSUXtYyTl6UaPVySO6GkaR1thFnJ6afY= -github.com/go-critic/go-critic v0.13.0/go.mod h1:M/YeuJ3vOCQDnP2SU+ZhjgRzwzcBW87JqLpMJLrZDLI= +github.com/ghostiam/protogetter v1.0.1 h1:q4LLTx2KJHJpxrfO3BniUDWoFkoqWD/UlHhClBlUlLM= +github.com/ghostiam/protogetter v1.0.1/go.mod h1:50Fh5yZfs6SFGrd1FlmT04NcguyEOxyjNK5zGD6/EvM= +github.com/go-critic/go-critic v0.15.0 h1:MDUZIQKytIl+vPEc0Igw51m4uLTdi1ZGz2jatEqNs1g= +github.com/go-critic/go-critic v0.15.0/go.mod h1:3BPrw8nHATGm3o2n37cssOmJzpySGKCdY8JWkCzxgKQ= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -209,8 +233,8 @@ github.com/go-openapi/testify/enable/yaml/v2 v2.6.0 h1:gGHwAJ0R/5jU8BEGDbfRNR3hL github.com/go-openapi/testify/enable/yaml/v2 v2.6.0/go.mod h1:tY+St1SGq4NFl0QIqdTY4aEdbChAHxhyB77XQi9iJCo= github.com/go-openapi/testify/v2 v2.6.0 h1:5PKH2HE7YJ/LuRPQGvSxBRlFXNQhSetBLlGAgUEu3ug= github.com/go-openapi/testify/v2 v2.6.0/go.mod h1:SgsVHtfooshd0tublTtJ50FPKhujf47YRqauXXOUxfw= -github.com/go-quicktest/qt v1.101.0 h1:O1K29Txy5P2OK0dGo59b7b0LR6wKfIhttaAhHUyn7eI= -github.com/go-quicktest/qt v1.101.0/go.mod h1:14Bz/f7NwaXPtdYEgzsx46kqSxVwTbzVZsDC26tQJow= +github.com/go-quicktest/qt v1.102.0 h1:HSQxCeh5YZH3EL3W39ixjtyaEhcWSXQHtHnMBzSs474= +github.com/go-quicktest/qt v1.102.0/go.mod h1:p4lGIVX+8Wa6ZPNDvqcxq36XpUDLh42FLetFU7odllI= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8= @@ -242,8 +266,10 @@ github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM= github.com/goccy/go-yaml v1.19.2/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= -github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E= -github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0= +github.com/godoc-lint/godoc-lint v0.11.4 h1:N9zUYVJ/OkznBbrBsU/zODvua64EUplMBLQWStO3+1M= +github.com/godoc-lint/godoc-lint v0.11.4/go.mod h1:7usTXoxS0QYIi5usTSCPwR0w/6xLjcz450shXjLn3t4= +github.com/gofrs/flock v0.13.1 h1:jjREztyBeSKBZYAC+mgc1laB+xsgy4kYMf3FbKF2UBo= +github.com/gofrs/flock v0.13.1/go.mod h1:sf4BFiHwnvgxa25DlQoDqXQnwRMEOwqxRq37P6MzzmE= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= @@ -260,22 +286,30 @@ github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QD github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32 h1:WUvBfQL6EW/40l6OmeSBYQJNSif4O11+bmWEz+C7FYw= -github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32/go.mod h1:NUw9Zr2Sy7+HxzdjIULge71wI6yEg1lWQr7Evcu8K0E= -github.com/golangci/go-printf-func-name v0.1.0 h1:dVokQP+NMTO7jwO4bwsRwLWeudOVUPPyAKJuzv8pEJU= -github.com/golangci/go-printf-func-name v0.1.0/go.mod h1:wqhWFH5mUdJQhweRnldEywnR5021wTdZSNgwYceV14s= -github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d h1:viFft9sS/dxoYY0aiOTsLKO2aZQAPT4nlQCsimGcSGE= -github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d/go.mod h1:ivJ9QDg0XucIkmwhzCDsqcnxxlDStoTl89jDMIoNxKY= -github.com/golangci/golangci-lint/v2 v2.1.0 h1:HPYqlW3/3/seCmQ/CIiFZVN270uzYsI5quclssTWXLQ= -github.com/golangci/golangci-lint/v2 v2.1.0/go.mod h1:zJJo4g7aGiCv5cRYa+YUaWVazNBRzn4Kg7hdEKV0iXU= -github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95 h1:AkK+w9FZBXlU/xUmBtSJN1+tAI4FIvy5WtnUnY8e4p8= -github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95/go.mod h1:k9mmcyWKSTMcPPvQUCfRWWQ9VHJ1U9Dc0R7kaXAgtnQ= -github.com/golangci/misspell v0.6.0 h1:JCle2HUTNWirNlDIAUO44hUsKhOFqGPoC4LZxlaSXDs= -github.com/golangci/misspell v0.6.0/go.mod h1:keMNyY6R9isGaSAu+4Q8NMBwMPkh15Gtc8UCVoDtAWo= -github.com/golangci/plugin-module-register v0.1.1 h1:TCmesur25LnyJkpsVrupv1Cdzo+2f7zX0H6Jkw1Ol6c= -github.com/golangci/plugin-module-register v0.1.1/go.mod h1:TTpqoB6KkwOJMV8u7+NyXMrkwwESJLOkfl9TxR1DGFc= +github.com/golangci/asciicheck v0.5.0 h1:jczN/BorERZwK8oiFBOGvlGPknhvq0bjnysTj4nUfo0= +github.com/golangci/asciicheck v0.5.0/go.mod h1:5RMNAInbNFw2krqN6ibBxN/zfRFa9S6tA1nPdM0l8qQ= +github.com/golangci/canonicalheader v0.0.0-20260928145534-e18e5c5a078f h1:pOnwRNeWLPkADfkgqKcCP7RPQAS9OIzffaBaktRsKnk= +github.com/golangci/canonicalheader v0.0.0-20260928145534-e18e5c5a078f/go.mod h1:aXo+AVSX0pC3TRo2wAfR92YwBKfG6C2eal+omjKXwYw= +github.com/golangci/dupl v0.0.0-20260401084720-c99c5cf5c202 h1:CbTB8KpqnViI6lIXxp03Oclc4VFHi3K4BWC1TacsZ+A= +github.com/golangci/dupl v0.0.0-20260401084720-c99c5cf5c202/go.mod h1:NUw9Zr2Sy7+HxzdjIULge71wI6yEg1lWQr7Evcu8K0E= +github.com/golangci/go-printf-func-name v0.1.1 h1:hIYTFJqAGp1iwoIfsNTpoq1xZAarogrvjO9AfiW3B4U= +github.com/golangci/go-printf-func-name v0.1.1/go.mod h1:Es64MpWEZbh0UBtTAICOZiB+miW53w/K9Or/4QogJss= +github.com/golangci/gofmt v0.0.0-20260820135601-e84e05053792 h1:WL8YKrt3UbOBqSRU7GpP5BTtQTMWtVtj+mfPijgZeIg= +github.com/golangci/gofmt v0.0.0-20260820135601-e84e05053792/go.mod h1:te5hX0dW4C5r6YbXs+6ysNr8Q5UTmdIqGbb+mlFiYmA= +github.com/golangci/golangci-lint/v2 v2.15.0 h1:w94zf8HAYI7hm3164kwKsvZRuqXvY+YxeFoTbu1OLg8= +github.com/golangci/golangci-lint/v2 v2.15.0/go.mod h1:/FRI304IxqDVhX2o3ZZ0qp8Vvz8egJdzCY5A4GjvmTU= +github.com/golangci/golines v0.16.0 h1:xKdwzRvwzLd7V131B/dv90vUiEoTA0vQybdeqperPOg= +github.com/golangci/golines v0.16.0/go.mod h1:mCMgRQHiCvuALJOeaNtylu09zbzvS9Ka01dfvLLJios= +github.com/golangci/misspell v0.8.0 h1:qvxQhiE2/5z+BVRo1kwYA8yGz+lOlu5Jfvtx2b04Jbg= +github.com/golangci/misspell v0.8.0/go.mod h1:WZyyI2P3hxPY2UVHs3cS8YcllAeyfquQcKfdeE9AFVg= +github.com/golangci/plugin-module-register v0.1.2 h1:e5WM6PO6NIAEcij3B053CohVp3HIYbzSuP53UAYgOpg= +github.com/golangci/plugin-module-register v0.1.2/go.mod h1:1+QGTsKBvAIvPvoY/os+G5eoqxWn70HYDm2uvUyGuVw= github.com/golangci/revgrep v0.8.0 h1:EZBctwbVd0aMeRnNUsFogoyayvKHyxlV3CdUA46FX2s= github.com/golangci/revgrep v0.8.0/go.mod h1:U4R/s9dlXZsg8uJmaR1GrloUr14D7qDl8gi2iPXJH8k= +github.com/golangci/rowserrcheck v0.0.0-20261005233414-e0740d52dee8 h1:oN042y1yEcpldrqY81puyNA4ZjQZJzt0U/t7HyYrMic= +github.com/golangci/rowserrcheck v0.0.0-20261005233414-e0740d52dee8/go.mod h1:T1Bg58Sk3N352aBbPLJPpHykFWxEEwV3o4/Enn+PPU8= +github.com/golangci/swaggoswag v0.0.0-20250504205917-77f2aca3143e h1:ai0EfmVYE2bRA5htgAG9r7s3tHsfjIhN98WshBTJ9jM= +github.com/golangci/swaggoswag v0.0.0-20250504205917-77f2aca3143e/go.mod h1:Vrn4B5oR9qRwM+f54koyeH3yzphlecwERs0el27Fr/s= github.com/golangci/unconvert v0.0.0-20250410112200-a129a6e6413e h1:gD6P7NEo7Eqtt0ssnqSJNNndxe69DOQ24A5h7+i3KpM= github.com/golangci/unconvert v0.0.0-20250410112200-a129a6e6413e/go.mod h1:h+wZwLjUTJnm/P2rwlbJdRPZXOzaT36/FwnPnY2inzc= github.com/google/cel-go v0.30.0 h1:ll54AkzKunWkBn9wSoiUXbFZXYZTkdJGNXTBXUoolGo= @@ -289,11 +323,9 @@ github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= @@ -306,8 +338,8 @@ github.com/google/licenseclassifier/v2 v2.0.0 h1:1Y57HHILNf4m0ABuMVb6xk4vAJYEUO0 github.com/google/licenseclassifier/v2 v2.0.0/go.mod h1:cOjbdH0kyC9R22sdQbYsFkto4NGCAc+ZSwbeThazEtM= github.com/google/martian/v3 v3.3.3 h1:DIhPTQrbPkgs2yJYdXU/eNACCG5DVQjySNRNlflZ9Fc= github.com/google/martian/v3 v3.3.3/go.mod h1:iEPrYcgCF7jA9OtScMFQyAlZZ4YXTKEtJ1E6RWzmBA0= -github.com/google/pprof v0.0.0-20260709232956-b9395ee17fa0 h1:du0WGc8xSKq/++e0cglxhS/mXVqsR7+c7jLEi5Vqduw= -github.com/google/pprof v0.0.0-20260709232956-b9395ee17fa0/go.mod h1:MxpfABSjhmINe3F1It9d+8exIHFvUqtLIRCdOGNXqiI= +github.com/google/pprof v0.0.0-20260802141513-ef3492d7dac3 h1:LMLX+LgTNWpfvCBdFebv6EsYotImrt/Ppc5cXIriCSo= +github.com/google/pprof v0.0.0-20260802141513-ef3492d7dac3/go.mod h1:jl5iWTm0/hd5PjEYEOuwAJ57L/CibdZfrqZ5XA5GrCk= github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= @@ -319,28 +351,27 @@ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3 github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.3.18 h1:hvVi34VucdrV1IIsiWuqYM8kutw/92MxNEFxCJZEh0k= -github.com/googleapis/enterprise-certificate-proxy v0.3.18/go.mod h1:rSEsBUemEBZEexP2y6jPp16LUmUbjmSbcPMQizR0o4k= -github.com/googleapis/gax-go/v2 v2.23.0 h1:Tchl7qkvE7Ip3y+ztvNufYFvkfqTe7NfLTYGIdJRLuE= -github.com/googleapis/gax-go/v2 v2.23.0/go.mod h1:rBQKOVJCdb8IFEzg+FCwlt1LP/xMDGuqUXhUG+XMXEg= +github.com/googleapis/enterprise-certificate-proxy v0.3.20 h1:t/xL64VUoN69MuMRQuJETqYGOw4Z9mSRJK9epIEtwFk= +github.com/googleapis/enterprise-certificate-proxy v0.3.20/go.mod h1:L3D/IQExI6LqEjBdXcZQ1WluSgigQmSwBboFstVPM4w= +github.com/googleapis/gax-go/v2 v2.24.0 h1:myMaPYyF9MecEmvQqMqomIwn9t/4KCZN9qnwsS76wlg= +github.com/googleapis/gax-go/v2 v2.24.0/go.mod h1:IaTHBDd7NHxSCiu0vEs8pQZu4dGZrWwuSoxCnk16OFM= github.com/gookit/assert v0.1.1 h1:lh3GcawXe/p+cU7ESTZ5Ui3Sm/x8JWpIis4/1aF0mY0= github.com/gookit/assert v0.1.1/go.mod h1:jS5bmIVQZTIwk42uXl4lyj4iaaxx32tqH16CFj0VX2E= github.com/gookit/color v1.6.1 h1:KoTnDxJPRgrL0SoX0f8rCFg2zI0t4E3GZZBMo2nN8LU= github.com/gookit/color v1.6.1/go.mod h1:9ACFc7/1IpHGBW8RwuDm/0YEnhg3dwwXpoMsmtyHfjs= -github.com/gordonklaus/ineffassign v0.1.0 h1:y2Gd/9I7MdY1oEIt+n+rowjBNDcLQq3RsH5hwJd0f9s= -github.com/gordonklaus/ineffassign v0.1.0/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= +github.com/gordonklaus/ineffassign v0.2.0 h1:Uths4KnmwxNJNzq87fwQQDDnbNb7De00VOk9Nu0TySs= +github.com/gordonklaus/ineffassign v0.2.0/go.mod h1:TIpymnagPSexySzs7F9FnO1XFTy8IT3a59vmZp5Y9Lw= github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo= github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= -github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= github.com/gostaticanalysis/comment v1.5.0 h1:X82FLl+TswsUMpMh17srGRuKaaXprTaytmEpgnKIDu8= github.com/gostaticanalysis/comment v1.5.0/go.mod h1:V6eb3gpCv9GNVqb6amXzEUX3jXLVK/AdA+IrAMSqvEc= github.com/gostaticanalysis/forcetypeassert v0.2.0 h1:uSnWrrUEYDr86OCxWa4/Tp2jeYDlogZiZHzGkWFefTk= github.com/gostaticanalysis/forcetypeassert v0.2.0/go.mod h1:M5iPavzE9pPqWyeiVXSFghQjljW1+l/Uke3PXHS6ILY= -github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= -github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= +github.com/gostaticanalysis/nilerr v0.1.2 h1:S6nk8a9N8g062nsx63kUkF6AzbHGw7zzyHMcpu52xQU= +github.com/gostaticanalysis/nilerr v0.1.2/go.mod h1:A19UHhoY3y8ahoL7YKz6sdjDtduwTSI4CsymaC2htPA= github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.5.0 h1:Dq4wT1DdTwTGCQQv3rl3IvD5Ld0E6HiY+3Zh0sUGqw8= github.com/gostaticanalysis/testutil v0.5.0/go.mod h1:OLQSbuM6zw2EvCcXTz1lVq5unyoNft372msDY0nY5Hs= @@ -351,8 +382,8 @@ github.com/hashicorp/go-immutable-radix/v2 v2.1.0/go.mod h1:hgdqLXA4f6NIjRVisM1T github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= -github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.9.0 h1:CeOIz6k+LoN3qX9Z0tyQrPtiB1DFYRPfCIBtaXPSCnA= +github.com/hashicorp/go-version v1.9.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.1-vault-7 h1:ag5OxFVy3QYTFTJODRzTKVZ6xvdfLLCA1cy/Y6xGI0I= @@ -365,20 +396,18 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/invopop/jsonschema v0.14.0 h1:MHQqLhvpNUZfw+hM3AZDYK7jxO8FZoQeQM77g8iyZjg= github.com/invopop/jsonschema v0.14.0/go.mod h1:ygm6C2EaVNMBDPpaPlnOA2pFAxBnxGjFlMZABxm9n2I= -github.com/jgautheron/goconst v1.8.1 h1:PPqCYp3K/xlOj5JmIe6O1Mj6r1DbkdbLtR3AJuZo414= -github.com/jgautheron/goconst v1.8.1/go.mod h1:A0oxgBCHy55NQn6sYpO7UdnA9p+h7cPtoOZUmvNIako= -github.com/jingyugao/rowserrcheck v1.1.1 h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs= -github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= -github.com/jjti/go-spancheck v0.6.4 h1:Tl7gQpYf4/TMU7AT84MN83/6PutY21Nb9fuQjFTpRRc= -github.com/jjti/go-spancheck v0.6.4/go.mod h1:yAEYdKJ2lRkDA8g7X+oKUHXOWVAXSBJRv04OhF+QUjk= +github.com/jgautheron/goconst v1.11.0 h1:KgN90z5qXt5f0Uzf3cWXev3hfMMFUyNeKdpkSBRvLDk= +github.com/jgautheron/goconst v1.11.0/go.mod h1:0p+wv1lFOiUr0IlNNT1nrm6+8DB8u2sU6KHGzFRXHDc= +github.com/jjti/go-spancheck v0.6.5 h1:lmi7pKxa37oKYIMScialXUK6hP3iY5F1gu+mLBPgYB8= +github.com/jjti/go-spancheck v0.6.5/go.mod h1:aEogkeatBrbYsyW6y5TgDfihCulDYciL1B7rG2vSsrU= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/julz/importas v0.2.0 h1:y+MJN/UdL63QbFJHws9BVC5RpA2iq0kpjrFajTGivjQ= github.com/julz/importas v0.2.0/go.mod h1:pThlt589EnCYtMnmhmRYY/qn9lCf/frPOK+WMx3xiJY= -github.com/karamaru-alpha/copyloopvar v1.2.1 h1:wmZaZYIjnJ0b5UoKDjUHrikcV0zuPyyxI4SVplLd2CI= -github.com/karamaru-alpha/copyloopvar v1.2.1/go.mod h1:nFmMlFNlClC2BPvNaHMdkirmTJxVCY0lhxBtlfOypMM= -github.com/kisielk/errcheck v1.9.0 h1:9xt1zI9EBfcYBvdU1nVrzMzzUPUtPKs9bVSIM3TAb3M= -github.com/kisielk/errcheck v1.9.0/go.mod h1:kQxWMMVZgIkDq7U8xtG/n2juOjbLgZtedi0D+/VL/i8= +github.com/karamaru-alpha/copyloopvar v1.2.2 h1:yfNQvP9YaGQR7VaWLYcfZUlRP2eo2vhExWKxD/fP6q0= +github.com/karamaru-alpha/copyloopvar v1.2.2/go.mod h1:oY4rGZqZ879JkJMtX3RRkcXRkmUvH0x35ykgaKgsgJY= +github.com/kisielk/errcheck v1.30.0 h1:ZIxNDAfAd4larXHTceoZP/dYPAB90dHg1OYhA2sVh5k= +github.com/kisielk/errcheck v1.30.0/go.mod h1:uiCAInmFuyOje4VDdbQSP9mgqf5gORYSXrDf19XilsI= github.com/kkHAIKE/contextcheck v1.1.6 h1:7HIyRcnyzxL9Lz06NGhiKvenXq7Zw6Q0UQu/ttjfJCE= github.com/kkHAIKE/contextcheck v1.1.6/go.mod h1:3dDbMRNBFaq8HFXWC1JyvDSPm43CmE6IuHam8Wr0rkg= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -388,49 +417,50 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= -github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= -github.com/kunwardeep/paralleltest v1.0.14 h1:wAkMoMeGX/kGfhQBPODT/BL8XhK23ol/nuQ3SwFaUw8= -github.com/kunwardeep/paralleltest v1.0.14/go.mod h1:di4moFqtfz3ToSKxhNjhOZL+696QtJGCFe132CbBLGk= -github.com/lasiar/canonicalheader v1.1.2 h1:vZ5uqwvDbyJCnMhmFYimgMZnJMjwljN5VGY0VKbMXb4= -github.com/lasiar/canonicalheader v1.1.2/go.mod h1:qJCeLFS0G/QlLQ506T+Fk/fWMa2VmBUiEI2cuMK4djI= -github.com/ldez/exptostd v0.4.2 h1:l5pOzHBz8mFOlbcifTxzfyYbgEmoUqjxLFHZkjlbHXs= -github.com/ldez/exptostd v0.4.2/go.mod h1:iZBRYaUmcW5jwCR3KROEZ1KivQQp6PHXbDPk9hqJKCQ= -github.com/ldez/gomoddirectives v0.6.1 h1:Z+PxGAY+217f/bSGjNZr/b2KTXcyYLgiWI6geMBN2Qc= -github.com/ldez/gomoddirectives v0.6.1/go.mod h1:cVBiu3AHR9V31em9u2kwfMKD43ayN5/XDgr+cdaFaKs= -github.com/ldez/grignotin v0.9.0 h1:MgOEmjZIVNn6p5wPaGp/0OKWyvq42KnzAt/DAb8O4Ow= -github.com/ldez/grignotin v0.9.0/go.mod h1:uaVTr0SoZ1KBii33c47O1M8Jp3OP3YDwhZCmzT9GHEk= -github.com/ldez/tagliatelle v0.7.1 h1:bTgKjjc2sQcsgPiT902+aadvMjCeMHrY7ly2XKFORIk= -github.com/ldez/tagliatelle v0.7.1/go.mod h1:3zjxUpsNB2aEZScWiZTHrAXOl1x25t3cRmzfK1mlo2I= -github.com/ldez/usetesting v0.4.2 h1:J2WwbrFGk3wx4cZwSMiCQQ00kjGR0+tuuyW0Lqm4lwA= -github.com/ldez/usetesting v0.4.2/go.mod h1:eEs46T3PpQ+9RgN9VjpY6qWdiw2/QmfiDeWmdZdrjIQ= +github.com/kulti/thelper v0.7.1 h1:fI8QITAoFVLx+y+vSyuLBP+rcVIB8jKooNSCT2EiI98= +github.com/kulti/thelper v0.7.1/go.mod h1:NsMjfQEy6sd+9Kfw8kCP61W1I0nerGSYSFnGaxQkcbs= +github.com/kunwardeep/paralleltest v1.0.16 h1:I0gQkLNgfigjpxWAGhx7PYj3VpswzfGrSV/715t6g+o= +github.com/kunwardeep/paralleltest v1.0.16/go.mod h1:di4moFqtfz3ToSKxhNjhOZL+696QtJGCFe132CbBLGk= +github.com/ldez/exptostd v0.4.5 h1:kv2ZGUVI6VwRfp/+bcQ6Nbx0ghFWcGIKInkG/oFn1aQ= +github.com/ldez/exptostd v0.4.5/go.mod h1:QRjHRMXJrCTIm9WxVNH6VW7oN7KrGSht69bIRwvdFsM= +github.com/ldez/gomoddirectives v0.10.0 h1:Zb23rfMMkG21B6pZ9OfESzemByP5Qr7YvWcXQZE/S3Q= +github.com/ldez/gomoddirectives v0.10.0/go.mod h1:W9uh0721Vc7aaVoiMXTpKIveLmtHC9uaOSiHM4OK5a8= +github.com/ldez/grignotin v0.10.1 h1:keYi9rYsgbvqAZGI1liek5c+jv9UUjbvdj3Tbn5fn4o= +github.com/ldez/grignotin v0.10.1/go.mod h1:UlDbXFCARrXbWGNGP3S5vsysNXAPhnSuBufpTEbwOas= +github.com/ldez/structtags v0.6.1 h1:bUooFLbXx41tW8SvkfwfFkkjPYvFFs59AAMgVg6DUBk= +github.com/ldez/structtags v0.6.1/go.mod h1:YDxVSgDy/MON6ariaxLF2X09bh19qL7MtGBN5MrvbdY= +github.com/ldez/tagliatelle v0.8.0 h1:QczqVPa22JdT40p3m5JTTVmPMv5wDORqdomJn6/Pnn0= +github.com/ldez/tagliatelle v0.8.0/go.mod h1:K9n83Wv0wyVq3JYF9WI28BX8xXhDBVP3thHJ0ENuiEs= +github.com/ldez/usetesting v0.5.0 h1:3/QtzZObBKLy1F4F8jLuKJiKBjjVFi1IavpoWbmqLwc= +github.com/ldez/usetesting v0.5.0/go.mod h1:Spnb4Qppf8JTuRgblLrEWb7IE6rDmUpGvxY3iRrzvDQ= github.com/leonklingele/grouper v1.1.2 h1:o1ARBDLOmmasUaNDesWqWCIFH3u7hoFlM84YrjT3mIY= github.com/leonklingele/grouper v1.1.2/go.mod h1:6D0M/HVkhs2yRKRFZUoGjeDy7EZTfFBE9gl4kjmIGkA= -github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= -github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/lucasb-eyer/go-colorful v1.4.1 h1:1EO+WB73+EH8EVbzlrG3KLAfEypQWVHIBqlTf+2hNss= +github.com/lucasb-eyer/go-colorful v1.4.1/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= github.com/macabu/inamedparam v0.2.0 h1:VyPYpOc10nkhI2qeNUdh3Zket4fcZjEWe35poddBCpE= github.com/macabu/inamedparam v0.2.0/go.mod h1:+Pee9/YfGe5LJ62pYXqB89lJ+0k5bsR8Wgz/C0Zlq3U= github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/manuelarte/funcorder v0.2.1 h1:7QJsw3qhljoZ5rH0xapIvjw31EcQeFbF31/7kQ/xS34= -github.com/manuelarte/funcorder v0.2.1/go.mod h1:BQQ0yW57+PF9ZpjpeJDKOffEsQbxDFKW8F8zSMe/Zd0= -github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= -github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= -github.com/maratori/testpackage v1.1.1 h1:S58XVV5AD7HADMmD0fNnziNHqKvSdDuEKdPD1rNTU04= -github.com/maratori/testpackage v1.1.1/go.mod h1:s4gRK/ym6AMrqpOa/kEbQTV4Q4jb7WeLZzVhVVVOQMc= +github.com/manuelarte/embeddedstructfieldcheck v0.4.0 h1:3mAIyaGRtjK6EO9E73JlXLtiy7ha80b2ZVGyacxgfww= +github.com/manuelarte/embeddedstructfieldcheck v0.4.0/go.mod h1:z8dFSyXqp+fC6NLDSljRJeNQJJDWnY7RoWFzV3PC6UM= +github.com/manuelarte/funcorder v0.6.0 h1:0hBngc4fa1IgNiI65A7sFGkMvoMCc878RjqB5V7rWP0= +github.com/manuelarte/funcorder v0.6.0/go.mod h1:id3NDhXdQBmeqXH7eVC6Z89xS6JxvZ8kF9xUxpArU/g= +github.com/maratori/testableexamples v1.0.1 h1:HfOQXs+XgfeRBJ+Wz0XfH+FHnoY9TVqL6Fcevpzy4q8= +github.com/maratori/testableexamples v1.0.1/go.mod h1:XE2F/nQs7B9N08JgyRmdGjYVGqxWwClLPCGSQhXQSrQ= +github.com/maratori/testpackage v1.1.2 h1:ffDSh+AgqluCLMXhM19f/cpvQAKygKAJXFl9aUjmbqs= +github.com/maratori/testpackage v1.1.2/go.mod h1:8F24GdVDFW5Ew43Et02jamrVMNXLUNaOynhDssITGfc= github.com/matoous/godox v1.1.0 h1:W5mqwbyWrwZv6OQ5Z1a/DHGMOvXYCBP3+Ht7KMoJhq4= github.com/matoous/godox v1.1.0/go.mod h1:jgE/3fUXiTurkdHOLT5WEkThTSuE7yxHv5iWPa80afs= github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE= github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= -github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= -github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= -github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= -github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= -github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/mgechev/revive v1.9.0 h1:8LaA62XIKrb8lM6VsBSQ92slt/o92z5+hTw3CmrvSrM= -github.com/mgechev/revive v1.9.0/go.mod h1:LAPq3+MgOf7GcL5PlWIkHb0PT7XH4NuC2LdWymhb9Mo= +github.com/mattn/go-colorable v0.1.16 h1:+2YjeAe7xP1OQbZW1jERPWWCDLlNqFNCvjiqGiAt84A= +github.com/mattn/go-colorable v0.1.16/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= +github.com/mattn/go-isatty v0.0.22 h1:j8l17JJ9i6VGPUFUYoTUKPSgKe/83EYU2zBC7YNKMw4= +github.com/mattn/go-isatty v0.0.22/go.mod h1:ZXfXG4SQHsB/w3ZeOYbR0PrPwLy+n6xiMrJlRFqopa4= +github.com/mattn/go-runewidth v0.0.24 h1:cpokDiIn0MGnhdHwuWnJBITySJ20QyNGnY2kR/ay2DU= +github.com/mattn/go-runewidth v0.0.24/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs= +github.com/mgechev/revive v1.17.1 h1:z8hV0L3uJ6yrwOMnJbkc5qBJpxXa2AxYKFKERGJyA4s= +github.com/mgechev/revive v1.17.1/go.mod h1:FRd64pJwWSEE6j8ESoaX0PixPzjh2rpNSfckbEu3rIE= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= @@ -449,30 +479,28 @@ github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/ github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= github.com/moricho/tparallel v0.3.2 h1:odr8aZVFA3NZrNybggMkYO3rgPRcqjeQUlBBFVxKHTI= github.com/moricho/tparallel v0.3.2/go.mod h1:OQ+K3b4Ln3l2TZveGCywybl68glfLEwFGqvnjok8b+U= -github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc= -github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk= +github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= +github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= -github.com/nishanths/exhaustive v0.12.0 h1:vIY9sALmw6T/yxiASewa4TQcFsVYZQQRUQJhKRf3Swg= -github.com/nishanths/exhaustive v0.12.0/go.mod h1:mEZ95wPIZW+x8kC4TgC+9YCUgiST7ecevsVDTgc2obs= -github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= -github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= -github.com/nunnatsa/ginkgolinter v0.19.1 h1:mjwbOlDQxZi9Cal+KfbEJTCz327OLNfwNvoZ70NJ+c4= -github.com/nunnatsa/ginkgolinter v0.19.1/go.mod h1:jkQ3naZDmxaZMXPWaS9rblH+i+GWXQCaS/JFIWcOH2s= +github.com/nishanths/exhaustive v0.15.0 h1:uFjiO/WvrwQG+ojSZ+vtl/jAFbqA2oAtfpUWK/iKQ8M= +github.com/nishanths/exhaustive v0.15.0/go.mod h1:2by9rYmg9FnsnLQC4Ixig4fQaWxRsY7RluxJuAu9sa0= +github.com/nishanths/predeclared v0.3.0 h1:W3i3JK/DZS5h7QwsEIyU8ler4Z2vwEwQSxNrZzhnlfk= +github.com/nishanths/predeclared v0.3.0/go.mod h1:gN4uryPExDME/zmZdqkKIPSAqcfprj316ZDI6UTqz70= +github.com/nunnatsa/ginkgolinter v0.24.0 h1:Mp0EagluLFP98JatP6nqp/gGEoljNG97uf9AcxcBVy8= +github.com/nunnatsa/ginkgolinter v0.24.0/go.mod h1:2ZMRuzX6+3XXyY6UZOwb6n+MCocVGbkIsDBC4vuWz5c= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= -github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= github.com/onsi/ginkgo/v2 v2.32.1 h1:6tlvcDm/3sE8lGJbZ4+d4mO3RLy24/tQWOFzVSQNIfw= github.com/onsi/ginkgo/v2 v2.32.1/go.mod h1:+aXOY+vzZ5mu2iI2HpTZUPmM//oQfsNFX6gU9kNcA44= github.com/onsi/gomega v1.42.1 h1:iN1rCUX+44NZ1Dc97MPoeFYbFR0vh8zxoxMFwKdyZ6I= github.com/onsi/gomega v1.42.1/go.mod h1:REff/hsDsodHoKlWsP2mAPhu1+5/6hVYNf9rIEBpeSg= -github.com/openai/openai-go/v3 v3.42.0 h1:16Skv1hpEhSm3imZpPGSeEBDUgVJJA9cHryKGGsVYI8= -github.com/openai/openai-go/v3 v3.42.0/go.mod h1:cdufnVK14cWcT9qA1rRtrXx4FTRsgbDPW7Ia7SS5cZo= +github.com/openai/openai-go/v3 v3.52.0 h1:VDSjIvI5Sr2/AzGJI6219sM2Il+zBWuopvluMy6KdjE= +github.com/openai/openai-go/v3 v3.52.0/go.mod h1:Vy3y2/I2H/MbqvJGXEK8VbN5+avZV6zxux4I3eBdvaA= github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= github.com/otiai10/copy v1.14.0 h1:dCI/t1iTdYGtkvCuBG2BgR6KZa83PTclw4U5n2wAllU= github.com/otiai10/copy v1.14.0/go.mod h1:ECfuL02W+/FkTWZWgQqXPWZgW9oeKCSQ5qVfSc4qc4w= @@ -486,17 +514,13 @@ github.com/pb33f/ordered-map/v2 v2.3.1 h1:5319HDO0aw4DA4gzi+zv4FXU9UlSs3xGZ40wcP github.com/pb33f/ordered-map/v2 v2.3.1/go.mod h1:qxFQgd0PkVUtOMCkTapqotNgzRhMPL7VvaHKbd1HnmQ= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= -github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= +github.com/pelletier/go-toml/v2 v2.4.3 h1:GTRvJQutkOSftxIFD5xw9aepkYNuPWmVJpffdDPYVpY= +github.com/pelletier/go-toml/v2 v2.4.3/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polyfloyd/go-errorlint v1.8.0 h1:DL4RestQqRLr8U4LygLw8g2DX6RN1eBJOpa2mzsrl1Q= -github.com/polyfloyd/go-errorlint v1.8.0/go.mod h1:G2W0Q5roxbLCt0ZQbdoxQxXktTjwNyDbEaj3n7jvl4s= -github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g= -github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= github.com/prometheus/client_golang v1.24.0 h1:5XStIklKuAtJSNpdD3s8XJj/Yv78IQmE1kbNk87JrAI= github.com/prometheus/client_golang v1.24.0/go.mod h1:QcsNdotprC2nS4BTM2ucbcqxd2CeXTEa9jW7zHO9iDE= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -506,55 +530,54 @@ github.com/prometheus/common v0.70.0 h1:bcpru3tWPVnxGnETLgOV5jbp/JRXgYEyv65CuBLA github.com/prometheus/common v0.70.0/go.mod h1:S/SFasQmgGiYH6C81LKCtYa8QACgthGg5zxL2udV7SY= github.com/prometheus/procfs v0.21.1 h1:GljZCt+zSTS+NZq88cyQ1LjZ+RCHp3uVuabBWA5+OJI= github.com/prometheus/procfs v0.21.1/go.mod h1:aB55Cww9pdSJVHk0hUf0inxWyyjPogFIjmHKYgMKmtY= -github.com/quasilyte/go-ruleguard v0.4.4 h1:53DncefIeLX3qEpjzlS1lyUmQoUEeOWPFWqaTJq9eAQ= -github.com/quasilyte/go-ruleguard v0.4.4/go.mod h1:Vl05zJ538vcEEwu16V/Hdu7IYZWyKSwIy4c88Ro1kRE= -github.com/quasilyte/go-ruleguard/dsl v0.3.22 h1:wd8zkOhSNr+I+8Qeciml08ivDt1pSXe60+5DqOpCjPE= -github.com/quasilyte/go-ruleguard/dsl v0.3.22/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard v0.4.5 h1:AGY0tiOT5hJX9BTdx/xBdoCubQUAE2grkqY2lSwvZcA= +github.com/quasilyte/go-ruleguard v0.4.5/go.mod h1:Vl05zJ538vcEEwu16V/Hdu7IYZWyKSwIy4c88Ro1kRE= +github.com/quasilyte/go-ruleguard/dsl v0.3.23 h1:lxjt5B6ZCiBeeNO8/oQsegE6fLeCzuMRoVWSkXC4uvY= +github.com/quasilyte/go-ruleguard/dsl v0.3.23/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/gogrep v0.5.0 h1:eTKODPXbI8ffJMN+W2aE0+oL0z/nh8/5eNdiO34SOAo= github.com/quasilyte/gogrep v0.5.0/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 h1:TCg2WBOl980XxGFEZSS6KlBGIV0diGdySzxATTWoqaU= github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= -github.com/raeperd/recvcheck v0.2.0 h1:GnU+NsbiCqdC2XX5+vMZzP+jAJC5fht7rcVTAhX74UI= -github.com/raeperd/recvcheck v0.2.0/go.mod h1:n04eYkwIR0JbgD73wT8wL4JjPC3wm0nFtzBnWNocnYU= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/raeperd/recvcheck v0.3.1 h1:p7nZMxiCWkdUtY2i3o+pv1h4fJCR5gpvqAXr9326hEY= +github.com/raeperd/recvcheck v0.3.1/go.mod h1:CbE7iRocQ4uc71JwpW/CPSh4BShnkre4A9Gb508RypU= github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= -github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/rogpeppe/go-internal v1.16.0 h1:O9DK+vNMDVGLr2BeZqmpLeMjiMNkuXfcqntWbZV6S5g= +github.com/rogpeppe/go-internal v1.16.0/go.mod h1:DrUVZyrJU+txYW5/1kwtXQSMFio52ZOxX7yM1VHvnxs= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryancurrah/gomodguard v1.4.1 h1:eWC8eUMNZ/wM/PWuZBv7JxxqT5fiIKSIyTvjb7Elr+g= github.com/ryancurrah/gomodguard v1.4.1/go.mod h1:qnMJwV1hX9m+YJseXEBhd2s90+1Xn6x9dLz11ualI1I= -github.com/ryanrolds/sqlclosecheck v0.5.1 h1:dibWW826u0P8jNLsLN+En7+RqWWTYrjCB9fJfSfdyCU= -github.com/ryanrolds/sqlclosecheck v0.5.1/go.mod h1:2g3dUjoS6AL4huFdv6wn55WpLIDjY7ZgUR4J8HOO/XQ= +github.com/ryancurrah/gomodguard/v2 v2.1.3 h1:E7sz3PJwE9Ba1reVxSpF6XLCPJZ74Kfw/LabTNM4GIA= +github.com/ryancurrah/gomodguard/v2 v2.1.3/go.mod h1:CQicdLGatWMxLX53JzoBjYlsNZhHbmLv2AVa0s2aivU= +github.com/ryanrolds/sqlclosecheck v0.6.0 h1:pEyL9okISdg1F1SEpJNlrEotkTGerv5BMk7U4AG0eVg= +github.com/ryanrolds/sqlclosecheck v0.6.0/go.mod h1:xyX16hsDaCMXHrMJ3JMzGf5OpDfHTOTTQrT7HOFUmeU= github.com/sanposhiho/wastedassign/v2 v2.1.0 h1:crurBF7fJKIORrV85u9UUpePDYGWnwvv3+A96WvwXT0= github.com/sanposhiho/wastedassign/v2 v2.1.0/go.mod h1:+oSmSC+9bQ+VUAxA66nBb0Z7N8CK7mscKTDYC6aIek4= -github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ= -github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= +github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 h1:1EYB5IzjZawrrnELUi78f9fPu57HuXjmddZPjrls/28= +github.com/santhosh-tekuri/jsonschema/v6 v6.0.3/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= -github.com/sashamelentyev/usestdlibvars v1.28.0 h1:jZnudE2zKCtYlGzLVreNp5pmCdOxXUzwsMDBkR21cyQ= -github.com/sashamelentyev/usestdlibvars v1.28.0/go.mod h1:9nl0jgOfHKWNFS43Ojw0i7aRoS4j6EBye3YBhmAIRF8= -github.com/securego/gosec/v2 v2.28.0 h1:ZsSdiDb0AtTpLFVol5z91gbMei9ZiLEPG/pZjZujp7c= -github.com/securego/gosec/v2 v2.28.0/go.mod h1:lb4/9AHe+lJy/kjWmWRWWsEipvbwGKuxf+tY1Pmjdnk= +github.com/sashamelentyev/usestdlibvars v1.29.0 h1:8J0MoRrw4/NAXtjQqTHrbW9NN+3iMf7Knkq057v4XOQ= +github.com/sashamelentyev/usestdlibvars v1.29.0/go.mod h1:8PpnjHMk5VdeWlVb4wCdrB8PNbLqZ3wBZTZWkrpZZL8= +github.com/securego/gosec/v2 v2.29.0 h1:pF2HSLcnY5voqpxQumEe0O5YAAbvF4Syu4qeIewpLyc= +github.com/securego/gosec/v2 v2.29.0/go.mod h1:47C7ej+L2bC1NOxteU2aCGnCi4cZaoKzRt5y9plIvuY= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= -github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= -github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= -github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w= -github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= +github.com/sirupsen/logrus v1.10.2 h1:G2SED73/qrAu6YwbdxOD6peLkCBI3z7L+ykJFTXJBBo= +github.com/sirupsen/logrus v1.10.2/go.mod h1:SLEg8TqYulVKKfIGHldVp2K2aYz2DKSVBq4g/H5bR7Q= github.com/sivchari/containedctx v1.0.3 h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE= github.com/sivchari/containedctx v1.0.3/go.mod h1:c1RDvCbnJLtH4lLcYD/GqwiBSSf4F5Qk0xld2rBqzJ4= -github.com/sonatard/noctx v0.1.0 h1:JjqOc2WN16ISWAjAk8M5ej0RfExEXtkEyExl2hLW+OM= -github.com/sonatard/noctx v0.1.0/go.mod h1:0RvBxqY8D4j9cTTTWE8ylt2vqj2EPI8fHmrxHdsaZ2c= -github.com/sourcegraph/go-diff v0.7.0 h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0= -github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= -github.com/spf13/afero v1.14.0 h1:9tH6MapGnn/j0eb0yIXiLjERO8RB6xIVZRDCX7PtqWA= -github.com/spf13/afero v1.14.0/go.mod h1:acJQ8t0ohCGuMN3O+Pv0V0hgMxNYDlvdk+VTfyZmbYo= +github.com/sonatard/noctx v0.5.1 h1:wklWg9c9ZYugOAk7qG4yP4PBrlQsmSLPTvW1K4PRQMs= +github.com/sonatard/noctx v0.5.1/go.mod h1:64XdbzFb18XL4LporKXp8poqZtPKbCrqQ402CV+kJas= +github.com/sourcegraph/go-diff v0.9.0 h1:7xcVsayWHhvxZGrqt1o89vvBApCa4nyCgO7tNxDHJ+Q= +github.com/sourcegraph/go-diff v0.9.0/go.mod h1:hWlcO7Al+UZStZAP8rBumHpCK5ZHQ5BXsMls8p4+F5E= +github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= +github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg= github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY= github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo= github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= @@ -571,8 +594,8 @@ github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YE github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= github.com/standard-webhooks/standard-webhooks/libraries v0.0.1 h1:uOfcYT+3QungH6tIGSVCR/Y3KJmgJiHcojJbMTPDZAI= github.com/standard-webhooks/standard-webhooks/libraries v0.0.1/go.mod h1:L1MQhA6x4dn9r007T033lsaZMv9EmBAdXyU/+EF40fo= -github.com/stbenjam/no-sprintf-host-port v0.2.0 h1:i8pxvGrt1+4G0czLr/WnmyH7zbZ8Bg8etvARQ1rpyl4= -github.com/stbenjam/no-sprintf-host-port v0.2.0/go.mod h1:eL0bQ9PasS0hsyTyfTjjG+E80QIyPnBVQbYZyv20Jfk= +github.com/stbenjam/no-sprintf-host-port v0.3.1 h1:AyX7+dxI4IdLBPtDbsGAyqiTSLpCP9hWRrXQDU4Cm/g= +github.com/stbenjam/no-sprintf-host-port v0.3.1/go.mod h1:ODbZesTCHMVKthBHskvUUexdcNHAQRXk9NpSsL8p/HQ= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -582,7 +605,6 @@ github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+Q github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= @@ -593,14 +615,12 @@ github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWD github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= -github.com/tdakkota/asciicheck v0.4.1 h1:bm0tbcmi0jezRA2b5kg4ozmMuGAFotKI3RZfrhfovg8= -github.com/tdakkota/asciicheck v0.4.1/go.mod h1:0k7M3rCfRXb0Z6bwgvkEIMleKH3kXNz9UqJ9Xuqopr8= github.com/tenntenn/modver v1.0.1 h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA= github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag= github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= -github.com/tetafro/godot v1.5.0 h1:aNwfVI4I3+gdxjMgYPus9eHmoBeJIbnajOyqZYStzuw= -github.com/tetafro/godot v1.5.0/go.mod h1:2oVxTBSftRTh4+MVfUaUXR6bn2GDXCaMcOG4Dk3rfio= +github.com/tetafro/godot v1.5.6 h1:IEkrFCwXaYHlOn4mGzGS3F3dkP6m9t0jpwqBFPIkKiA= +github.com/tetafro/godot v1.5.6/go.mod h1:eOkMrVQurDui411nBY2FA05EYH01r14LuWY/NrVDVcU= github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/gjson v1.19.0 h1:xwxm7n691Uf3u5OFjzngavjGTh55KX5q/9w9xHW88JU= github.com/tidwall/gjson v1.19.0/go.mod h1:V37/opeE/JbLUOfH0QTXiNez2l0RUjYUhpT4szFQAfc= @@ -612,30 +632,30 @@ github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY= github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28= -github.com/timakin/bodyclose v0.0.0-20241222091800-1db5c5ca4d67 h1:9LPGD+jzxMlnk5r6+hJnar67cgpDIz/iyD+rfl5r2Vk= -github.com/timakin/bodyclose v0.0.0-20241222091800-1db5c5ca4d67/go.mod h1:mkjARE7Yr8qU23YcGMSALbIxTQ9r9QBVahQOBRfU460= -github.com/timonwong/loggercheck v0.11.0 h1:jdaMpYBl+Uq9mWPXv1r8jc5fC3gyXx4/WGwTnnNKn4M= -github.com/timonwong/loggercheck v0.11.0/go.mod h1:HEAWU8djynujaAVX7QI65Myb8qgfcZ1uKbdpg3ZzKl8= -github.com/tomarrell/wrapcheck/v2 v2.11.0 h1:BJSt36snX9+4WTIXeJ7nvHBQBcm1h2SjQMSlmQ6aFSU= -github.com/tomarrell/wrapcheck/v2 v2.11.0/go.mod h1:wFL9pDWDAbXhhPZZt+nG8Fu+h29TtnZ2MW6Lx4BRXIU= +github.com/timakin/bodyclose v0.0.0-20260723120731-857993a2939c h1:d/FUP8GD4QiY/rdFzZmBu3KqL9eBNVzMu7W/5pGkaMM= +github.com/timakin/bodyclose v0.0.0-20260723120731-857993a2939c/go.mod h1:sDHLK7rb/59v/ZxZ7KtymgcoxuUMxjXq8gtu9VMOK8M= +github.com/timonwong/loggercheck v0.13.0 h1:6amIOmLLPFYt24rXUbNWzcJeNGuJc+3c31tZtO85VHs= +github.com/timonwong/loggercheck v0.13.0/go.mod h1:thn3allpox0fI5JeUWTCwiwp45peQxCZZHkHuA1Oc6I= +github.com/tomarrell/wrapcheck/v2 v2.13.0 h1:jYbLNs8PDkzGCY6d5LUzJdY7Bq//CTlb2HxZGV5z0JY= +github.com/tomarrell/wrapcheck/v2 v2.13.0/go.mod h1:AQhQuZd0p7b6rfW+vUwHm5OMCGgp63moQ9Qr/0BpIWo= github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw= github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= github.com/ultraware/funlen v0.2.0 h1:gCHmCn+d2/1SemTdYMiKLAHFYxTYz7z9VIDRaTGyLkI= github.com/ultraware/funlen v0.2.0/go.mod h1:ZE0q4TsJ8T1SQcjmkhN/w+MceuatI6pBFSxxyteHIJA= github.com/ultraware/whitespace v0.2.0 h1:TYowo2m9Nfj1baEQBjuHzvMRbp19i+RCcRYrSWoFa+g= github.com/ultraware/whitespace v0.2.0/go.mod h1:XcP1RLD81eV4BW8UhQlpaR+SDc2givTvyI8a586WjW8= -github.com/uudashr/gocognit v1.2.0 h1:3BU9aMr1xbhPlvJLSydKwdLN3tEUUrzPSSM8S4hDYRA= -github.com/uudashr/gocognit v1.2.0/go.mod h1:k/DdKPI6XBZO1q7HgoV2juESI2/Ofj9AcHPZhBBdrTU= -github.com/uudashr/iface v1.3.1 h1:bA51vmVx1UIhiIsQFSNq6GZ6VPTk3WNMZgRiCe9R29U= -github.com/uudashr/iface v1.3.1/go.mod h1:4QvspiRd3JLPAEXBQ9AiZpLbJlrWWgRChOKDJEuQTdg= +github.com/uudashr/gocognit v1.3.0 h1:Xdw5JwAoYmX3WAB+wsXY3nxEwdw7+MWAnM0wCAAv7A4= +github.com/uudashr/gocognit v1.3.0/go.mod h1:acaubQc6xYlXFEMb9nWX2dYBzJ/bIjEkc1zzvyIZg5Q= +github.com/uudashr/iface v1.5.3 h1:N61bzr11L7BHP6Rct+C6zQePHjSTMeyVBq+s03uB/Ds= +github.com/uudashr/iface v1.5.3/go.mod h1:5UWoT6SvTdTww/KToRj6clO+n4Kg3/NrAQvgOB+5Ggw= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/xen0n/gosmopolitan v1.3.0 h1:zAZI1zefvo7gcpbCOrPSHJZJYA9ZgLfJqtKzZ5pHqQM= github.com/xen0n/gosmopolitan v1.3.0/go.mod h1:rckfr5T6o4lBtM1ga7mLGKZmLxswUoH1zxHgNXOsEt4= github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ= github.com/xlab/treeprint v1.2.0/go.mod h1:gj5Gd3gPdKtR1ikdDK6fnFLdmIS0X30kTTuNd/WEJu0= -github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no= -github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM= +github.com/xo/terminfo v1.0.0 h1:2ZpYzqWzyyytjk3TP6aJVDhkMAkc99/1xKQdA3TDTBY= +github.com/xo/terminfo v1.0.0/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM= github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= github.com/yeya24/promlinter v0.3.0 h1:JVDbMp08lVCP7Y6NP3qHroGAO6z2yGKQtS5JsjqtoFs= @@ -645,17 +665,20 @@ github.com/ykadowak/zerologlint v0.1.5/go.mod h1:KaUskqF3e/v59oPmdq1U1DnKcuHokl2 github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= gitlab.com/bosi/decorder v0.4.2 h1:qbQaV3zgwnBZ4zPMhGLW4KZe7A7NwxEhJx39R3shffo= gitlab.com/bosi/decorder v0.4.2/go.mod h1:muuhHoaJkA9QLcYHq4Mj8FJUwDZ+EirSHRiaTcTf6T8= go-simpler.org/assert v0.9.0 h1:PfpmcSvL7yAnWyChSjOz6Sp6m9j5lyK8Ok9pEL31YkQ= go-simpler.org/assert v0.9.0/go.mod h1:74Eqh5eI6vCK6Y5l3PI8ZYFXG4Sa+tkr70OIPJAUr28= -go-simpler.org/musttag v0.13.0 h1:Q/YAW0AHvaoaIbsPj3bvEI5/QFP7w696IMUpnKXQfCE= -go-simpler.org/musttag v0.13.0/go.mod h1:FTzIGeK6OkKlUDVpj0iQUXZLUO1Js9+mvykDQy9C5yM= -go-simpler.org/sloglint v0.11.0 h1:JlR1X4jkbeaffiyjLtymeqmGDKBDO1ikC6rjiuFAOco= -go-simpler.org/sloglint v0.11.0/go.mod h1:CFDO8R1i77dlciGfPEPvYke2ZMx4eyGiEIWkyeW2Pvw= +go-simpler.org/musttag v0.14.0 h1:XGySZATqQYSEV3/YTy+iX+aofbZZllJaqwFWs+RTtSo= +go-simpler.org/musttag v0.14.0/go.mod h1:uP8EymctQjJ4Z1kUnjX0u2l60WfUdQxCwSNKzE1JEOE= +go-simpler.org/sloglint v0.12.0 h1:UzWDlLWNE5FLqsvyq3tWYHuQMbqrervOhT8qPl4Mmw4= +go-simpler.org/sloglint v0.12.0/go.mod h1:jBjjC2bm8rYrs88oTRlFX497kWjJsyZWYoNaXkGRI6I= +go.augendre.info/arangolint v0.4.0 h1:xSCZjRoS93nXazBSg5d0OGCi9APPLNMmmLrC995tR50= +go.augendre.info/arangolint v0.4.0/go.mod h1:l+f/b4plABuFISuKnTGD4RioXiCCgghv2xqst/xOvAA= +go.augendre.info/fatcontext v0.10.1 h1:HCS/+eob32cM0mEtmZM6NiXdqvS5KiZmsR+fCubTpbc= +go.augendre.info/fatcontext v0.10.1/go.mod h1:pqpGvA9GlrXy+aXkp8L2dKz12Zp4g2FhzcAtwToU+2w= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= @@ -680,8 +703,6 @@ go.opentelemetry.io/otel/trace v1.47.0 h1:JOjX/Oci8K94QHddo+bbfya/Ai/nf6/dt9ZfrF go.opentelemetry.io/otel/trace v1.47.0/go.mod h1:jNaSLa2PZEYFG6fRjJABAu+bw4FS08uDmPg28lTghu0= go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk= go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E= -go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= -go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= @@ -699,33 +720,26 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= -golang.org/x/crypto v0.56.0 h1:GUh5Ii4J5jtcseSMiRqr1jXCNHoxjeV9Fmekc2oLy6Y= -golang.org/x/crypto v0.56.0/go.mod h1:OMW5y6CY9l38uPLmxU6l6pwcXp1obtLo3e6gT7gQR2I= +golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= +golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f h1:W3F4c+6OLc6H2lb//N1q4WpJkhzJCK5J6kUi1NTVXfM= golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f/go.mod h1:J1xhfL/vlindoeF/aINzNzt2Bket5bjo9sdOYzOsU80= golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= -golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac h1:TSSpLIG4v+p0rPv1pNOQtl1I8knsO4S9trOxNMOLVP4= -golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20260811152304-ee035b5b010f h1:+lI8cDJ4uceLipg2f1ODay7fEuLkk0BIHXd6PB8icxo= +golang.org/x/exp/typeparams v0.0.0-20260811152304-ee035b5b010f/go.mod h1:PqrXSW65cXDZH0k4IeUbhmg/bcAZDbzNz3byBpKCsXo= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.40.0 h1:hUv+3cXcdRHz08UmSiOob7sadHig73uo5bkXxQ/tvUs= -golang.org/x/mod v0.40.0/go.mod h1:0/weTWkPWGBikyTWAX3dkjVztMmBA5hM0DH6BElSupE= +golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg= +golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -737,17 +751,11 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= -golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= +golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= @@ -760,10 +768,8 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= -golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= -golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek= -golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= +golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= +golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -771,46 +777,30 @@ golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= -golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= -golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5 h1:ZUSxONxc981v7AW7QUg+I9WwZzSTTJ019ENBYr5pV/Q= -golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5/go.mod h1:LVehoXe41cL5SCVQilsV7Gg6BNG+Js6P9PhSbYTIUkQ= +golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= +golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/telemetry v0.0.0-20261009151841-97e8ea77aa2a h1:wnveMBKHwx8/nIb8WYT5P9vtefdXOvIWxzycCkc5n6Q= +golang.org/x/telemetry v0.0.0-20261009151841-97e8ea77aa2a/go.mod h1:i+ivNqjDnTF3WTElsdk5g9V5DTSBYgdNo7xTU9SDwYA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= -golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= -golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0= -golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w= +golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= +golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= -golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= +golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= +golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U= golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -819,24 +809,15 @@ golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= -golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= -golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= -golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI= -golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo= +golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs= +golang.org/x/tools v0.52.0/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs= golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM= golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM= @@ -849,17 +830,17 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= -google.golang.org/api v0.288.0 h1:glhO/J88obKP5I269W3hB73dvBKrjU56ZfmNlNXpgTU= -google.golang.org/api v0.288.0/go.mod h1:lM2kYRzYUCBY91P9h6VF1PYmvhxii3O5hji37qRvIcY= +google.golang.org/api v0.293.0 h1:p9XIWOf63U4OgYx120ZwVU8+vl4XTPmWfgVPnmOAS9w= +google.golang.org/api v0.293.0/go.mod h1:6n5tjEB1gzwniZTepZ0g5u+wM7Bof5GeULCx/zh8ZE0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genai v1.63.0 h1:Iryg+4TBco5HaRbwVhAV/ROKVcWiZkuvQzKb4u1QggY= -google.golang.org/genai v1.63.0/go.mod h1:mDdPDFXo1Ats7f1WXVyZgWb/CkMzFWTWJruIMy7hGIU= +google.golang.org/genai v1.69.0 h1:quP3Rbiz0Mn+zPfXsWHQQwOx8IfO2MnQehZUbrJ/jPo= +google.golang.org/genai v1.69.0/go.mod h1:mDdPDFXo1Ats7f1WXVyZgWb/CkMzFWTWJruIMy7hGIU= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 h1:XzmzkmB14QhVhgnawEVsOn6OFsnpyxNPRY9QV01dNB0= -google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7/go.mod h1:L43LFes82YgSonw6iTXTxXUX1OlULt4AQtkik4ULL/I= +google.golang.org/genproto v0.0.0-20260715232425-e75dac1f907d h1:C9v1o0/4quuhOAfmRXA2j+we0PqZIp8traLdeogF3Ms= +google.golang.org/genproto v0.0.0-20260715232425-e75dac1f907d/go.mod h1:Wz2wFJntZFmLGo7pLDXZ3wYk5hyc0Mb+SkHhDDXT+lU= google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688 h1:ax2KzoSRIZU/M0cIxri3pKxy99vniH1PVxWC6si/eZI= google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688/go.mod h1:1RJ9BQGyNdZwkGc1eTqkErfRZ6RJyYPHZo73BZ1vQqI= google.golang.org/genproto/googleapis/rpc v0.0.0-20260819154853-08b0e4226688 h1:cYNAzI2sUwhmCcoj9TxvihSrqsxt6uIkj3rDRhSDmW4= @@ -903,8 +884,8 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.6.1 h1:R094WgE8K4JirYjBaOpz/AvTyUu/3wbmAoskKN/pxTI= -honnef.co/go/tools v0.6.1/go.mod h1:3puzxxljPCe8RGJX7BIy1plGbxEOZni5mR2aXe3/uk4= +honnef.co/go/tools v0.8.2 h1:+jPbCzuYxYrcoOvCecYUFDj+XJQRmzIhJmlbpps21Zk= +honnef.co/go/tools v0.8.2/go.mod h1:xG1Q4n+mg3bKZrO6RWFA9jFlkqplflmDRHGeuexiLDs= k8s.io/api v0.37.0 h1:Z//Vj9N7RA/yS2sDmxyeo7h+RR4zbUrd2vrd3Z0TbB4= k8s.io/api v0.37.0/go.mod h1:LKXgcJWMc+f4OLbP5SFR8rulEg07zZhpi/zMULiBImk= k8s.io/apiextensions-apiserver v0.37.0 h1:zRMQ3+/LIE5oZ0tVvXwYHC+dIkSP5cjNWju7AZU1LOI= @@ -927,10 +908,10 @@ k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad h1:oXImqH8mQNk7PmvzKhmN3d k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad/go.mod h1:0/mqHCVhlumdJ3BhCfnjSZQE037nAhNodh1/hK0T8/I= k8s.io/utils v0.0.0-20260626114624-be93311217bd h1:Ea7fgQ5we8Y9T0OX5o0dAHzQOBRI07D/dEYRaB9ZZEs= k8s.io/utils v0.0.0-20260626114624-be93311217bd/go.mod h1:xDxuJ0whA3d0I4mf/C4ppKHxXynQ+fxnkmQH0vTHnuk= -mvdan.cc/gofumpt v0.7.0 h1:bg91ttqXmi9y2xawvkuMXyvAA/1ZGJqYAEGjXuP0JXU= -mvdan.cc/gofumpt v0.7.0/go.mod h1:txVFJy/Sc/mvaycET54pV8SW8gWxTlUuGHVEcncmNUo= -mvdan.cc/unparam v0.0.0-20250301125049-0df0534333a4 h1:WjUu4yQoT5BHT1w8Zu56SP8367OuBV5jvo+4Ulppyf8= -mvdan.cc/unparam v0.0.0-20250301125049-0df0534333a4/go.mod h1:rthT7OuvRbaGcd5ginj6dA2oLE7YNlta9qhBNNdCaLE= +mvdan.cc/gofumpt v0.12.0 h1:1Lbudkz2kpM9Cjz2pL4M19u7q+GaEhCTNf7N9mfpcho= +mvdan.cc/gofumpt v0.12.0/go.mod h1:SmBHHrljiZu/uoypeKup3rFzP6eoC9UwCp2iH5E3jZA= +mvdan.cc/unparam v0.0.0-20260823230713-2fa3d841b0c8 h1:Re1NRyLpiAt9kB+ImaaoapwWiQXrKwER4tY8fLOkDew= +mvdan.cc/unparam v0.0.0-20260823230713-2fa3d841b0c8/go.mod h1:MrS/+zJ1M2xvGXhKktiHbNQeQPyg3Qel+KkzT+f7/i4= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.36.0 h1:/YpDJ4vReG7ZmzSpBGxduXgywWkJU9zHubgJG03MT+Y= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.36.0/go.mod h1:tJo1aepTXyR+8Xs3sUsGBDk4Ub2AM5dPAPKJx0mpm5c= sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20260216173200-e4c1c38bcbdb h1:idmKgblo0x0z4OGzrva4fg+z02b5FnU/gr5MS21/Kuo= From 7075c0eaaabf6701a45b55c77c2925ce9a8e92fe Mon Sep 17 00:00:00 2001 From: jsirianni Date: Thu, 19 Nov 2026 13:40:49 -0500 Subject: [PATCH 6/7] refactor: replace repeated string literals with constants Resolves goconst findings introduced by the golangci-lint upgrade (goconst 1.8.1 -> 1.11.0). Assisted-by: Claude Opus 5.5 --- internal/controller/annotations_test.go | 16 +- internal/controller/bindplane_controller.go | 47 ++- .../controller/bindplane_controller_test.go | 269 +++++++++--------- internal/controller/cert_manager.go | 10 +- internal/controller/cert_manager_test.go | 42 +-- internal/controller/config_env.go | 40 +-- internal/controller/config_env_test.go | 24 +- internal/controller/constants_test.go | 44 +++ internal/controller/extra_env_test.go | 18 +- internal/controller/extra_volumes_test.go | 36 +-- internal/controller/image_override_test.go | 8 +- internal/controller/jobs.go | 2 +- internal/controller/node_autoscaling_test.go | 4 +- internal/controller/node_rollout_test.go | 6 +- internal/controller/opamp_test.go | 20 +- internal/controller/pdb_test.go | 2 +- internal/controller/prometheus.go | 24 +- internal/controller/skip_seed_test.go | 10 +- internal/validation/constants_test.go | 36 +++ internal/validation/validate_test.go | 130 ++++----- test/e2e/bindplane_e2e_test.go | 8 +- test/e2e/e2e_test.go | 10 +- test/e2e/helpers.go | 53 ++-- 23 files changed, 482 insertions(+), 377 deletions(-) create mode 100644 internal/controller/constants_test.go create mode 100644 internal/validation/constants_test.go diff --git a/internal/controller/annotations_test.go b/internal/controller/annotations_test.go index ff83534..9b8c36e 100644 --- a/internal/controller/annotations_test.go +++ b/internal/controller/annotations_test.go @@ -33,14 +33,14 @@ func TestAnnotationEnabled(t *testing.T) { want bool }{ {name: "nil map", annotations: nil, want: false}, - {name: "absent", annotations: map[string]string{"other": "true"}, want: false}, + {name: "absent", annotations: map[string]string{"other": envValueTrue}, want: false}, {name: "empty value", annotations: map[string]string{key: ""}, want: false}, - {name: "lowercase true", annotations: map[string]string{key: "true"}, want: true}, - {name: "titlecase True", annotations: map[string]string{key: "True"}, want: true}, + {name: "lowercase true", annotations: map[string]string{key: envValueTrue}, want: true}, + {name: "titlecase True", annotations: map[string]string{key: testValueTrueTitle}, want: true}, {name: "uppercase TRUE", annotations: map[string]string{key: "TRUE"}, want: true}, {name: "shorthand t", annotations: map[string]string{key: "t"}, want: true}, {name: "numeric 1", annotations: map[string]string{key: "1"}, want: true}, - {name: "lowercase false", annotations: map[string]string{key: "false"}, want: false}, + {name: "lowercase false", annotations: map[string]string{key: testValueFalse}, want: false}, {name: "uppercase FALSE", annotations: map[string]string{key: "FALSE"}, want: false}, {name: "numeric 0", annotations: map[string]string{key: "0"}, want: false}, {name: "unparseable yes", annotations: map[string]string{key: "yes"}, want: false}, @@ -65,17 +65,17 @@ func TestSkipMigrateCheck(t *testing.T) { want bool }{ {name: "annotation absent", set: false, want: false}, - {name: "true", set: true, value: "true", want: true}, - {name: "True", set: true, value: "True", want: true}, + {name: envValueTrue, set: true, value: envValueTrue, want: true}, + {name: testValueTrueTitle, set: true, value: testValueTrueTitle, want: true}, {name: "1", set: true, value: "1", want: true}, - {name: "false", set: true, value: "false", want: false}, + {name: testValueFalse, set: true, value: testValueFalse, want: false}, {name: "garbage", set: true, value: "maybe", want: false}, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { bp := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testValue, Namespace: testNamespaceDefault}, } if tc.set { bp.Annotations = map[string]string{annotationSkipMigrateCheck: tc.value} diff --git a/internal/controller/bindplane_controller.go b/internal/controller/bindplane_controller.go index 963cd32..6f3be4c 100644 --- a/internal/controller/bindplane_controller.go +++ b/internal/controller/bindplane_controller.go @@ -479,9 +479,32 @@ const ( // natsModeValue is the BINDPLANE_MODE value for NATS nodes natsModeValue = "node" // natsServerEnableValue is the value to enable NATS server - natsServerEnableValue = "true" + natsServerEnableValue = envValueTrue // enableRemoteValue is the value to enable remote services - enableRemoteValue = "true" + enableRemoteValue = envValueTrue + + // envValueTrue is the string value used for boolean "true" environment variables + envValueTrue = "true" + // tlsSecretCertKey is the default certificate key in a kubernetes.io/tls Secret + tlsSecretCertKey = "tls.crt" + // tlsSecretKeyKey is the default private key key in a kubernetes.io/tls Secret + tlsSecretKeyKey = "tls.key" + // tlsSecretCAKey is the default CA certificate key in a TLS Secret + tlsSecretCAKey = "ca.crt" + // conditionTypeReconciled is the status condition type (and reason) set after a reconcile + conditionTypeReconciled = "Reconciled" + // hostLocalhost is the loopback hostname + hostLocalhost = "localhost" + // metricsTypePrometheus is the Prometheus metrics exporter type + metricsTypePrometheus = "prometheus" + // telemetryTypeOTLP is the OTLP metrics/tracing exporter type + telemetryTypeOTLP = "otlp" + // certManagerIssuerKind is the cert-manager namespaced Issuer kind + certManagerIssuerKind = "Issuer" + // certManagerClusterIssuerKind is the cert-manager ClusterIssuer kind + certManagerClusterIssuerKind = "ClusterIssuer" + // certManagerGroup is the cert-manager API group + certManagerGroup = "cert-manager.io" ) // BindplaneReconciler reconciles a Bindplane object @@ -556,7 +579,7 @@ func (r *BindplaneReconciler) Reconcile(ctx context.Context, req ctrl.Request) ( if annotationEnabled(bindplane.Annotations, annotationPauseReconciliation) { log.Info("Reconciliation paused via annotation; skipping", "annotation", annotationPauseReconciliation) condition := metav1.Condition{ - Type: "Reconciled", + Type: conditionTypeReconciled, Status: metav1.ConditionFalse, Reason: "Paused", Message: fmt.Sprintf("Reconciliation paused. Remove annotation %s or set to false to resume.", annotationPauseReconciliation), @@ -577,7 +600,7 @@ func (r *BindplaneReconciler) Reconcile(ctx context.Context, req ctrl.Request) ( if err := validation.ValidateBindplane(bindplane); err != nil { log.Error(err, "invalid Bindplane resource") condition := metav1.Condition{ - Type: "Reconciled", + Type: conditionTypeReconciled, Status: metav1.ConditionFalse, Reason: "Invalid", Message: err.Error(), @@ -733,9 +756,9 @@ func (r *BindplaneReconciler) applyMigrateGate(ctx context.Context, bindplane *b // the bypass is visible in status. func reconciledCondition(bindplane *bindplanev1alpha1.Bindplane, state migrateState) metav1.Condition { condition := metav1.Condition{ - Type: "Reconciled", + Type: conditionTypeReconciled, Status: metav1.ConditionTrue, - Reason: "Reconciled", + Reason: conditionTypeReconciled, Message: "All resources reconciled successfully", ObservedGeneration: bindplane.Generation, LastTransitionTime: metav1.Now(), @@ -1676,13 +1699,13 @@ func getInternalTLSVolumesAndMounts(bindplane *bindplanev1alpha1.Bindplane) ([]c } else { certKey, keyKey, caKey := tls.CertKey, tls.KeyKey, tls.CAKey if certKey == "" { - certKey = "tls.crt" + certKey = tlsSecretCertKey } if keyKey == "" { - keyKey = "tls.key" + keyKey = tlsSecretKeyKey } if caKey == "" { - caKey = "ca.crt" + caKey = tlsSecretCAKey } vol = corev1.Volume{ Name: internalTLSTSDBClientVolumeName, @@ -1690,9 +1713,9 @@ func getInternalTLSVolumesAndMounts(bindplane *bindplanev1alpha1.Bindplane) ([]c Secret: &corev1.SecretVolumeSource{ SecretName: tls.SecretName, Items: []corev1.KeyToPath{ - {Key: certKey, Path: "tls.crt"}, - {Key: keyKey, Path: "tls.key"}, - {Key: caKey, Path: "ca.crt"}, + {Key: certKey, Path: tlsSecretCertKey}, + {Key: keyKey, Path: tlsSecretKeyKey}, + {Key: caKey, Path: tlsSecretCAKey}, }, }, }, diff --git a/internal/controller/bindplane_controller_test.go b/internal/controller/bindplane_controller_test.go index ba5e211..5556409 100644 --- a/internal/controller/bindplane_controller_test.go +++ b/internal/controller/bindplane_controller_test.go @@ -41,9 +41,6 @@ import ( bindplanev1alpha1 "github.com/observiq/bindplane-operator/api/v1alpha1" ) -// conditionTypeReconciled is the condition type used by the controller to report reconcile status. -const conditionTypeReconciled = "Reconciled" - // newTestBindplane returns a minimal valid Bindplane CR for integration tests. func newTestBindplane(name, namespace string) *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ @@ -163,7 +160,7 @@ func setBindplaneAnnotationTrue(ctx context.Context, name, namespace, key string if bp.Annotations == nil { bp.Annotations = map[string]string{} } - bp.Annotations[key] = "true" + bp.Annotations[key] = envValueTrue Expect(k8sClient.Update(ctx, bp)).To(Succeed()) } @@ -264,7 +261,7 @@ var _ = Describe("Reconcile - pause annotation", func() { It("pauses reconciliation and sets Reconciled=False/Paused", func() { name := "bp-pause" bp := newTestBindplane(name, testNamespace) - bp.Annotations = map[string]string{"k8s.bindplane.com/pause-reconciliation": "true"} + bp.Annotations = map[string]string{"k8s.bindplane.com/pause-reconciliation": envValueTrue} Expect(k8sClient.Create(testCtx, bp)).To(Succeed()) r := newReconciler() @@ -303,7 +300,7 @@ var _ = Describe("Reconcile - pause annotation", func() { It("resumes when annotation removed", func() { name := "bp-resume" bp := newTestBindplane(name, testNamespace) - bp.Annotations = map[string]string{"k8s.bindplane.com/pause-reconciliation": "true"} + bp.Annotations = map[string]string{"k8s.bindplane.com/pause-reconciliation": envValueTrue} Expect(k8sClient.Create(testCtx, bp)).To(Succeed()) r := newReconciler() @@ -477,7 +474,7 @@ var _ = Describe("Reconcile - Transform Agent", func() { bp.Spec.TransformAgent = &bindplanev1alpha1.TransformAgentComponentSpec{ Replicas: &replicas, TLS: &bindplanev1alpha1.TransformAgentTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ta-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testTAIssuerName}, }, } dep := newReconciler().transformAgentDeployment(bp) @@ -712,7 +709,7 @@ var _ = Describe("Reconcile - Jobs Migrate", func() { if patched.Annotations == nil { patched.Annotations = map[string]string{} } - patched.Annotations["k8s.bindplane.com/force-migrate"] = "true" + patched.Annotations["k8s.bindplane.com/force-migrate"] = envValueTrue Expect(k8sClient.Update(testCtx, patched)).To(Succeed()) // Reconcile: operator deletes the existing Job, clears the annotation, resets MigratedImage. @@ -808,7 +805,7 @@ var _ = Describe("Reconcile - Jobs Migrate", func() { It("skip-migrate-check bypasses a running migrate Job, keeps polling, and records success", func() { name := "bp-migrate-skip-running" bp := newTestBindplane(name, testNamespace) - bp.Annotations = map[string]string{annotationSkipMigrateCheck: "true"} + bp.Annotations = map[string]string{annotationSkipMigrateCheck: envValueTrue} Expect(k8sClient.Create(testCtx, bp)).To(Succeed()) r := newReconciler() @@ -840,7 +837,7 @@ var _ = Describe("Reconcile - Jobs Migrate", func() { updated, cond = getReconciledCondition(testCtx, name, testNamespace) Expect(cond.Status).To(Equal(metav1.ConditionTrue)) Expect(cond.Reason).To(Equal("Reconciled")) - Expect(updated.Annotations).To(HaveKeyWithValue(annotationSkipMigrateCheck, "true"), "annotation is sticky") + Expect(updated.Annotations).To(HaveKeyWithValue(annotationSkipMigrateCheck, envValueTrue), "annotation is sticky") Expect(updated.Status.Components.JobsMigrate.Image).To(Equal(getBindplaneJobsMigrateImage(updated))) }) @@ -892,7 +889,7 @@ var _ = Describe("Reconcile - Jobs Migrate", func() { updated := &bindplanev1alpha1.Bindplane{} Expect(k8sClient.Get(testCtx, types.NamespacedName{Name: name, Namespace: testNamespace}, updated)).To(Succeed()) Expect(updated.Annotations).NotTo(HaveKey("k8s.bindplane.com/force-migrate"), "force-migrate is one-shot") - Expect(updated.Annotations).To(HaveKeyWithValue(annotationSkipMigrateCheck, "true"), "skip-migrate-check is sticky") + Expect(updated.Annotations).To(HaveKeyWithValue(annotationSkipMigrateCheck, envValueTrue), "skip-migrate-check is sticky") Expect(updated.Status.Components.JobsMigrate.Image).To(BeEmpty()) expectDownstreamWorkloads(name) }) @@ -900,7 +897,7 @@ var _ = Describe("Reconcile - Jobs Migrate", func() { It("skip-migrate-check set to a value other than true has no effect", func() { name := "bp-migrate-skip-false" bp := newTestBindplane(name, testNamespace) - bp.Annotations = map[string]string{annotationSkipMigrateCheck: "false"} + bp.Annotations = map[string]string{annotationSkipMigrateCheck: testValueFalse} Expect(k8sClient.Create(testCtx, bp)).To(Succeed()) r := newReconciler() @@ -1193,7 +1190,7 @@ var _ = Describe("newService", func() { bindplane = &bindplanev1alpha1.Bindplane{ ObjectMeta: metav1.ObjectMeta{ Name: "test-bindplane", - Namespace: "default", + Namespace: testNamespaceDefault, }, } }) @@ -1204,7 +1201,7 @@ var _ = Describe("newService", func() { Expect(service).NotTo(BeNil()) Expect(service.Name).To(Equal("test-bindplane-test-component")) - Expect(service.Namespace).To(Equal("default")) + Expect(service.Namespace).To(Equal(testNamespaceDefault)) Expect(service.Spec.Type).To(Equal(corev1.ServiceTypeClusterIP)) Expect(service.Spec.Ports).To(HaveLen(1)) Expect(service.Spec.Ports[0].Name).To(Equal("http")) @@ -1496,10 +1493,10 @@ var _ = Describe("mergePodTemplateSpec", func() { Labels: map[string]string{ "app.kubernetes.io/name": "bindplane", "app.kubernetes.io/instance": "test-instance", - "app.kubernetes.io/component": "test", + "app.kubernetes.io/component": testValue, }, Annotations: map[string]string{ - "operator-managed": "true", + "operator-managed": envValueTrue, }, }, Spec: corev1.PodSpec{ @@ -1537,7 +1534,7 @@ var _ = Describe("mergePodTemplateSpec", func() { PodTemplateSpec: corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ - "user-label": "user-value", + testUserLabel: testUserValue, }, }, }, @@ -1547,8 +1544,8 @@ var _ = Describe("mergePodTemplateSpec", func() { Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("app.kubernetes.io/name", "bindplane")) Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("app.kubernetes.io/instance", "test-instance")) - Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("app.kubernetes.io/component", "test")) - Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("user-label", "user-value")) + Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("app.kubernetes.io/component", testValue)) + Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue(testUserLabel, testUserValue)) }) It("should protect operator-managed selector labels from user overrides", func() { @@ -1559,7 +1556,7 @@ var _ = Describe("mergePodTemplateSpec", func() { "app.kubernetes.io/name": "user-override-name", "app.kubernetes.io/instance": "user-override-instance", "app.kubernetes.io/component": "user-override-component", - "user-label": "user-value", + testUserLabel: testUserValue, }, }, }, @@ -1570,9 +1567,9 @@ var _ = Describe("mergePodTemplateSpec", func() { // Protected labels should retain operator-managed values Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("app.kubernetes.io/name", "bindplane")) Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("app.kubernetes.io/instance", "test-instance")) - Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("app.kubernetes.io/component", "test")) + Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("app.kubernetes.io/component", testValue)) // User labels should still be merged - Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("user-label", "user-value")) + Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue(testUserLabel, testUserValue)) }) It("should merge annotations from user-provided template", func() { @@ -1580,7 +1577,7 @@ var _ = Describe("mergePodTemplateSpec", func() { PodTemplateSpec: corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Annotations: map[string]string{ - "user-annotation": "user-value", + "user-annotation": testUserValue, }, }, }, @@ -1588,8 +1585,8 @@ var _ = Describe("mergePodTemplateSpec", func() { result := mergePodTemplateSpec(operatorManaged, userProvided) - Expect(result.ObjectMeta.Annotations).To(HaveKeyWithValue("operator-managed", "true")) - Expect(result.ObjectMeta.Annotations).To(HaveKeyWithValue("user-annotation", "user-value")) + Expect(result.ObjectMeta.Annotations).To(HaveKeyWithValue("operator-managed", envValueTrue)) + Expect(result.ObjectMeta.Annotations).To(HaveKeyWithValue("user-annotation", testUserValue)) }) It("should handle nil labels and annotations in operator-managed template", func() { @@ -1600,10 +1597,10 @@ var _ = Describe("mergePodTemplateSpec", func() { PodTemplateSpec: corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ - "user-label": "user-value", + testUserLabel: testUserValue, }, Annotations: map[string]string{ - "user-annotation": "user-value", + "user-annotation": testUserValue, }, }, }, @@ -1611,8 +1608,8 @@ var _ = Describe("mergePodTemplateSpec", func() { result := mergePodTemplateSpec(operatorManaged, userProvided) - Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("user-label", "user-value")) - Expect(result.ObjectMeta.Annotations).To(HaveKeyWithValue("user-annotation", "user-value")) + Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue(testUserLabel, testUserValue)) + Expect(result.ObjectMeta.Annotations).To(HaveKeyWithValue("user-annotation", testUserValue)) }) }) @@ -1624,7 +1621,7 @@ var _ = Describe("mergePodTemplateSpec", func() { { LabelSelector: &metav1.LabelSelector{ MatchLabels: map[string]string{ - "app": "test", + "app": testValue, }, }, TopologyKey: "kubernetes.io/hostname", @@ -2050,7 +2047,7 @@ var _ = Describe("mergePodTemplateSpec", func() { PodTemplateSpec: corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ - "user-label": "value", + testUserLabel: "value", }, }, Spec: corev1.PodSpec{ @@ -2074,7 +2071,7 @@ var _ = Describe("mergePodTemplateSpec", func() { result := mergePodTemplateSpec(operatorManaged, userProvided) // Verify all user fields are merged - Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue("user-label", "value")) + Expect(result.ObjectMeta.Labels).To(HaveKeyWithValue(testUserLabel, "value")) Expect(result.Spec.Affinity).To(Equal(userAffinity)) Expect(result.Spec.Tolerations).To(HaveLen(1)) Expect(result.Spec.NodeSelector).To(HaveKeyWithValue("zone", "us-west-1")) @@ -2159,7 +2156,7 @@ var _ = Describe("mergePodTemplateSpec Go runtime env vars", func() { Spec: corev1.PodSpec{ Containers: []corev1.Container{ { - Name: "server", + Name: nodeContainerName, Resources: corev1.ResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceCPU: resource.MustParse("1000m"), @@ -2182,7 +2179,7 @@ var _ = Describe("mergePodTemplateSpec Go runtime env vars", func() { Spec: corev1.PodSpec{ Containers: []corev1.Container{ { - Name: "server", + Name: nodeContainerName, Env: []corev1.EnvVar{{Name: "BASE_ENV", Value: "operator"}}, Resources: corev1.ResourceRequirements{ Requests: corev1.ResourceList{ @@ -2199,7 +2196,7 @@ var _ = Describe("mergePodTemplateSpec Go runtime env vars", func() { Spec: corev1.PodSpec{ Containers: []corev1.Container{ { - Name: "server", + Name: nodeContainerName, Env: []corev1.EnvVar{{Name: goMaxProcsEnvVar, Value: "99"}}, Resources: corev1.ResourceRequirements{ Limits: corev1.ResourceList{ @@ -2233,8 +2230,8 @@ var _ = Describe("workload Go runtime env vars", func() { replicas := int32(3) return &bindplanev1alpha1.Bindplane{ ObjectMeta: metav1.ObjectMeta{ - Name: "test-bp", - Namespace: "default", + Name: testBindplaneName, + Namespace: testNamespaceDefault, }, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ @@ -2277,7 +2274,7 @@ var _ = Describe("component-level resources field", func() { newBindplane := func() *bindplanev1alpha1.Bindplane { replicas := int32(3) return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ Store: bindplanev1alpha1.StoreConfig{ @@ -2477,8 +2474,8 @@ var _ = Describe("workload pod security context defaults", func() { transformAgentReplicas := int32(2) return &bindplanev1alpha1.Bindplane{ ObjectMeta: metav1.ObjectMeta{ - Name: "test-bp", - Namespace: "default", + Name: testBindplaneName, + Namespace: testNamespaceDefault, }, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ @@ -2539,12 +2536,12 @@ var _ = Describe("getBindplaneConfigEnvVars", func() { baseBindplane := func() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ ObjectMeta: metav1.ObjectMeta{ - Name: "test-bp", - Namespace: "default", + Name: testBindplaneName, + Namespace: testNamespaceDefault, }, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{ Host: "pg", @@ -2584,7 +2581,7 @@ var _ = Describe("getBindplaneConfigEnvVars", func() { It("sets metrics type otlp with temporality and keepAlive env vars", func() { bindplane := baseBindplane() bindplane.Spec.Config.Metrics = &bindplanev1alpha1.MetricsConfig{ - Type: "otlp", + Type: telemetryTypeOTLP, OTLP: &bindplanev1alpha1.MetricsOTLPConfig{ Endpoint: "otel:4317", Insecure: true, @@ -2599,20 +2596,20 @@ var _ = Describe("getBindplaneConfigEnvVars", func() { } envVars := getBindplaneConfigEnvVars(bindplane) - Expect(envVarByName(envVars, "BINDPLANE_METRICS_TYPE")).To(Equal("otlp")) + Expect(envVarByName(envVars, "BINDPLANE_METRICS_TYPE")).To(Equal(telemetryTypeOTLP)) Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_ENDPOINT")).To(Equal("otel:4317")) - Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_INSECURE")).To(Equal("true")) + Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_INSECURE")).To(Equal(envValueTrue)) Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_TEMPORALITY")).To(Equal("delta")) - Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_KEEP_ALIVE_ENABLED")).To(Equal("true")) + Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_KEEP_ALIVE_ENABLED")).To(Equal(envValueTrue)) Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_KEEP_ALIVE_TIME")).To(Equal("45s")) Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_KEEP_ALIVE_TIMEOUT")).To(Equal("15s")) - Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_KEEP_ALIVE_PERMIT_WITHOUT_STREAM")).To(Equal("true")) + Expect(envVarByName(envVars, "BINDPLANE_METRICS_OTLP_KEEP_ALIVE_PERMIT_WITHOUT_STREAM")).To(Equal(envValueTrue)) }) It("omits metrics otlp keepAlive env vars when keepAlive is not set", func() { bindplane := baseBindplane() bindplane.Spec.Config.Metrics = &bindplanev1alpha1.MetricsConfig{ - Type: "otlp", + Type: telemetryTypeOTLP, OTLP: &bindplanev1alpha1.MetricsOTLPConfig{Endpoint: "otel:4317"}, } envVars := getBindplaneConfigEnvVars(bindplane) @@ -2627,7 +2624,7 @@ var _ = Describe("getBindplaneConfigEnvVars", func() { It("sets tracing type otlp with endpoint, insecure, and sampling rate", func() { bindplane := baseBindplane() bindplane.Spec.Config.Tracing = &bindplanev1alpha1.TracingConfig{ - Type: "otlp", + Type: telemetryTypeOTLP, OTLP: &bindplanev1alpha1.TracingOTLPConfig{ Endpoint: "http://otel:4317", Insecure: true, @@ -2636,9 +2633,9 @@ var _ = Describe("getBindplaneConfigEnvVars", func() { } envVars := getBindplaneConfigEnvVars(bindplane) - Expect(envVarByName(envVars, "BINDPLANE_TRACING_TYPE")).To(Equal("otlp")) + Expect(envVarByName(envVars, "BINDPLANE_TRACING_TYPE")).To(Equal(telemetryTypeOTLP)) Expect(envVarByName(envVars, "BINDPLANE_TRACING_OTLP_ENDPOINT")).To(Equal("http://otel:4317")) - Expect(envVarByName(envVars, "BINDPLANE_TRACING_OTLP_INSECURE")).To(Equal("true")) + Expect(envVarByName(envVars, "BINDPLANE_TRACING_OTLP_INSECURE")).To(Equal(envValueTrue)) Expect(envVarByName(envVars, "BINDPLANE_TRACING_SAMPLING_RATE")).To(Equal("0.5")) }) @@ -2742,7 +2739,7 @@ var _ = Describe("getBindplaneConfigEnvVars", func() { } envVars := getBindplaneConfigEnvVars(bindplane) Expect(envVarByName(envVars, "BINDPLANE_TLS_MIN_VERSION")).To(Equal("1.2")) - Expect(envVarByName(envVars, "BINDPLANE_TLS_SKIP_VERIFY")).To(Equal("true")) + Expect(envVarByName(envVars, "BINDPLANE_TLS_SKIP_VERIFY")).To(Equal(envValueTrue)) Expect(envVarByName(envVars, "BINDPLANE_TLS_CERT")).To(BeEmpty()) Expect(envVarByName(envVars, "BINDPLANE_TLS_KEY")).To(BeEmpty()) }) @@ -2751,9 +2748,9 @@ var _ = Describe("getBindplaneConfigEnvVars", func() { bindplane := baseBindplane() bindplane.Spec.Config.Network = &bindplanev1alpha1.NetworkConfig{ TLS: &bindplanev1alpha1.NetworkTLSConfig{ - SecretName: "tls-secret", - CertKey: "tls.crt", - KeyKey: "tls.key", + SecretName: testTLSSecretName, + CertKey: tlsSecretCertKey, + KeyKey: tlsSecretKeyKey, }, } envVars := getBindplaneConfigEnvVars(bindplane) @@ -2766,10 +2763,10 @@ var _ = Describe("getBindplaneConfigEnvVars", func() { bindplane := baseBindplane() bindplane.Spec.Config.Network = &bindplanev1alpha1.NetworkConfig{ TLS: &bindplanev1alpha1.NetworkTLSConfig{ - SecretName: "tls-secret", - CertKey: "tls.crt", - KeyKey: "tls.key", - CAKey: "ca.crt", + SecretName: testTLSSecretName, + CertKey: tlsSecretCertKey, + KeyKey: tlsSecretKeyKey, + CAKey: tlsSecretCAKey, }, } envVars := getBindplaneConfigEnvVars(bindplane) @@ -2825,12 +2822,12 @@ var _ = Describe("getStatusEnvVars", func() { baseBindplane := func() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ ObjectMeta: metav1.ObjectMeta{ - Name: "test-bp", - Namespace: "default", + Name: testBindplaneName, + Namespace: testNamespaceDefault, }, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}, }, @@ -2842,7 +2839,7 @@ var _ = Describe("getStatusEnvVars", func() { It("enables status and references the managed secret when status is omitted", func() { bindplane := baseBindplane() envVars := getStatusEnvVars(bindplane) - Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal("true")) + Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal(envValueTrue)) ref := envVarSecretKeyRef(envVars, bindplaneStatusKeysEnvVar) Expect(ref).NotTo(BeNil()) Expect(ref.Name).To(Equal("test-bp-status-secret")) @@ -2853,7 +2850,7 @@ var _ = Describe("getStatusEnvVars", func() { bindplane := baseBindplane() bindplane.Spec.Config.Status = &bindplanev1alpha1.StatusConfig{Enabled: true} envVars := getStatusEnvVars(bindplane) - Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal("true")) + Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal(envValueTrue)) ref := envVarSecretKeyRef(envVars, bindplaneStatusKeysEnvVar) Expect(ref).NotTo(BeNil()) Expect(ref.Name).To(Equal("test-bp-status-secret")) @@ -2864,7 +2861,7 @@ var _ = Describe("getStatusEnvVars", func() { bindplane := baseBindplane() bindplane.Spec.Config.Status = &bindplanev1alpha1.StatusConfig{Enabled: false} envVars := getStatusEnvVars(bindplane) - Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal("false")) + Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal(testValueFalse)) Expect(envVarByName(envVars, bindplaneStatusKeysEnvVar)).To(BeEmpty()) Expect(envVarSecretKeyRef(envVars, bindplaneStatusKeysEnvVar)).To(BeNil()) }) @@ -2876,7 +2873,7 @@ var _ = Describe("getStatusEnvVars", func() { Keys: []string{"11111111-1111-1111-1111-111111111111", "22222222-2222-2222-2222-222222222222"}, } envVars := getStatusEnvVars(bindplane) - Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal("true")) + Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal(envValueTrue)) Expect(envVarByName(envVars, bindplaneStatusKeysEnvVar)).To(Equal("11111111-1111-1111-1111-111111111111,22222222-2222-2222-2222-222222222222")) Expect(envVarSecretKeyRef(envVars, bindplaneStatusKeysEnvVar)).To(BeNil()) }) @@ -2891,7 +2888,7 @@ var _ = Describe("getStatusEnvVars", func() { }, } envVars := getStatusEnvVars(bindplane) - Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal("true")) + Expect(envVarByName(envVars, bindplaneStatusEnabledEnvVar)).To(Equal(envValueTrue)) ref := envVarSecretKeyRef(envVars, bindplaneStatusKeysEnvVar) Expect(ref).NotTo(BeNil()) Expect(ref.Name).To(Equal("user-status-secret")) @@ -2924,7 +2921,7 @@ var _ = Describe("getNetworkTLSVolumeAndMount", func() { Config: bindplanev1alpha1.BindplaneConfigSpec{ Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, Network: &bindplanev1alpha1.NetworkConfig{ - TLS: &bindplanev1alpha1.NetworkTLSConfig{SecretName: "tls-secret"}, + TLS: &bindplanev1alpha1.NetworkTLSConfig{SecretName: testTLSSecretName}, }, }, }, @@ -2941,9 +2938,9 @@ var _ = Describe("getNetworkTLSVolumeAndMount", func() { Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, Network: &bindplanev1alpha1.NetworkConfig{ TLS: &bindplanev1alpha1.NetworkTLSConfig{ - SecretName: "tls-secret", - CertKey: "tls.crt", - KeyKey: "tls.key", + SecretName: testTLSSecretName, + CertKey: tlsSecretCertKey, + KeyKey: tlsSecretKeyKey, }, }, }, @@ -2953,7 +2950,7 @@ var _ = Describe("getNetworkTLSVolumeAndMount", func() { Expect(vols).To(HaveLen(1)) Expect(vols[0].Name).To(Equal("network-tls")) Expect(vols[0].Secret).ToNot(BeNil()) - Expect(vols[0].Secret.SecretName).To(Equal("tls-secret")) + Expect(vols[0].Secret.SecretName).To(Equal(testTLSSecretName)) Expect(mounts).To(HaveLen(1)) Expect(mounts[0].Name).To(Equal("network-tls")) Expect(mounts[0].MountPath).To(Equal("/etc/bindplane/network-tls")) @@ -2963,10 +2960,10 @@ var _ = Describe("getNetworkTLSVolumeAndMount", func() { var _ = Describe("getBindplaneConfigEnvVars Postgres TLS", func() { baseBindplane := func() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}, }, @@ -2992,8 +2989,8 @@ var _ = Describe("getBindplaneConfigEnvVars Postgres TLS", func() { It("sets postgres TLS root cert only when TLS has secretName and caKey (server-side TLS)", func() { bindplane := baseBindplane() bindplane.Spec.Config.Store.Postgres.TLS = &bindplanev1alpha1.PostgresTLSConfig{ - SecretName: "pg-tls", - CAKey: "ca.crt", + SecretName: testPostgresTLSSecretName, + CAKey: tlsSecretCAKey, } envVars := getBindplaneConfigEnvVars(bindplane) Expect(envVarByName(envVars, "BINDPLANE_POSTGRES_SSL_ROOT_CERT")).To(Equal("/etc/bindplane/postgres-tls/ca.crt")) @@ -3004,10 +3001,10 @@ var _ = Describe("getBindplaneConfigEnvVars Postgres TLS", func() { It("sets postgres TLS root cert, cert, and key when mutual TLS (caKey, certKey, keyKey)", func() { bindplane := baseBindplane() bindplane.Spec.Config.Store.Postgres.TLS = &bindplanev1alpha1.PostgresTLSConfig{ - SecretName: "pg-tls", - CAKey: "ca.crt", - CertKey: "tls.crt", - KeyKey: "tls.key", + SecretName: testPostgresTLSSecretName, + CAKey: tlsSecretCAKey, + CertKey: tlsSecretCertKey, + KeyKey: tlsSecretKeyKey, } envVars := getBindplaneConfigEnvVars(bindplane) Expect(envVarByName(envVars, "BINDPLANE_POSTGRES_SSL_ROOT_CERT")).To(Equal("/etc/bindplane/postgres-tls/ca.crt")) @@ -3036,10 +3033,10 @@ var _ = Describe("getBindplaneConfigEnvVars Postgres TLS", func() { var _ = Describe("getStoreConfigEnvVars", func() { baseBindplane := func() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}, }, @@ -3112,7 +3109,7 @@ var _ = Describe("defaultRequiredHosts", func() { bindplane := &bindplanev1alpha1.Bindplane{ Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, }, Nats: &bindplanev1alpha1.NatsComponentSpec{Replicas: &natsReplicas}, @@ -3129,7 +3126,7 @@ var _ = Describe("defaultRequiredHosts", func() { Spec: bindplanev1alpha1.BindplaneSpec{ Bindplane: bindplanev1alpha1.BindplaneComponentSpec{Replicas: &nodeReplicas}, Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, }, Nats: &bindplanev1alpha1.NatsComponentSpec{Replicas: &natsReplicas}, @@ -3207,10 +3204,10 @@ var _ = Describe("migrate Job helpers", func() { BeforeEach(func() { bindplane = &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testValue, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, }, }, @@ -3221,7 +3218,7 @@ var _ = Describe("migrate Job helpers", func() { It("produces a Job with correct name and namespace", func() { job := r.bindplaneJobsMigrateJob(bindplane) Expect(job.Name).To(Equal("test-migrate")) - Expect(job.Namespace).To(Equal("default")) + Expect(job.Namespace).To(Equal(testNamespaceDefault)) }) It("sets the migrate command", func() { @@ -3260,7 +3257,7 @@ var _ = Describe("migrate Job helpers", func() { It("does not mount the NATS TLS volume even when NATS cert-manager TLS is configured", func() { bindplane.Spec.Config.Nats = &bindplanev1alpha1.NatsConfig{ TLS: &bindplanev1alpha1.NatsTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "my-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testIssuerName}, }, } job := r.bindplaneJobsMigrateJob(bindplane) @@ -3279,12 +3276,12 @@ var _ = Describe("getEventBusHealthEnvVars", func() { nodeReplicas := int32(3) natsReplicas := int32(2) return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Bindplane: bindplanev1alpha1.BindplaneComponentSpec{Replicas: &nodeReplicas}, Nats: &bindplanev1alpha1.NatsComponentSpec{Replicas: &natsReplicas}, Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, }, }, @@ -3339,10 +3336,10 @@ var _ = Describe("getEventBusHealthEnvVars", func() { var _ = Describe("getLoggingConfigEnvVars", func() { baseBindplane := func() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, }, }, @@ -3401,7 +3398,7 @@ var _ = Describe("getPostgresTLSVolumeAndMount", func() { Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{ Host: "pg", - TLS: &bindplanev1alpha1.PostgresTLSConfig{SecretName: "pg-tls"}, + TLS: &bindplanev1alpha1.PostgresTLSConfig{SecretName: testPostgresTLSSecretName}, }, }, }, @@ -3420,8 +3417,8 @@ var _ = Describe("getPostgresTLSVolumeAndMount", func() { Postgres: &bindplanev1alpha1.PostgresConfig{ Host: "pg", TLS: &bindplanev1alpha1.PostgresTLSConfig{ - SecretName: "pg-tls", - CAKey: "ca.crt", + SecretName: testPostgresTLSSecretName, + CAKey: tlsSecretCAKey, }, }, }, @@ -3432,7 +3429,7 @@ var _ = Describe("getPostgresTLSVolumeAndMount", func() { Expect(vols).To(HaveLen(1)) Expect(vols[0].Name).To(Equal("postgres-tls")) Expect(vols[0].Secret).ToNot(BeNil()) - Expect(vols[0].Secret.SecretName).To(Equal("pg-tls")) + Expect(vols[0].Secret.SecretName).To(Equal(testPostgresTLSSecretName)) Expect(mounts).To(HaveLen(1)) Expect(mounts[0].MountPath).To(Equal("/etc/bindplane/postgres-tls")) }) @@ -3451,11 +3448,11 @@ func envVarSecretKeyRef(envVars []corev1.EnvVar, name string) *corev1.SecretKeyS var _ = Describe("getTSDBEnvVars", func() { It("returns enable_remote, host, port, and username/password from generated secret when internal TLS is disabled", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespaceDefault}, } envVars := getTSDBEnvVars(bindplane) Expect(envVars).To(HaveLen(6)) - Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_ENABLE_REMOTE")).To(Equal("true")) + Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_ENABLE_REMOTE")).To(Equal(envValueTrue)) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_HOST")).To(Equal("my-bp-tsdb.default.svc")) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_PORT")).To(Equal("9090")) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_AUTH_TYPE")).To(Equal("basic")) @@ -3472,7 +3469,7 @@ var _ = Describe("getTSDBEnvVars", func() { }) It("uses remote Prometheus env vars and skips operator-generated basic auth when remote.enable is true", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ License: "x", @@ -3480,7 +3477,7 @@ var _ = Describe("getTSDBEnvVars", func() { TSDB: &bindplanev1alpha1.TSDBConfig{ Remote: &bindplanev1alpha1.TSDBRemoteConfig{ Enable: true, - Host: "vm.example.internal", + Host: testVMHost, QueryPathPrefix: "/select/0/prometheus", RemoteWrite: &bindplanev1alpha1.TSDBRemoteWriteConfig{ Host: "vm-write.example.internal", @@ -3492,8 +3489,8 @@ var _ = Describe("getTSDBEnvVars", func() { }, } envVars := getTSDBEnvVars(bindplane) - Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_ENABLE_REMOTE")).To(Equal("true")) - Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_HOST")).To(Equal("vm.example.internal")) + Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_ENABLE_REMOTE")).To(Equal(envValueTrue)) + Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_HOST")).To(Equal(testVMHost)) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_PORT")).To(Equal("9090")) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_QUERY_PATH_PREFIX")).To(Equal("/select/0/prometheus")) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_REMOTE_WRITE_HOST")).To(Equal("vm-write.example.internal")) @@ -3505,7 +3502,7 @@ var _ = Describe("getTSDBEnvVars", func() { }) It("uses remote write endpoint override when provided", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ License: "x", @@ -3513,7 +3510,7 @@ var _ = Describe("getTSDBEnvVars", func() { TSDB: &bindplanev1alpha1.TSDBConfig{ Remote: &bindplanev1alpha1.TSDBRemoteConfig{ Enable: true, - Host: "vm.example.internal", + Host: testVMHost, Port: 8080, RemoteWrite: &bindplanev1alpha1.TSDBRemoteWriteConfig{ Host: "vm-write.example.internal", @@ -3531,14 +3528,14 @@ var _ = Describe("getTSDBEnvVars", func() { }) It("adds Prometheus TLS env vars when cert-manager TLS is enabled", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ License: "x", Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, TSDB: &bindplanev1alpha1.TSDBConfig{ TLS: &bindplanev1alpha1.TSDBTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ca-issuer", Kind: "ClusterIssuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testCAIssuerName, Kind: certManagerClusterIssuerKind}, }, }, }, @@ -3546,21 +3543,21 @@ var _ = Describe("getTSDBEnvVars", func() { } envVars := getTSDBEnvVars(bindplane) Expect(envVars).To(HaveLen(10)) - Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_ENABLE_TLS")).To(Equal("true")) + Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_ENABLE_TLS")).To(Equal(envValueTrue)) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_TLS_CERT")).To(Equal(internalTLSTSDBClientMountPath + "/tls.crt")) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_TLS_KEY")).To(Equal(internalTLSTSDBClientMountPath + "/tls.key")) Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_TLS_CA")).To(Equal(internalTLSTSDBClientMountPath + "/ca.crt")) }) It("adds BINDPLANE_PROMETHEUS_TLS_SKIP_VERIFY when prometheus TLS skipVerify is true", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ License: "x", Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, TSDB: &bindplanev1alpha1.TSDBConfig{ TLS: &bindplanev1alpha1.TSDBTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ca-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testCAIssuerName}, SkipVerify: true, }, }, @@ -3568,7 +3565,7 @@ var _ = Describe("getTSDBEnvVars", func() { }, } envVars := getTSDBEnvVars(bindplane) - Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_TLS_SKIP_VERIFY")).To(Equal("true")) + Expect(envVarByName(envVars, "BINDPLANE_PROMETHEUS_TLS_SKIP_VERIFY")).To(Equal(envValueTrue)) Expect(envVars).To(HaveLen(11)) }) }) @@ -3595,7 +3592,7 @@ var _ = Describe("reconcileTSDB", func() { // return nil without error (all deletes are no-ops on IsNotFound). reconciler := newReconciler() bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: testNamespace}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespace}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ License: "x", @@ -3603,13 +3600,13 @@ var _ = Describe("reconcileTSDB", func() { TSDB: &bindplanev1alpha1.TSDBConfig{ Remote: &bindplanev1alpha1.TSDBRemoteConfig{ Enable: true, - Host: "vm.example.internal", + Host: testVMHost, }, }, }, }, } - Expect(reconciler.reconcileTSDB(testCtx, bindplane, logf.Log.WithName("test"))).To(Succeed()) + Expect(reconciler.reconcileTSDB(testCtx, bindplane, logf.Log.WithName(testValue))).To(Succeed()) }) }) @@ -3644,7 +3641,7 @@ var _ = Describe("validateTSDBTLSConfig (controller_test)", func() { Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, TSDB: &bindplanev1alpha1.TSDBConfig{ TLS: &bindplanev1alpha1.TSDBTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "my-issuer", Kind: "Issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testIssuerName, Kind: certManagerIssuerKind}, }, }, }, @@ -3656,14 +3653,14 @@ var _ = Describe("validateTSDBTLSConfig (controller_test)", func() { var _ = Describe("getInternalTLSVolumesAndMounts", func() { It("returns nil when cert-manager TLS is not configured", func() { - bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}} + bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}} vols, mounts := getInternalTLSVolumesAndMounts(bindplane) Expect(vols).To(BeNil()) Expect(mounts).To(BeNil()) }) It("returns one volume and one mount when cert-manager TLS is enabled", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ License: "x", @@ -3688,18 +3685,18 @@ var _ = Describe("getInternalTLSVolumesAndMounts", func() { var _ = Describe("getNatsTLSEnvVars", func() { It("returns nil when NATS TLS cert-manager is not configured", func() { - bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}} + bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}} envVars := getNatsTLSEnvVars(bindplane) Expect(envVars).To(BeNil()) }) It("returns NATS TLS env vars when spec.config.nats.tls.certManager is set", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ Nats: &bindplanev1alpha1.NatsConfig{ TLS: &bindplanev1alpha1.NatsTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "nats-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testNatsIssuerName}, }, }, }, @@ -3707,7 +3704,7 @@ var _ = Describe("getNatsTLSEnvVars", func() { } envVars := getNatsTLSEnvVars(bindplane) Expect(envVars).NotTo(BeNil()) - Expect(envVarByName(envVars, bindplaneNatsEnableTLSEnvVar)).To(Equal("true")) + Expect(envVarByName(envVars, bindplaneNatsEnableTLSEnvVar)).To(Equal(envValueTrue)) Expect(envVarByName(envVars, bindplaneNatsTLSCertEnvVar)).To(Equal(internalTLSNatsMountPath + "/tls.crt")) Expect(envVarByName(envVars, bindplaneNatsTLSKeyEnvVar)).To(Equal(internalTLSNatsMountPath + "/tls.key")) Expect(envVarByName(envVars, bindplaneNatsTLSCAEnvVar)).To(Equal(internalTLSNatsMountPath + "/ca.crt")) @@ -3717,19 +3714,19 @@ var _ = Describe("getNatsTLSEnvVars", func() { var _ = Describe("getNatsTLSVolumesAndMounts", func() { It("returns nil when NATS TLS cert-manager is not configured", func() { - bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}} + bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}} vols, mounts := getNatsTLSVolumesAndMounts(bindplane) Expect(vols).To(BeNil()) Expect(mounts).To(BeNil()) }) It("returns one volume and one mount when spec.config.nats.tls.certManager is set", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ Nats: &bindplanev1alpha1.NatsConfig{ TLS: &bindplanev1alpha1.NatsTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "nats-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testNatsIssuerName}, }, }, }, @@ -3747,18 +3744,18 @@ var _ = Describe("getNatsTLSVolumesAndMounts", func() { var _ = Describe("getTransformAgentTLSEnvVars", func() { It("returns nil when Transform Agent TLS cert-manager is not configured", func() { - bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}} + bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}} envVars := getTransformAgentTLSEnvVars(bindplane) Expect(envVars).To(BeNil()) }) It("returns Transform Agent TLS env vars when spec.transformAgent.tls.certManager is set", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ TransformAgent: &bindplanev1alpha1.TransformAgentComponentSpec{ TLS: &bindplanev1alpha1.TransformAgentTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ta-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testTAIssuerName}, }, }, }, @@ -3773,7 +3770,7 @@ var _ = Describe("getTransformAgentTLSEnvVars", func() { var _ = Describe("getTransformAgentTLSVolumesAndMounts", func() { It("returns nil when Transform Agent TLS cert-manager is not configured", func() { - bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}} + bindplane := &bindplanev1alpha1.Bindplane{ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}} vols, mounts := getTransformAgentTLSVolumesAndMounts(bindplane) Expect(vols).To(BeNil()) Expect(mounts).To(BeNil()) @@ -3781,11 +3778,11 @@ var _ = Describe("getTransformAgentTLSVolumesAndMounts", func() { It("returns one volume and one mount when spec.transformAgent.tls.certManager is set", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ TransformAgent: &bindplanev1alpha1.TransformAgentComponentSpec{ TLS: &bindplanev1alpha1.TransformAgentTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ta-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testTAIssuerName}, }, }, }, @@ -3802,10 +3799,10 @@ var _ = Describe("getTransformAgentTLSVolumesAndMounts", func() { var _ = Describe("bindplaneJobsMigrateJob", func() { It("mounts Transform Agent TLS when enabled", func() { - bindplane := newTestBindplane("bp-migrate-ta-tls", "default") + bindplane := newTestBindplane("bp-migrate-ta-tls", testNamespaceDefault) bindplane.Spec.TransformAgent = &bindplanev1alpha1.TransformAgentComponentSpec{ TLS: &bindplanev1alpha1.TransformAgentTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ta-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testTAIssuerName}, }, } @@ -3846,10 +3843,10 @@ var _ = Describe("generateTSDBBasicAuthSecretData", func() { var _ = Describe("getAgentsConfigEnvVars", func() { baseBindplane := func() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, }, }, @@ -3965,10 +3962,10 @@ var _ = Describe("getAgentsConfigEnvVars", func() { var _ = Describe("getAgentVersionsConfigEnvVars", func() { baseBindplane := func() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{Postgres: &bindplanev1alpha1.PostgresConfig{Host: "pg"}}, }, }, diff --git a/internal/controller/cert_manager.go b/internal/controller/cert_manager.go index 7b7410e..354a92c 100644 --- a/internal/controller/cert_manager.go +++ b/internal/controller/cert_manager.go @@ -269,7 +269,7 @@ func getTSDBServerCertDNSNames(bindplane *bindplanev1alpha1.Bindplane) []string fmt.Sprintf("%s.%s.svc.cluster.local", name, ns), fmt.Sprintf("%s.%s.svc", name, ns), fmt.Sprintf("%s-0.%s.%s.svc.cluster.local", name, name, ns), - "localhost", + hostLocalhost, } } @@ -320,7 +320,7 @@ func getTransformAgentServerCertDNSNames(bindplane *bindplanev1alpha1.Bindplane) fmt.Sprintf("%s.%s", name, ns), fmt.Sprintf("%s.%s.svc", name, ns), fmt.Sprintf("%s.%s.svc.cluster.local", name, ns), - "localhost", + hostLocalhost, } } @@ -342,7 +342,7 @@ func getNatsServerCertDNSNames(bindplane *bindplanev1alpha1.Bindplane) []string fmt.Sprintf("%s.%s", headlessName, ns), fmt.Sprintf("%s.%s.svc.cluster.local", headlessName, ns), fmt.Sprintf("%s.%s.svc", headlessName, ns), - "localhost", + hostLocalhost, } for i := int32(0); i < replicas; i++ { names = append(names, fmt.Sprintf("%s-%d.%s.%s", name, i, headlessName, ns)) @@ -462,11 +462,11 @@ func buildTransformAgentCertificate( func issuerRefToCM(ref bindplanev1alpha1.CertManagerTLSIssuerRef) cmmeta.IssuerReference { kind := ref.Kind if kind == "" { - kind = "Issuer" + kind = certManagerIssuerKind } group := ref.Group if group == "" { - group = "cert-manager.io" + group = certManagerGroup } return cmmeta.IssuerReference{Name: ref.Name, Kind: kind, Group: group} } diff --git a/internal/controller/cert_manager_test.go b/internal/controller/cert_manager_test.go index be3390b..41092f0 100644 --- a/internal/controller/cert_manager_test.go +++ b/internal/controller/cert_manager_test.go @@ -61,7 +61,7 @@ var _ = Describe("isTSDBClientCertManagerTLSEnabled", func() { Config: bindplanev1alpha1.BindplaneConfigSpec{ TSDB: &bindplanev1alpha1.TSDBConfig{ TLS: &bindplanev1alpha1.TSDBTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ca-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testCAIssuerName}, }, }, }, @@ -81,7 +81,7 @@ var _ = Describe("isTSDBServerCertManagerTLSEnabled", func() { Spec: bindplanev1alpha1.BindplaneSpec{ TSDB: &bindplanev1alpha1.TSDBComponentSpec{ TLS: &bindplanev1alpha1.TSDBTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "my-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testIssuerName}, }, }, }, @@ -134,7 +134,7 @@ var _ = Describe("validateTSDBTLSConfig", func() { Config: bindplanev1alpha1.BindplaneConfigSpec{ TSDB: &bindplanev1alpha1.TSDBConfig{ TLS: &bindplanev1alpha1.TSDBTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "my-issuer", Kind: "Issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testIssuerName, Kind: certManagerIssuerKind}, }, }, }, @@ -179,7 +179,7 @@ var _ = Describe("isNatsCertManagerTLSEnabled", func() { Config: bindplanev1alpha1.BindplaneConfigSpec{ Nats: &bindplanev1alpha1.NatsConfig{ TLS: &bindplanev1alpha1.NatsTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "nats-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testNatsIssuerName}, }, }, }, @@ -226,7 +226,7 @@ var _ = Describe("validateNatsTLSConfig", func() { Config: bindplanev1alpha1.BindplaneConfigSpec{ Nats: &bindplanev1alpha1.NatsConfig{ TLS: &bindplanev1alpha1.NatsTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "nats-issuer", Kind: "Issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testNatsIssuerName, Kind: certManagerIssuerKind}, }, }, }, @@ -256,7 +256,7 @@ var _ = Describe("isTransformAgentCertManagerTLSEnabled", func() { Spec: bindplanev1alpha1.BindplaneSpec{ TransformAgent: &bindplanev1alpha1.TransformAgentComponentSpec{ TLS: &bindplanev1alpha1.TransformAgentTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ta-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testTAIssuerName}, }, }, }, @@ -290,7 +290,7 @@ var _ = Describe("validateTransformAgentTLSConfig", func() { Spec: bindplanev1alpha1.BindplaneSpec{ TransformAgent: &bindplanev1alpha1.TransformAgentComponentSpec{ TLS: &bindplanev1alpha1.TransformAgentTLSConfig{ - CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ta-issuer"}, + CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testTAIssuerName}, }, }, }, @@ -303,7 +303,7 @@ var _ = Describe("getNatsServerCertDNSNames", func() { It("returns client service, headless, pod DNS names and localhost", func() { replicas := int32(2) bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Nats: &bindplanev1alpha1.NatsComponentSpec{ Replicas: &replicas, @@ -327,7 +327,7 @@ var _ = Describe("getNatsServerCertDNSNames", func() { var _ = Describe("getTransformAgentServerCertDNSNames", func() { It("returns service DNS names used by Bindplane clients", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespaceDefault}, } names := getTransformAgentServerCertDNSNames(bindplane) @@ -343,7 +343,7 @@ var _ = Describe("getTransformAgentServerCertDNSNames", func() { var _ = Describe("getTSDBServerCertDNSNames", func() { It("returns service and pod DNS names for the bindplane tsdb component", func() { bindplane := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "my-bp", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testMyBindplaneName, Namespace: testNamespaceDefault}, } names := getTSDBServerCertDNSNames(bindplane) Expect(names).To(ContainElement("my-bp-tsdb.default.svc.cluster.local")) @@ -358,20 +358,20 @@ var _ = Describe("issuerRefToCM", func() { It("converts name, kind, and group", func() { ref := bindplanev1alpha1.CertManagerTLSIssuerRef{ Name: "my-cluster-issuer", - Kind: "ClusterIssuer", - Group: "cert-manager.io", + Kind: certManagerClusterIssuerKind, + Group: certManagerGroup, } out := issuerRefToCM(ref) Expect(out.Name).To(Equal("my-cluster-issuer")) - Expect(out.Kind).To(Equal("ClusterIssuer")) - Expect(out.Group).To(Equal("cert-manager.io")) + Expect(out.Kind).To(Equal(certManagerClusterIssuerKind)) + Expect(out.Group).To(Equal(certManagerGroup)) }) It("defaults kind to Issuer and group to cert-manager.io when empty", func() { - ref := bindplanev1alpha1.CertManagerTLSIssuerRef{Name: "ca-issuer"} + ref := bindplanev1alpha1.CertManagerTLSIssuerRef{Name: testCAIssuerName} out := issuerRefToCM(ref) - Expect(out.Name).To(Equal("ca-issuer")) - Expect(out.Kind).To(Equal("Issuer")) - Expect(out.Group).To(Equal("cert-manager.io")) + Expect(out.Name).To(Equal(testCAIssuerName)) + Expect(out.Kind).To(Equal(certManagerIssuerKind)) + Expect(out.Group).To(Equal(certManagerGroup)) }) }) @@ -385,7 +385,7 @@ var _ = Describe("buildCertificate", func() { }) It("builds server certificate with DNS names and server auth usage", func() { - issuerRef := cmmeta.IssuerReference{Name: "ca", Kind: "Issuer", Group: "cert-manager.io"} + issuerRef := cmmeta.IssuerReference{Name: "ca", Kind: certManagerIssuerKind, Group: certManagerGroup} dnsNames := []string{"prom.ns.svc.cluster.local"} cert := buildCertificate(bindplane, "bp-prom-server", "bp-prom-server", issuerRef, dnsNames, nil, nil) Expect(cert.Name).To(Equal("bp-prom-server")) @@ -400,7 +400,7 @@ var _ = Describe("buildCertificate", func() { }) It("builds client certificate with commonName and client auth usage", func() { - issuerRef := cmmeta.IssuerReference{Name: "ca", Kind: "ClusterIssuer", Group: "cert-manager.io"} + issuerRef := cmmeta.IssuerReference{Name: "ca", Kind: certManagerClusterIssuerKind, Group: certManagerGroup} cn := "bindplane-tsdb-remote-write-client" cert := buildCertificate(bindplane, "bp-prom-client", "bp-prom-client", issuerRef, nil, nil, &cn) Expect(cert.Spec.CommonName).To(Equal(cn)) @@ -414,7 +414,7 @@ var _ = Describe("buildTransformAgentCertificate", func() { bindplane := &bindplanev1alpha1.Bindplane{ ObjectMeta: metav1.ObjectMeta{Name: "bp", Namespace: "ns"}, } - issuerRef := cmmeta.IssuerReference{Name: "ca", Kind: "Issuer", Group: "cert-manager.io"} + issuerRef := cmmeta.IssuerReference{Name: "ca", Kind: certManagerIssuerKind, Group: certManagerGroup} dnsNames := []string{"bp-transform-agent", "bp-transform-agent.ns.svc.cluster.local"} cert := buildTransformAgentCertificate(bindplane, "bp-transform-agent-tls", "bp-transform-agent-tls", issuerRef, dnsNames) diff --git a/internal/controller/config_env.go b/internal/controller/config_env.go index e346e27..0305684 100644 --- a/internal/controller/config_env.go +++ b/internal/controller/config_env.go @@ -82,7 +82,7 @@ func getLDAPEnvVars(ldap *bindplanev1alpha1.LDAPConfig) []corev1.EnvVar { } } if ldap.TLSSkipVerify { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneLDAPTLSSkipVerifyEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneLDAPTLSSkipVerifyEnvVar, Value: envValueTrue}) } return envVars } @@ -107,7 +107,7 @@ func getOIDCEnvVars(oidc *bindplanev1alpha1.OIDCConfig) []corev1.EnvVar { envVars = append(envVars, corev1.EnvVar{Name: bindplaneOIDCScopesEnvVar, Value: strings.Join(oidc.Scopes, ",")}) } if oidc.DisableInvitations { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneOIDCDisableInvitationsEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneOIDCDisableInvitationsEnvVar, Value: envValueTrue}) } envVars = append(envVars, getOIDCCustomClaimsEnvVars(oidc.CustomClaims)...) return envVars @@ -155,7 +155,7 @@ func getAuthConfigEnvVars(auth *bindplanev1alpha1.AuthConfig) []corev1.EnvVar { envVars = append(envVars, corev1.EnvVar{Name: bindplaneAuthTypeEnvVar, Value: auth.Type}) } if auth.SessionsStrictMode { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneAuthSessionsStrictModeEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneAuthSessionsStrictModeEnvVar, Value: envValueTrue}) } if ev := secretOrValue(bindplaneUsernameEnvVar, auth.Username, auth.UsernameSecretRef); ev != nil { envVars = append(envVars, *ev) @@ -201,7 +201,7 @@ func getNetworkConfigEnvVars(network *bindplanev1alpha1.NetworkConfig, bindplane } } if tls.SkipVerify { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneTLSSkipVerifyEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneTLSSkipVerifyEnvVar, Value: envValueTrue}) } } } @@ -302,12 +302,12 @@ func getTracingConfigEnvVars(tracing *bindplanev1alpha1.TracingConfig) []corev1. envVars := []corev1.EnvVar{ {Name: bindplaneTracingTypeEnvVar, Value: tracing.Type}, } - if tracing.Type == "otlp" && tracing.OTLP != nil { + if tracing.Type == telemetryTypeOTLP && tracing.OTLP != nil { if tracing.OTLP.Endpoint != "" { envVars = append(envVars, corev1.EnvVar{Name: bindplaneTracingOTLPEndpointEnvVar, Value: tracing.OTLP.Endpoint}) } if tracing.OTLP.Insecure { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneTracingOTLPInsecureEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneTracingOTLPInsecureEnvVar, Value: envValueTrue}) } } if tracing.SamplingRate != "" { @@ -320,14 +320,14 @@ func getTracingConfigEnvVars(tracing *bindplanev1alpha1.TracingConfig) []corev1. func getMetricsConfigEnvVars(metrics *bindplanev1alpha1.MetricsConfig) []corev1.EnvVar { if metrics == nil { return []corev1.EnvVar{ - {Name: bindplaneMetricsTypeEnvVar, Value: "prometheus"}, + {Name: bindplaneMetricsTypeEnvVar, Value: metricsTypePrometheus}, {Name: bindplaneMetricsIntervalEnvVar, Value: "60s"}, {Name: bindplaneMetricsPrometheusEndpointEnvVar, Value: "/metrics"}, } } metricsType := metrics.Type if metricsType == "" { - metricsType = "prometheus" + metricsType = metricsTypePrometheus } interval := metrics.Interval if interval == "" { @@ -337,7 +337,7 @@ func getMetricsConfigEnvVars(metrics *bindplanev1alpha1.MetricsConfig) []corev1. {Name: bindplaneMetricsTypeEnvVar, Value: metricsType}, {Name: bindplaneMetricsIntervalEnvVar, Value: interval}, } - if metricsType == "prometheus" { + if metricsType == metricsTypePrometheus { endpoint := "/metrics" if metrics.Prometheus != nil && metrics.Prometheus.Endpoint != "" { endpoint = metrics.Prometheus.Endpoint @@ -352,12 +352,12 @@ func getMetricsConfigEnvVars(metrics *bindplanev1alpha1.MetricsConfig) []corev1. } } } - if metricsType == "otlp" && metrics.OTLP != nil { + if metricsType == telemetryTypeOTLP && metrics.OTLP != nil { if metrics.OTLP.Endpoint != "" { envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPEndpointEnvVar, Value: metrics.OTLP.Endpoint}) } if metrics.OTLP.Insecure { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPInsecureEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPInsecureEnvVar, Value: envValueTrue}) } if metrics.OTLP.Temporality != "" { envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPTemporalityEnvVar, Value: metrics.OTLP.Temporality}) @@ -375,7 +375,7 @@ func getMetricsOTLPKeepAliveEnvVars(keepAlive *bindplanev1alpha1.MetricsOTLPKeep } var envVars []corev1.EnvVar if keepAlive.Enabled { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPKeepAliveEnabledEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPKeepAliveEnabledEnvVar, Value: envValueTrue}) } if keepAlive.Time != "" { envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPKeepAliveTimeEnvVar, Value: keepAlive.Time}) @@ -384,7 +384,7 @@ func getMetricsOTLPKeepAliveEnvVars(keepAlive *bindplanev1alpha1.MetricsOTLPKeep envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPKeepAliveTimeoutEnvVar, Value: keepAlive.Timeout}) } if keepAlive.PermitWithoutStream { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPKeepAlivePermitWithoutStreamEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneMetricsOTLPKeepAlivePermitWithoutStreamEnvVar, Value: envValueTrue}) } return envVars } @@ -538,15 +538,15 @@ func getTSDBRemoteWriteTLSEnvVars(bindplane *bindplanev1alpha1.Bindplane) []core return nil } // Cert-manager uses tls.crt, tls.key, ca.crt; user secret is mounted with Items to same names - const certKey, keyKey, caKey = "tls.crt", "tls.key", "ca.crt" + const certKey, keyKey, caKey = tlsSecretCertKey, tlsSecretKeyKey, tlsSecretCAKey envVars := []corev1.EnvVar{ - {Name: bindplaneTSDBEnableTLSEnvVar, Value: "true"}, + {Name: bindplaneTSDBEnableTLSEnvVar, Value: envValueTrue}, {Name: bindplaneTSDBTLSCertEnvVar, Value: internalTLSTSDBClientMountPath + "/" + certKey}, {Name: bindplaneTSDBTLSKeyEnvVar, Value: internalTLSTSDBClientMountPath + "/" + keyKey}, {Name: bindplaneTSDBTLSCAEnvVar, Value: internalTLSTSDBClientMountPath + "/" + caKey}, } if bindplane.Spec.Config.TSDB.TLS.SkipVerify { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneTSDBTLSSkipVerifyEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneTSDBTLSSkipVerifyEnvVar, Value: envValueTrue}) } return envVars } @@ -557,15 +557,15 @@ func getNatsTLSEnvVars(bindplane *bindplanev1alpha1.Bindplane) []corev1.EnvVar { if !isNatsCertManagerTLSEnabled(bindplane) { return nil } - const certKey, keyKey, caKey = "tls.crt", "tls.key", "ca.crt" + const certKey, keyKey, caKey = tlsSecretCertKey, tlsSecretKeyKey, tlsSecretCAKey envVars := []corev1.EnvVar{ - {Name: bindplaneNatsEnableTLSEnvVar, Value: "true"}, + {Name: bindplaneNatsEnableTLSEnvVar, Value: envValueTrue}, {Name: bindplaneNatsTLSCertEnvVar, Value: internalTLSNatsMountPath + "/" + certKey}, {Name: bindplaneNatsTLSKeyEnvVar, Value: internalTLSNatsMountPath + "/" + keyKey}, {Name: bindplaneNatsTLSCAEnvVar, Value: internalTLSNatsMountPath + "/" + caKey}, } if bindplane.Spec.Config.Nats != nil && bindplane.Spec.Config.Nats.TLS != nil && bindplane.Spec.Config.Nats.TLS.SkipVerify { - envVars = append(envVars, corev1.EnvVar{Name: bindplaneNatsTLSSkipVerifyEnvVar, Value: "true"}) + envVars = append(envVars, corev1.EnvVar{Name: bindplaneNatsTLSSkipVerifyEnvVar, Value: envValueTrue}) } return envVars } @@ -576,7 +576,7 @@ func getTransformAgentTLSEnvVars(bindplane *bindplanev1alpha1.Bindplane) []corev if !isTransformAgentCertManagerTLSEnabled(bindplane) { return nil } - const certKey, keyKey, caKey = "tls.crt", "tls.key", "ca.crt" + const certKey, keyKey, caKey = tlsSecretCertKey, tlsSecretKeyKey, tlsSecretCAKey return []corev1.EnvVar{ {Name: bindplaneTransformAgentTLSCertEnvVar, Value: internalTLSTransformAgentMountPath + "/" + certKey}, {Name: bindplaneTransformAgentTLSKeyEnvVar, Value: internalTLSTransformAgentMountPath + "/" + keyKey}, diff --git a/internal/controller/config_env_test.go b/internal/controller/config_env_test.go index c6160e5..972cd07 100644 --- a/internal/controller/config_env_test.go +++ b/internal/controller/config_env_test.go @@ -51,7 +51,7 @@ func requireNoEnvVar(t *testing.T, envVars []corev1.EnvVar, name string) { func TestGetOIDCEnvVars_DisableInvitations(t *testing.T) { oidc := &bindplanev1alpha1.OIDCConfig{DisableInvitations: true} envVars := getOIDCEnvVars(oidc) - requireEnvVar(t, envVars, bindplaneOIDCDisableInvitationsEnvVar, "true") + requireEnvVar(t, envVars, bindplaneOIDCDisableInvitationsEnvVar, envValueTrue) } func TestGetOIDCEnvVars_DisableInvitationsFalse(t *testing.T) { @@ -77,7 +77,7 @@ func TestGetOIDCCustomClaimsEnvVars_EmptyEmitsNothing(t *testing.T) { func TestGetOIDCCustomClaimsEnvVars_AllFields(t *testing.T) { customClaims := &bindplanev1alpha1.OIDCCustomClaimsConfig{ - Groups: "my_groups", + Groups: testGroupsClaim, GroupIDs: "my_group_ids", Roles: "my_roles", OrganizationAdmin: "my_org_admin", @@ -91,7 +91,7 @@ func TestGetOIDCCustomClaimsEnvVars_AllFields(t *testing.T) { } envVars := getOIDCCustomClaimsEnvVars(customClaims) - requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsGroupsEnvVar, "my_groups") + requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsGroupsEnvVar, testGroupsClaim) requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsGroupIDsEnvVar, "my_group_ids") requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsRolesEnvVar, "my_roles") requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsOrganizationAdminEnvVar, "my_org_admin") @@ -110,12 +110,12 @@ func TestGetOIDCCustomClaimsEnvVars_AllFields(t *testing.T) { func TestGetOIDCCustomClaimsEnvVars_PartialOmitsUnset(t *testing.T) { customClaims := &bindplanev1alpha1.OIDCCustomClaimsConfig{ - Groups: "my_groups", + Groups: testGroupsClaim, OrgAdminGroupName: "acme-org-admin", } envVars := getOIDCCustomClaimsEnvVars(customClaims) - requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsGroupsEnvVar, "my_groups") + requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsGroupsEnvVar, testGroupsClaim) requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsOrgAdminGroupNameEnvVar, "acme-org-admin") requireNoEnvVar(t, envVars, bindplaneOIDCCustomClaimsGroupIDsEnvVar) requireNoEnvVar(t, envVars, bindplaneOIDCCustomClaimsRolesEnvVar) @@ -134,13 +134,13 @@ func TestGetOIDCEnvVars_CustomClaimsPlumbedThrough(t *testing.T) { oidc := &bindplanev1alpha1.OIDCConfig{ Issuer: "https://accounts.example.com", CustomClaims: &bindplanev1alpha1.OIDCCustomClaimsConfig{ - Groups: "my_groups", + Groups: testGroupsClaim, ViewerGroupName: "acme-viewer", }, } envVars := getOIDCEnvVars(oidc) requireEnvVar(t, envVars, bindplaneOIDCIssuerEnvVar, "https://accounts.example.com") - requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsGroupsEnvVar, "my_groups") + requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsGroupsEnvVar, testGroupsClaim) requireEnvVar(t, envVars, bindplaneOIDCCustomClaimsViewerGroupNameEnvVar, "acme-viewer") } @@ -160,8 +160,8 @@ func TestGetNatsTLSEnvVars_SkipVerifyEmittedWhenSet(t *testing.T) { Nats: &bindplanev1alpha1.NatsConfig{ TLS: &bindplanev1alpha1.NatsTLSConfig{ CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{ - Name: "my-issuer", - Kind: "ClusterIssuer", + Name: testIssuerName, + Kind: certManagerClusterIssuerKind, }, SkipVerify: true, }, @@ -170,7 +170,7 @@ func TestGetNatsTLSEnvVars_SkipVerifyEmittedWhenSet(t *testing.T) { }, } envVars := getNatsTLSEnvVars(bindplane) - requireEnvVar(t, envVars, bindplaneNatsTLSSkipVerifyEnvVar, "true") + requireEnvVar(t, envVars, bindplaneNatsTLSSkipVerifyEnvVar, envValueTrue) } func TestGetNatsTLSEnvVars_SkipVerifyFalseOmitted(t *testing.T) { @@ -180,8 +180,8 @@ func TestGetNatsTLSEnvVars_SkipVerifyFalseOmitted(t *testing.T) { Nats: &bindplanev1alpha1.NatsConfig{ TLS: &bindplanev1alpha1.NatsTLSConfig{ CertManager: &bindplanev1alpha1.CertManagerTLSIssuerRef{ - Name: "my-issuer", - Kind: "ClusterIssuer", + Name: testIssuerName, + Kind: certManagerClusterIssuerKind, }, SkipVerify: false, }, diff --git a/internal/controller/constants_test.go b/internal/controller/constants_test.go new file mode 100644 index 0000000..e82bb64 --- /dev/null +++ b/internal/controller/constants_test.go @@ -0,0 +1,44 @@ +/* +Copyright 2025. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package controller + +// Shared literal values used across controller tests. +const ( + testNamespaceDefault = "default" + testValue = "test" + testValueTrueTitle = "True" + testValueFalse = "false" + testUserLabel = "user-label" + testUserValue = "user-value" + testBindplaneName = "test-bp" + testMyBindplaneName = "my-bp" + testLicense = "license" + testTLSSecretName = "tls-secret" + testPostgresTLSSecretName = "pg-tls" + testIssuerName = "my-issuer" + testNatsIssuerName = "nats-issuer" + testTAIssuerName = "ta-issuer" + testCAIssuerName = "ca-issuer" + testVMHost = "vm.example.internal" + testGroupsClaim = "my_groups" + testOpVar = "OP_VAR" + testHTTPProxyEnv = "HTTP_PROXY" + testNoProxyEnv = "NO_PROXY" + testRedisCAName = "redis-ca" + testUserVolumeName = "user-vol" + testOpMountPath = "/op" +) diff --git a/internal/controller/extra_env_test.go b/internal/controller/extra_env_test.go index 05763e8..38448b5 100644 --- a/internal/controller/extra_env_test.go +++ b/internal/controller/extra_env_test.go @@ -23,25 +23,25 @@ import ( ) func TestPrependExtraEnv_NilExtraEnv(t *testing.T) { - op := []corev1.EnvVar{{Name: "OP_VAR", Value: "op"}} + op := []corev1.EnvVar{{Name: testOpVar, Value: "op"}} result := prependExtraEnv(nil, op) - if len(result) != 1 || result[0].Name != "OP_VAR" { + if len(result) != 1 || result[0].Name != testOpVar { t.Errorf("unexpected result: %v", result) } } func TestPrependExtraEnv_EmptyExtraEnv(t *testing.T) { - op := []corev1.EnvVar{{Name: "OP_VAR", Value: "op"}} + op := []corev1.EnvVar{{Name: testOpVar, Value: "op"}} result := prependExtraEnv([]corev1.EnvVar{}, op) - if len(result) != 1 || result[0].Name != "OP_VAR" { + if len(result) != 1 || result[0].Name != testOpVar { t.Errorf("unexpected result: %v", result) } } func TestPrependExtraEnv_UserVarsFirst(t *testing.T) { user := []corev1.EnvVar{ - {Name: "HTTP_PROXY", Value: "http://proxy:3128"}, - {Name: "NO_PROXY", Value: "localhost"}, + {Name: testHTTPProxyEnv, Value: "http://proxy:3128"}, + {Name: testNoProxyEnv, Value: "localhost"}, } op1 := []corev1.EnvVar{{Name: "KUBERNETES_NAMESPACE_NAME", Value: "ns"}} op2 := []corev1.EnvVar{{Name: "BINDPLANE_MODE", Value: "node"}} @@ -51,10 +51,10 @@ func TestPrependExtraEnv_UserVarsFirst(t *testing.T) { if len(result) != 4 { t.Fatalf("expected 4 vars, got %d", len(result)) } - if result[0].Name != "HTTP_PROXY" { + if result[0].Name != testHTTPProxyEnv { t.Errorf("expected HTTP_PROXY first, got %s", result[0].Name) } - if result[1].Name != "NO_PROXY" { + if result[1].Name != testNoProxyEnv { t.Errorf("expected NO_PROXY second, got %s", result[1].Name) } if result[2].Name != "KUBERNETES_NAMESPACE_NAME" { @@ -68,7 +68,7 @@ func TestPrependExtraEnv_UserVarsFirst(t *testing.T) { func TestPrependExtraEnv_OperatorWinsOnDuplicate(t *testing.T) { // If the user sets a name that the operator also sets, the operator's value // (appended last) takes precedence — Kubernetes uses the last entry. - user := []corev1.EnvVar{{Name: "SOME_VAR", Value: "user-value"}} + user := []corev1.EnvVar{{Name: "SOME_VAR", Value: testUserValue}} op := []corev1.EnvVar{{Name: "SOME_VAR", Value: "operator-value"}} result := prependExtraEnv(user, op) diff --git a/internal/controller/extra_volumes_test.go b/internal/controller/extra_volumes_test.go index 695ca1f..76d7953 100644 --- a/internal/controller/extra_volumes_test.go +++ b/internal/controller/extra_volumes_test.go @@ -47,7 +47,7 @@ func TestAppendExtraVolumes_EmptyExtra(t *testing.T) { func TestAppendExtraVolumes_OperatorFirst(t *testing.T) { op := []corev1.Volume{{Name: testOpVolName}} - extra := []corev1.Volume{{Name: "user-vol"}} + extra := []corev1.Volume{{Name: testUserVolumeName}} result := appendExtraVolumes(op, extra) if len(result) != 2 { t.Fatalf("expected 2 volumes, got %d", len(result)) @@ -55,15 +55,15 @@ func TestAppendExtraVolumes_OperatorFirst(t *testing.T) { if result[0].Name != testOpVolName { t.Errorf("expected %s first, got %s", testOpVolName, result[0].Name) } - if result[1].Name != "user-vol" { + if result[1].Name != testUserVolumeName { t.Errorf("expected user-vol second, got %s", result[1].Name) } } func TestAppendExtraVolumes_NilOperator(t *testing.T) { - extra := []corev1.Volume{{Name: "user-vol"}} + extra := []corev1.Volume{{Name: testUserVolumeName}} result := appendExtraVolumes(nil, extra) - if len(result) != 1 || result[0].Name != "user-vol" { + if len(result) != 1 || result[0].Name != testUserVolumeName { t.Errorf("unexpected result: %v", result) } } @@ -71,29 +71,29 @@ func TestAppendExtraVolumes_NilOperator(t *testing.T) { // --- appendExtraVolumeMounts --- func TestAppendExtraVolumeMounts_NilExtra(t *testing.T) { - op := []corev1.VolumeMount{{Name: "op-vol", MountPath: "/op"}} + op := []corev1.VolumeMount{{Name: testOpVolName, MountPath: testOpMountPath}} result := appendExtraVolumeMounts(op, nil) - if len(result) != 1 || result[0].Name != "op-vol" { + if len(result) != 1 || result[0].Name != testOpVolName { t.Errorf("unexpected result: %v", result) } } func TestAppendExtraVolumeMounts_EmptyExtra(t *testing.T) { - op := []corev1.VolumeMount{{Name: "op-vol", MountPath: "/op"}} + op := []corev1.VolumeMount{{Name: testOpVolName, MountPath: testOpMountPath}} result := appendExtraVolumeMounts(op, []corev1.VolumeMount{}) - if len(result) != 1 || result[0].Name != "op-vol" { + if len(result) != 1 || result[0].Name != testOpVolName { t.Errorf("unexpected result: %v", result) } } func TestAppendExtraVolumeMounts_OperatorFirst(t *testing.T) { - op := []corev1.VolumeMount{{Name: "op-vol", MountPath: "/op"}} - extra := []corev1.VolumeMount{{Name: "user-vol", MountPath: "/user"}} + op := []corev1.VolumeMount{{Name: testOpVolName, MountPath: testOpMountPath}} + extra := []corev1.VolumeMount{{Name: testUserVolumeName, MountPath: "/user"}} result := appendExtraVolumeMounts(op, extra) if len(result) != 2 { t.Fatalf("expected 2 mounts, got %d", len(result)) } - if result[0].MountPath != "/op" { + if result[0].MountPath != testOpMountPath { t.Errorf("expected /op first, got %s", result[0].MountPath) } if result[1].MountPath != "/user" { @@ -108,7 +108,7 @@ func newMinimalBindplane() *bindplanev1alpha1.Bindplane { natsReplicas := int32(2) taReplicas := int32(2) return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testValue, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Version: "1.99.0", Config: bindplanev1alpha1.BindplaneConfigSpec{ @@ -191,18 +191,18 @@ func TestNodeDeployment_ExtraVolumesInjected(t *testing.T) { bp := newMinimalBindplane() bp.Spec.Bindplane.ExtraVolumes = []corev1.Volume{ { - Name: "redis-ca", + Name: testRedisCAName, VolumeSource: corev1.VolumeSource{Secret: &corev1.SecretVolumeSource{SecretName: "redis-ca-secret"}}, }, } bp.Spec.Bindplane.ExtraVolumeMounts = []corev1.VolumeMount{ - {Name: "redis-ca", MountPath: "/etc/redis-ca"}, + {Name: testRedisCAName, MountPath: "/etc/redis-ca"}, } r := &BindplaneReconciler{} dep := r.nodeDeployment(bp) - assertVolumePresent(t, dep.Spec.Template.Spec.Volumes, "redis-ca") + assertVolumePresent(t, dep.Spec.Template.Spec.Volumes, testRedisCAName) assertMountPresent(t, dep.Spec.Template.Spec.Containers[0].VolumeMounts, "/etc/redis-ca") } @@ -210,17 +210,17 @@ func TestJobsDeployment_ExtraVolumesInjected(t *testing.T) { bp := newMinimalBindplane() bp.Spec.BindplaneJobs = &bindplanev1alpha1.BindplaneJobsComponentSpec{ ExtraVolumes: []corev1.Volume{ - {Name: "redis-ca", VolumeSource: corev1.VolumeSource{Secret: &corev1.SecretVolumeSource{SecretName: "redis-ca-secret"}}}, + {Name: testRedisCAName, VolumeSource: corev1.VolumeSource{Secret: &corev1.SecretVolumeSource{SecretName: "redis-ca-secret"}}}, }, ExtraVolumeMounts: []corev1.VolumeMount{ - {Name: "redis-ca", MountPath: "/etc/redis-ca"}, + {Name: testRedisCAName, MountPath: "/etc/redis-ca"}, }, } r := &BindplaneReconciler{} dep := r.bindplaneJobsDeployment(bp) - assertVolumePresent(t, dep.Spec.Template.Spec.Volumes, "redis-ca") + assertVolumePresent(t, dep.Spec.Template.Spec.Volumes, testRedisCAName) assertMountPresent(t, dep.Spec.Template.Spec.Containers[0].VolumeMounts, "/etc/redis-ca") } diff --git a/internal/controller/image_override_test.go b/internal/controller/image_override_test.go index f491572..3b5cd23 100644 --- a/internal/controller/image_override_test.go +++ b/internal/controller/image_override_test.go @@ -29,7 +29,7 @@ const customImage = "myregistry.example.com/bindplane-ee:custom-tag" func newImageTestBindplane() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "test", Namespace: "default"}, + ObjectMeta: metav1.ObjectMeta{Name: testValue, Namespace: testNamespaceDefault}, Spec: bindplanev1alpha1.BindplaneSpec{ Version: testVersion, }, @@ -151,13 +151,13 @@ func TestGetTSDBImage_UsesOverride(t *testing.T) { } func TestResolveImage_EmptyOverrideFallsBack(t *testing.T) { - if got := resolveImage("", "default"); got != "default" { - t.Errorf("resolveImage(\"\", \"default\") = %q, want %q", got, "default") + if got := resolveImage("", testNamespaceDefault); got != testNamespaceDefault { + t.Errorf("resolveImage(\"\", \"default\") = %q, want %q", got, testNamespaceDefault) } } func TestResolveImage_NonEmptyOverrideWins(t *testing.T) { - if got := resolveImage("override", "default"); got != "override" { + if got := resolveImage("override", testNamespaceDefault); got != "override" { t.Errorf("resolveImage(\"override\", \"default\") = %q, want %q", got, "override") } } diff --git a/internal/controller/jobs.go b/internal/controller/jobs.go index cf8dee6..b9e7d6e 100644 --- a/internal/controller/jobs.go +++ b/internal/controller/jobs.go @@ -467,7 +467,7 @@ func (r *BindplaneReconciler) deleteJobWithPods(ctx context.Context, job *batchv // setMigrateFailureCondition records a MigrationFailed condition on the Bindplane CR. func setMigrateFailureCondition(bindplane *bindplanev1alpha1.Bindplane) { meta.SetStatusCondition(&bindplane.Status.Conditions, metav1.Condition{ - Type: "Reconciled", + Type: conditionTypeReconciled, Status: metav1.ConditionFalse, Reason: "MigrationFailed", Message: "Jobs Migrate Job failed; downstream workloads are blocked until migration succeeds", diff --git a/internal/controller/node_autoscaling_test.go b/internal/controller/node_autoscaling_test.go index 0836129..e12613a 100644 --- a/internal/controller/node_autoscaling_test.go +++ b/internal/controller/node_autoscaling_test.go @@ -27,7 +27,7 @@ var _ = Describe("nodeHPAScaleTargetRef", func() { var bindplane *bindplanev1alpha1.Bindplane BeforeEach(func() { - bindplane = newTestBindplane("my-bp", "default") + bindplane = newTestBindplane(testMyBindplaneName, testNamespaceDefault) bindplane.Spec.Bindplane.Autoscaling = &bindplanev1alpha1.NodeAutoscalingSpec{Enabled: true} }) @@ -62,7 +62,7 @@ var _ = Describe("nodeHPA with ArgoRollout", func() { BeforeEach(func() { r = newReconciler() - bindplane = newTestBindplane("my-bp", "default") + bindplane = newTestBindplane(testMyBindplaneName, testNamespaceDefault) bindplane.Spec.Bindplane.Autoscaling = &bindplanev1alpha1.NodeAutoscalingSpec{Enabled: true} }) diff --git a/internal/controller/node_rollout_test.go b/internal/controller/node_rollout_test.go index a72fc13..f01ff10 100644 --- a/internal/controller/node_rollout_test.go +++ b/internal/controller/node_rollout_test.go @@ -39,13 +39,13 @@ var _ = Describe("nodeRollout", func() { BeforeEach(func() { r = newReconciler() - bindplane = newTestBindplaneWithArgoRollout("my-bp", "default") + bindplane = newTestBindplaneWithArgoRollout(testMyBindplaneName, testNamespaceDefault) }) It("uses node component name and labels", func() { rollout := r.nodeRollout(bindplane) Expect(rollout.Name).To(Equal("my-bp-node")) - Expect(rollout.Namespace).To(Equal("default")) + Expect(rollout.Namespace).To(Equal(testNamespaceDefault)) Expect(rollout.Labels[labelKeyComponent]).To(Equal(nodeComponent)) }) @@ -106,7 +106,7 @@ var _ = Describe("nodeRollout", func() { rollout := r.nodeRollout(bindplane) Expect(rollout.Spec.Selector).NotTo(BeNil()) Expect(rollout.Spec.Selector.MatchLabels[labelKeyComponent]).To(Equal(nodeComponent)) - Expect(rollout.Spec.Selector.MatchLabels[labelKeyInstance]).To(Equal("my-bp")) + Expect(rollout.Spec.Selector.MatchLabels[labelKeyInstance]).To(Equal(testMyBindplaneName)) }) It("applies default minReadySeconds from termination grace period", func() { diff --git a/internal/controller/opamp_test.go b/internal/controller/opamp_test.go index 3d514e6..6000124 100644 --- a/internal/controller/opamp_test.go +++ b/internal/controller/opamp_test.go @@ -65,13 +65,13 @@ var _ = Describe("opampDeployment", func() { BeforeEach(func() { r = newReconciler() - bindplane = newTestBindplaneWithOpAMP("my-bp", "default") + bindplane = newTestBindplaneWithOpAMP(testMyBindplaneName, testNamespaceDefault) }) It("uses opamp component name and labels", func() { dep := r.opampDeployment(bindplane) Expect(dep.Name).To(Equal("my-bp-opamp")) - Expect(dep.Namespace).To(Equal("default")) + Expect(dep.Namespace).To(Equal(testNamespaceDefault)) Expect(dep.Labels[labelKeyComponent]).To(Equal(opampComponent)) }) @@ -152,7 +152,7 @@ var _ = Describe("getOpAMPOverrideEnvVars", func() { var bindplane *bindplanev1alpha1.Bindplane BeforeEach(func() { - bindplane = newTestBindplaneWithOpAMP("my-bp", "default") + bindplane = newTestBindplaneWithOpAMP(testMyBindplaneName, testNamespaceDefault) }) It("returns empty slice when no overrides configured", func() { @@ -200,21 +200,21 @@ var _ = Describe("opampDeployment env ordering", func() { BeforeEach(func() { r = newReconciler() - bindplane = newTestBindplaneWithOpAMP("my-bp", "default") + bindplane = newTestBindplaneWithOpAMP(testMyBindplaneName, testNamespaceDefault) }) It("prepends spec.opamp.extraEnv before operator-managed env vars", func() { bindplane.Spec.OpAMP.ExtraEnv = []corev1.EnvVar{ - {Name: "HTTP_PROXY", Value: "http://proxy.example.com:3128"}, - {Name: "NO_PROXY", Value: "localhost"}, + {Name: testHTTPProxyEnv, Value: "http://proxy.example.com:3128"}, + {Name: testNoProxyEnv, Value: "localhost"}, } dep := r.opampDeployment(bindplane) envVars := dep.Spec.Template.Spec.Containers[0].Env - Expect(envVars[0].Name).To(Equal("HTTP_PROXY")) + Expect(envVars[0].Name).To(Equal(testHTTPProxyEnv)) Expect(envVars[0].Value).To(Equal("http://proxy.example.com:3128")) - Expect(envVars[1].Name).To(Equal("NO_PROXY")) + Expect(envVars[1].Name).To(Equal(testNoProxyEnv)) }) It("operator-managed env vars win when spec.opamp.extraEnv duplicates a name", func() { @@ -269,13 +269,13 @@ var _ = Describe("opampService", func() { BeforeEach(func() { r = newReconciler() - bindplane = newTestBindplaneWithOpAMP("my-bp", "default") + bindplane = newTestBindplaneWithOpAMP(testMyBindplaneName, testNamespaceDefault) }) It("uses opamp component name", func() { svc := r.opampService(bindplane) Expect(svc.Name).To(Equal("my-bp-opamp")) - Expect(svc.Namespace).To(Equal("default")) + Expect(svc.Namespace).To(Equal(testNamespaceDefault)) }) It("selector labels use opamp component", func() { diff --git a/internal/controller/pdb_test.go b/internal/controller/pdb_test.go index 8406940..d33e99d 100644 --- a/internal/controller/pdb_test.go +++ b/internal/controller/pdb_test.go @@ -39,7 +39,7 @@ var _ = Describe("newPodDisruptionBudget", func() { var bindplane *bindplanev1alpha1.Bindplane BeforeEach(func() { - bindplane = newTestBindplane("my-bp", "default") + bindplane = newTestBindplane(testMyBindplaneName, testNamespaceDefault) }) It("defaults to minAvailable: 1 when spec is nil", func() { diff --git a/internal/controller/prometheus.go b/internal/controller/prometheus.go index b6f79d5..c52c78b 100644 --- a/internal/controller/prometheus.go +++ b/internal/controller/prometheus.go @@ -165,7 +165,7 @@ func getTSDBProbeServerName(bindplane *bindplanev1alpha1.Bindplane) string { if len(names) > 0 { return names[0] // e.g. my-bp-prometheus.default.svc.cluster.local } - return "localhost" + return hostLocalhost } // isTSDBServerProbeTLSWithCA returns true when the server TLS secret has a CA file (for probe to verify server cert). @@ -601,8 +601,8 @@ func getTSDBVolumes(bindplane *bindplanev1alpha1.Bindplane) []corev1.Volume { Secret: &corev1.SecretVolumeSource{ SecretName: getResourceName(bindplane, tsdbBasicAuthSecretSuffix), Items: []corev1.KeyToPath{ - {Key: tsdbBasicAuthSecretKeyUser, Path: "username"}, - {Key: tsdbBasicAuthSecretKeyPass, Path: "password"}, + {Key: tsdbBasicAuthSecretKeyUser, Path: tsdbBasicAuthSecretKeyUser}, + {Key: tsdbBasicAuthSecretKeyPass, Path: tsdbBasicAuthSecretKeyPass}, }, }, }, @@ -636,8 +636,8 @@ func getTSDBVolumes(bindplane *bindplanev1alpha1.Bindplane) []corev1.Volume { Secret: &corev1.SecretVolumeSource{ SecretName: getResourceName(bindplane, tsdbBasicAuthSecretSuffix), Items: []corev1.KeyToPath{ - {Key: tsdbBasicAuthSecretKeyUser, Path: "username"}, - {Key: tsdbBasicAuthSecretKeyPass, Path: "password"}, + {Key: tsdbBasicAuthSecretKeyUser, Path: tsdbBasicAuthSecretKeyUser}, + {Key: tsdbBasicAuthSecretKeyPass, Path: tsdbBasicAuthSecretKeyPass}, }, }, }, @@ -647,17 +647,17 @@ func getTSDBVolumes(bindplane *bindplanev1alpha1.Bindplane) []corev1.Volume { // User-defined secret; map keys to tls.crt, tls.key; optionally ca.crt when CAKey set (mTLS). certKey, keyKey := tls.CertKey, tls.KeyKey if certKey == "" { - certKey = "tls.crt" + certKey = tlsSecretCertKey } if keyKey == "" { - keyKey = "tls.key" + keyKey = tlsSecretKeyKey } items := []corev1.KeyToPath{ - {Key: certKey, Path: "tls.crt"}, - {Key: keyKey, Path: "tls.key"}, + {Key: certKey, Path: tlsSecretCertKey}, + {Key: keyKey, Path: tlsSecretKeyKey}, } if tls.CAKey != "" { - items = append(items, corev1.KeyToPath{Key: tls.CAKey, Path: "ca.crt"}) + items = append(items, corev1.KeyToPath{Key: tls.CAKey, Path: tlsSecretCAKey}) } secretVols = []corev1.Volume{ { @@ -675,8 +675,8 @@ func getTSDBVolumes(bindplane *bindplanev1alpha1.Bindplane) []corev1.Volume { Secret: &corev1.SecretVolumeSource{ SecretName: getResourceName(bindplane, tsdbBasicAuthSecretSuffix), Items: []corev1.KeyToPath{ - {Key: tsdbBasicAuthSecretKeyUser, Path: "username"}, - {Key: tsdbBasicAuthSecretKeyPass, Path: "password"}, + {Key: tsdbBasicAuthSecretKeyUser, Path: tsdbBasicAuthSecretKeyUser}, + {Key: tsdbBasicAuthSecretKeyPass, Path: tsdbBasicAuthSecretKeyPass}, }, }, }, diff --git a/internal/controller/skip_seed_test.go b/internal/controller/skip_seed_test.go index 056bb22..9fbbecb 100644 --- a/internal/controller/skip_seed_test.go +++ b/internal/controller/skip_seed_test.go @@ -30,7 +30,7 @@ var _ = Describe("skip seed", func() { var r *BindplaneReconciler newBindplane := func() *bindplanev1alpha1.Bindplane { - bp := newTestBindplane("my-bp", "default") + bp := newTestBindplane(testMyBindplaneName, testNamespaceDefault) bp.Spec.Bindplane.Replicas = new(int32(2)) bp.Spec.Nats = &bindplanev1alpha1.NatsComponentSpec{Replicas: new(int32(3))} return bp @@ -47,13 +47,13 @@ var _ = Describe("skip seed", func() { }) It("node rollout passes --skip-seed", func() { - bp := newTestBindplaneWithArgoRollout("my-bp", "default") + bp := newTestBindplaneWithArgoRollout(testMyBindplaneName, testNamespaceDefault) container := r.nodeRollout(bp).Spec.Template.Spec.Containers[0] Expect(container.Args).To(Equal([]string{skipSeedArg})) }) It("opamp deployment passes --skip-seed", func() { - bp := newTestBindplaneWithOpAMP("my-bp", "default") + bp := newTestBindplaneWithOpAMP(testMyBindplaneName, testNamespaceDefault) container := r.opampDeployment(bp).Spec.Template.Spec.Containers[0] Expect(container.Args).To(Equal([]string{skipSeedArg})) }) @@ -65,14 +65,14 @@ var _ = Describe("skip seed", func() { }) It("jobs deployment does not pass --skip-seed so it seeds on startup", func() { - bp := newTestBindplane("my-bp", "default") + bp := newTestBindplane(testMyBindplaneName, testNamespaceDefault) container := r.bindplaneJobsDeployment(bp).Spec.Template.Spec.Containers[0] Expect(container.Args).NotTo(ContainElement(skipSeedArg)) Expect(container.Command).NotTo(ContainElement(skipSeedArg)) }) It("jobs migrate job does not pass --skip-seed", func() { - bp := newTestBindplane("my-bp", "default") + bp := newTestBindplane(testMyBindplaneName, testNamespaceDefault) container := r.bindplaneJobsMigrateJob(bp).Spec.Template.Spec.Containers[0] Expect(container.Command).NotTo(ContainElement(skipSeedArg)) Expect(container.Args).NotTo(ContainElement(skipSeedArg)) diff --git a/internal/validation/constants_test.go b/internal/validation/constants_test.go new file mode 100644 index 0000000..5a1db2f --- /dev/null +++ b/internal/validation/constants_test.go @@ -0,0 +1,36 @@ +/* +Copyright 2025. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package validation_test + +// Shared literal values used across validation tests. +const ( + testBindplaneVersion = "1.99.1" + testBindplaneName = "bindplane" + testLicense = "test-license" + testAuthTypeLDAP = "ldap" + testAuthTypeOIDC = "oidc" + testAuthTypeSystem = "system" + testLDAPBaseDN = "dc=example,dc=com" + testLDAPHost = "ldap.example.com" + testUsername = "admin" + testPassword = "pass" + testClientID = "client-id" + testClientSecret = "secret" + testIssuerURL = "https://issuer.example.com" + testTelemetryTypeOTLP = "otlp" + testCollectorEndpoint = "http://collector:4317" +) diff --git a/internal/validation/validate_test.go b/internal/validation/validate_test.go index 266c33b..a5ed70e 100644 --- a/internal/validation/validate_test.go +++ b/internal/validation/validate_test.go @@ -77,7 +77,7 @@ func TestValidateBindplaneName_RejectsTooLong(t *testing.T) { } func TestValidateBindplaneName_AcceptsValid(t *testing.T) { - for _, name := range []string{"a", "my-name", "abc-123", "bindplane"} { + for _, name := range []string{"a", "my-name", "abc-123", testBindplaneName} { if err := validation.ValidateBindplaneName(name); err != nil { t.Errorf("unexpected error for valid name %q: %v", name, err) } @@ -117,11 +117,11 @@ func TestValidateTransformAgentTLSConfig_AcceptsCertManagerName(t *testing.T) { func TestValidateBindplane_RejectsInvalidTransformAgentTLS(t *testing.T) { replicas := int32(1) bp := &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "bindplane"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName}, Spec: bindplanev1alpha1.BindplaneSpec{ - Version: "1.99.1", + Version: testBindplaneVersion, Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "test-license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{Host: "postgres"}, }, @@ -183,7 +183,7 @@ func TestValidateLicenseConfig_RejectsNeither(t *testing.T) { func TestValidateLicenseConfig_RejectsBoth(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ - License: "test-license", + License: testLicense, LicenseSecretRef: &corev1.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{Name: "bindplane-license"}, Key: "license", @@ -195,7 +195,7 @@ func TestValidateLicenseConfig_RejectsBoth(t *testing.T) { } func TestValidateLicenseConfig_AcceptsDirectLicense(t *testing.T) { - cfg := &bindplanev1alpha1.BindplaneConfigSpec{License: "test-license"} + cfg := &bindplanev1alpha1.BindplaneConfigSpec{License: testLicense} if err := validation.ValidateLicenseConfig(cfg); err != nil { t.Errorf("unexpected error: %v", err) } @@ -222,7 +222,7 @@ func TestValidateAuthConfig_AcceptsNilAuth(t *testing.T) { } func TestValidateAuthConfig_LDAPRequiresLDAPConfig(t *testing.T) { - for _, authType := range []string{"ldap", "active-directory"} { + for _, authType := range []string{testAuthTypeLDAP, "active-directory"} { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{Type: authType}, } @@ -235,11 +235,11 @@ func TestValidateAuthConfig_LDAPRequiresLDAPConfig(t *testing.T) { func TestValidateAuthConfig_LDAPRejectsMissingServer(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "ldap", + Type: testAuthTypeLDAP, LDAP: &bindplanev1alpha1.LDAPConfig{ - BaseDN: "dc=example,dc=com", - BindUser: "admin", - BindPassword: "pass", + BaseDN: testLDAPBaseDN, + BindUser: testUsername, + BindPassword: testPassword, }, }, } @@ -251,11 +251,11 @@ func TestValidateAuthConfig_LDAPRejectsMissingServer(t *testing.T) { func TestValidateAuthConfig_LDAPRejectsMissingBaseDN(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "ldap", + Type: testAuthTypeLDAP, LDAP: &bindplanev1alpha1.LDAPConfig{ - Server: "ldap.example.com", - BindUser: "admin", - BindPassword: "pass", + Server: testLDAPHost, + BindUser: testUsername, + BindPassword: testPassword, }, }, } @@ -267,11 +267,11 @@ func TestValidateAuthConfig_LDAPRejectsMissingBaseDN(t *testing.T) { func TestValidateAuthConfig_LDAPRejectsMissingBindUser(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "ldap", + Type: testAuthTypeLDAP, LDAP: &bindplanev1alpha1.LDAPConfig{ - Server: "ldap.example.com", - BaseDN: "dc=example,dc=com", - BindPassword: "pass", + Server: testLDAPHost, + BaseDN: testLDAPBaseDN, + BindPassword: testPassword, }, }, } @@ -283,11 +283,11 @@ func TestValidateAuthConfig_LDAPRejectsMissingBindUser(t *testing.T) { func TestValidateAuthConfig_LDAPRejectsMissingBindPassword(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "ldap", + Type: testAuthTypeLDAP, LDAP: &bindplanev1alpha1.LDAPConfig{ - Server: "ldap.example.com", - BaseDN: "dc=example,dc=com", - BindUser: "admin", + Server: testLDAPHost, + BaseDN: testLDAPBaseDN, + BindUser: testUsername, }, }, } @@ -299,12 +299,12 @@ func TestValidateAuthConfig_LDAPRejectsMissingBindPassword(t *testing.T) { func TestValidateAuthConfig_LDAPAcceptsValid(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "ldap", + Type: testAuthTypeLDAP, LDAP: &bindplanev1alpha1.LDAPConfig{ - Server: "ldap.example.com", - BaseDN: "dc=example,dc=com", - BindUser: "admin", - BindPassword: "pass", + Server: testLDAPHost, + BaseDN: testLDAPBaseDN, + BindUser: testUsername, + BindPassword: testPassword, }, }, } @@ -315,7 +315,7 @@ func TestValidateAuthConfig_LDAPAcceptsValid(t *testing.T) { func TestValidateAuthConfig_OIDCRequiresOIDCConfig(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ - Auth: &bindplanev1alpha1.AuthConfig{Type: "oidc"}, + Auth: &bindplanev1alpha1.AuthConfig{Type: testAuthTypeOIDC}, } if err := validation.ValidateAuthConfig(cfg); err == nil { t.Error("expected error for type oidc without oidc config") @@ -325,10 +325,10 @@ func TestValidateAuthConfig_OIDCRequiresOIDCConfig(t *testing.T) { func TestValidateAuthConfig_OIDCRejectsMissingIssuer(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "oidc", + Type: testAuthTypeOIDC, OIDC: &bindplanev1alpha1.OIDCConfig{ - ClientID: "client-id", - ClientSecret: "secret", + ClientID: testClientID, + ClientSecret: testClientSecret, }, }, } @@ -340,10 +340,10 @@ func TestValidateAuthConfig_OIDCRejectsMissingIssuer(t *testing.T) { func TestValidateAuthConfig_OIDCRejectsMissingClientID(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "oidc", + Type: testAuthTypeOIDC, OIDC: &bindplanev1alpha1.OIDCConfig{ - Issuer: "https://issuer.example.com", - ClientSecret: "secret", + Issuer: testIssuerURL, + ClientSecret: testClientSecret, }, }, } @@ -355,10 +355,10 @@ func TestValidateAuthConfig_OIDCRejectsMissingClientID(t *testing.T) { func TestValidateAuthConfig_OIDCRejectsMissingClientSecret(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "oidc", + Type: testAuthTypeOIDC, OIDC: &bindplanev1alpha1.OIDCConfig{ - Issuer: "https://issuer.example.com", - ClientID: "client-id", + Issuer: testIssuerURL, + ClientID: testClientID, }, }, } @@ -370,11 +370,11 @@ func TestValidateAuthConfig_OIDCRejectsMissingClientSecret(t *testing.T) { func TestValidateAuthConfig_OIDCAcceptsValid(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "oidc", + Type: testAuthTypeOIDC, OIDC: &bindplanev1alpha1.OIDCConfig{ - Issuer: "https://issuer.example.com", - ClientID: "client-id", - ClientSecret: "secret", + Issuer: testIssuerURL, + ClientID: testClientID, + ClientSecret: testClientSecret, }, }, } @@ -386,8 +386,8 @@ func TestValidateAuthConfig_OIDCAcceptsValid(t *testing.T) { func TestValidateAuthConfig_SystemRejectsMissingUsername(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "system", - Password: "pass", + Type: testAuthTypeSystem, + Password: testPassword, }, } if err := validation.ValidateAuthConfig(cfg); err == nil { @@ -398,8 +398,8 @@ func TestValidateAuthConfig_SystemRejectsMissingUsername(t *testing.T) { func TestValidateAuthConfig_SystemRejectsMissingPassword(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "system", - Username: "admin", + Type: testAuthTypeSystem, + Username: testUsername, }, } if err := validation.ValidateAuthConfig(cfg); err == nil { @@ -410,9 +410,9 @@ func TestValidateAuthConfig_SystemRejectsMissingPassword(t *testing.T) { func TestValidateAuthConfig_SystemAcceptsValid(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Auth: &bindplanev1alpha1.AuthConfig{ - Type: "system", - Username: "admin", - Password: "pass", + Type: testAuthTypeSystem, + Username: testUsername, + Password: testPassword, }, } if err := validation.ValidateAuthConfig(cfg); err != nil { @@ -438,7 +438,7 @@ func TestValidateMetricsConfig_AcceptsNilOrNonOTLP(t *testing.T) { func TestValidateMetricsConfig_RejectsMissingOTLPEndpoint(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ - Metrics: &bindplanev1alpha1.MetricsConfig{Type: "otlp"}, + Metrics: &bindplanev1alpha1.MetricsConfig{Type: testTelemetryTypeOTLP}, } if err := validation.ValidateMetricsConfig(cfg); err == nil { t.Error("expected error when metrics type is otlp but endpoint is missing") @@ -448,8 +448,8 @@ func TestValidateMetricsConfig_RejectsMissingOTLPEndpoint(t *testing.T) { func TestValidateMetricsConfig_AcceptsOTLPWithEndpoint(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Metrics: &bindplanev1alpha1.MetricsConfig{ - Type: "otlp", - OTLP: &bindplanev1alpha1.MetricsOTLPConfig{Endpoint: "http://collector:4317"}, + Type: testTelemetryTypeOTLP, + OTLP: &bindplanev1alpha1.MetricsOTLPConfig{Endpoint: testCollectorEndpoint}, }, } if err := validation.ValidateMetricsConfig(cfg); err != nil { @@ -460,7 +460,7 @@ func TestValidateMetricsConfig_AcceptsOTLPWithEndpoint(t *testing.T) { func TestValidateMetricsConfig_AcceptsValidKeepAliveDurations(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Metrics: &bindplanev1alpha1.MetricsConfig{ - Type: "otlp", + Type: testTelemetryTypeOTLP, OTLP: &bindplanev1alpha1.MetricsOTLPConfig{ Endpoint: "collector:4317", KeepAlive: &bindplanev1alpha1.MetricsOTLPKeepAliveConfig{Enabled: true, Time: "30s", Timeout: "20s"}, @@ -483,7 +483,7 @@ func TestValidateMetricsConfig_RejectsInvalidKeepAliveDurations(t *testing.T) { t.Run(name, func(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Metrics: &bindplanev1alpha1.MetricsConfig{ - Type: "otlp", + Type: testTelemetryTypeOTLP, OTLP: &bindplanev1alpha1.MetricsOTLPConfig{Endpoint: "collector:4317", KeepAlive: ka}, }, } @@ -512,7 +512,7 @@ func TestValidateTracingConfig_AcceptsNilOrNonOTLP(t *testing.T) { func TestValidateTracingConfig_RejectsMissingOTLPEndpoint(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ - Tracing: &bindplanev1alpha1.TracingConfig{Type: "otlp"}, + Tracing: &bindplanev1alpha1.TracingConfig{Type: testTelemetryTypeOTLP}, } if err := validation.ValidateTracingConfig(cfg); err == nil { t.Error("expected error when tracing type is otlp but endpoint is missing") @@ -522,8 +522,8 @@ func TestValidateTracingConfig_RejectsMissingOTLPEndpoint(t *testing.T) { func TestValidateTracingConfig_AcceptsOTLPWithEndpoint(t *testing.T) { cfg := &bindplanev1alpha1.BindplaneConfigSpec{ Tracing: &bindplanev1alpha1.TracingConfig{ - Type: "otlp", - OTLP: &bindplanev1alpha1.TracingOTLPConfig{Endpoint: "http://collector:4317"}, + Type: testTelemetryTypeOTLP, + OTLP: &bindplanev1alpha1.TracingOTLPConfig{Endpoint: testCollectorEndpoint}, }, } if err := validation.ValidateTracingConfig(cfg); err != nil { @@ -658,7 +658,7 @@ func TestValidateExtraEnv_AcceptsNonReservedNames(t *testing.T) { {Name: "HTTPS_PROXY", Value: "http://proxy.example.com:3128"}, {Name: "NO_PROXY", Value: "localhost,127.0.0.1"}, {Name: "GOOGLE_APPLICATION_CREDENTIALS", Value: "/var/secrets/google/key.json"}, - {Name: "OTEL_EXPORTER_OTLP_ENDPOINT", Value: "http://collector:4317"}, + {Name: "OTEL_EXPORTER_OTLP_ENDPOINT", Value: testCollectorEndpoint}, } if err := validation.ValidateExtraEnv("spec.bindplane.extraEnv", envVars, false); err != nil { t.Errorf("unexpected error for valid env vars: %v", err) @@ -681,11 +681,11 @@ func TestValidateExtraEnv_AcceptsEmpty(t *testing.T) { func newArgoRolloutTestBindplane() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "bindplane"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName}, Spec: bindplanev1alpha1.BindplaneSpec{ - Version: "1.99.1", + Version: testBindplaneVersion, Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "test-license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{Host: "postgres.example.com"}, }, @@ -741,11 +741,11 @@ func TestValidateBindplane_RejectsArgoRolloutWithStrategy(t *testing.T) { func newImageOverrideTestBindplane() *bindplanev1alpha1.Bindplane { return &bindplanev1alpha1.Bindplane{ - ObjectMeta: metav1.ObjectMeta{Name: "bindplane"}, + ObjectMeta: metav1.ObjectMeta{Name: testBindplaneName}, Spec: bindplanev1alpha1.BindplaneSpec{ - Version: "1.99.1", + Version: testBindplaneVersion, Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "test-license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{Host: "postgres.example.com"}, }, @@ -1154,7 +1154,7 @@ func minimalBindplane() *bindplanev1alpha1.Bindplane { Strategy: &appsv1.DeploymentStrategy{Type: appsv1.RollingUpdateDeploymentStrategyType}, }, Config: bindplanev1alpha1.BindplaneConfigSpec{ - License: "test-license", + License: testLicense, Store: bindplanev1alpha1.StoreConfig{ Postgres: &bindplanev1alpha1.PostgresConfig{Host: "postgres"}, }, diff --git a/test/e2e/bindplane_e2e_test.go b/test/e2e/bindplane_e2e_test.go index 9cc2342..2ab4401 100644 --- a/test/e2e/bindplane_e2e_test.go +++ b/test/e2e/bindplane_e2e_test.go @@ -197,7 +197,7 @@ var _ = Describe("Bindplane workloads", Ordered, Label(ginkgoLabelRequiresLicens Eventually(func(g Gomega) { output, err := runCmd(kubectl( bindplaneNamespace, - "get", + kubectlGet, "pod", "curl-bindplane-node", "-o", @@ -225,7 +225,7 @@ var _ = Describe("Bindplane workloads", Ordered, Label(ginkgoLabelRequiresLicens Eventually(func(g Gomega) { output, err := runCmd(kubectl( bindplaneNamespace, - "get", + kubectlGet, "issuer", "transform-agent-tls-issuer", "-o", @@ -251,14 +251,14 @@ var _ = Describe("Bindplane workloads", Ordered, Label(ginkgoLabelRequiresLicens Eventually(func(g Gomega) { _, err := runCmd(kubectl( bindplaneNamespace, - "get", + kubectlGet, "certificate.cert-manager.io", bindplaneResourceName("transform-agent-tls"), )) g.Expect(err).NotTo(HaveOccurred()) _, err = runCmd(kubectl( bindplaneNamespace, - "get", + kubectlGet, "secret", bindplaneResourceName("transform-agent-tls"), )) diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index fb3f315..b9eb95d 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -47,7 +47,7 @@ var _ = Describe("Manager", Ordered, func() { } By("Fetching Kubernetes events") - cmd = kubectl(operatorNamespace, "get", "events", "--sort-by=.lastTimestamp") + cmd = kubectl(operatorNamespace, kubectlGet, "events", "--sort-by=.lastTimestamp") eventsOutput, err := runCmd(cmd) if err == nil { _, _ = fmt.Fprintf(GinkgoWriter, "Kubernetes events:\n%s", eventsOutput) @@ -86,7 +86,7 @@ var _ = Describe("Manager", Ordered, func() { g.Expect(controllerPodName).To(ContainSubstring("controller-manager")) // Validate the pod's status - cmd := kubectl(operatorNamespace, "get", "pods", controllerPodName, "-o", "jsonpath={.status.phase}") + cmd := kubectl(operatorNamespace, kubectlGet, "pods", controllerPodName, "-o", "jsonpath={.status.phase}") output, err := runCmd(cmd) g.Expect(err).NotTo(HaveOccurred()) g.Expect(output).To(Equal("Running"), "Incorrect controller-manager pod status") @@ -106,7 +106,7 @@ var _ = Describe("Manager", Ordered, func() { } By("validating that the metrics service is available") - cmd = kubectl(operatorNamespace, "get", "service", operatorMetricsServiceName) + cmd = kubectl(operatorNamespace, kubectlGet, "service", operatorMetricsServiceName) _, err = runCmd(cmd) Expect(err).NotTo(HaveOccurred(), "Metrics service should exist") @@ -117,7 +117,7 @@ var _ = Describe("Manager", Ordered, func() { By("waiting for the metrics endpoint to be ready") verifyMetricsEndpointReady := func(g Gomega) { - cmd := kubectl(operatorNamespace, "get", "endpoints", operatorMetricsServiceName) + cmd := kubectl(operatorNamespace, kubectlGet, "endpoints", operatorMetricsServiceName) output, err := runCmd(cmd) g.Expect(err).NotTo(HaveOccurred()) g.Expect(output).To(ContainSubstring("8443"), "Metrics endpoint is not ready") @@ -166,7 +166,7 @@ var _ = Describe("Manager", Ordered, func() { By("waiting for the curl-metrics pod to complete.") verifyCurlUp := func(g Gomega) { - cmd := kubectl(operatorNamespace, "get", "pods", "curl-metrics", "-o", "jsonpath={.status.phase}") + cmd := kubectl(operatorNamespace, kubectlGet, "pods", "curl-metrics", "-o", "jsonpath={.status.phase}") output, err := runCmd(cmd) g.Expect(err).NotTo(HaveOccurred()) g.Expect(output).To(Equal("Succeeded"), "curl pod in wrong status") diff --git a/test/e2e/helpers.go b/test/e2e/helpers.go index 0b891c6..3bfab04 100644 --- a/test/e2e/helpers.go +++ b/test/e2e/helpers.go @@ -40,6 +40,10 @@ import ( ) const ( + // kubectlGet is the kubectl get verb + kubectlGet = "get" + // certManagerNamespace is the namespace cert-manager is installed into + certManagerNamespace = "cert-manager" // defaultCertManagerVersion is the pinned cert-manager release used by default. // Bump this when upgrading the github.com/cert-manager/cert-manager Go module in go.mod. // Override at runtime with CERT_MANAGER_VERSION=vX.Y.Z to test a different version. @@ -139,7 +143,7 @@ func deleteFixture(name, namespace string) { } func ensureNamespace(namespace string) { - _, err := runCmd(kubectl("", "get", "namespace", namespace)) + _, err := runCmd(kubectl("", kubectlGet, "namespace", namespace)) if err == nil { return } @@ -306,14 +310,14 @@ func waitForJobComplete(name, namespace string, timeout time.Duration) { func waitForServiceExists(name, namespace string, timeout time.Duration) { Eventually(func(g Gomega) { - _, err := runCmd(kubectl(namespace, "get", "service", name)) + _, err := runCmd(kubectl(namespace, kubectlGet, "service", name)) g.Expect(err).NotTo(HaveOccurred()) }, timeout, defaultEventuallyPollInterval).Should(Succeed()) } func waitForServiceEndpoints(name, namespace, expectedPort string, timeout time.Duration) { Eventually(func(g Gomega) { - output, err := runCmd(kubectl(namespace, "get", "endpoints", name)) + output, err := runCmd(kubectl(namespace, kubectlGet, "endpoints", name)) g.Expect(err).NotTo(HaveOccurred()) g.Expect(output).To(ContainSubstring(expectedPort)) }, timeout, defaultEventuallyPollInterval).Should(Succeed()) @@ -335,14 +339,14 @@ func waitForBindplaneWebhookReady(fixtureName, namespace string, timeout time.Du //nolint:unparam func waitForServiceAccountExists(name, namespace string, timeout time.Duration) { Eventually(func(g Gomega) { - _, err := runCmd(kubectl(namespace, "get", "serviceaccount", name)) + _, err := runCmd(kubectl(namespace, kubectlGet, "serviceaccount", name)) g.Expect(err).NotTo(HaveOccurred()) }, timeout, defaultEventuallyPollInterval).Should(Succeed()) } func waitForPodDisruptionBudgetExists(name, namespace string, timeout time.Duration) { Eventually(func(g Gomega) { - _, err := runCmd(kubectl(namespace, "get", "poddisruptionbudget", name)) + _, err := runCmd(kubectl(namespace, kubectlGet, "poddisruptionbudget", name)) g.Expect(err).NotTo(HaveOccurred()) }, timeout, defaultEventuallyPollInterval).Should(Succeed()) } @@ -385,7 +389,7 @@ func waitForBindplaneCondition( func waitForBindplaneDeleted(name, namespace string, timeout time.Duration) { Eventually(func(g Gomega) { - _, err := runCmd(kubectl(namespace, "get", "bindplane", name)) + _, err := runCmd(kubectl(namespace, kubectlGet, "bindplane", name)) g.Expect(err).To(HaveOccurred()) g.Expect(err.Error()).To(ContainSubstring("NotFound")) }, timeout, defaultEventuallyPollInterval).Should(Succeed()) @@ -394,7 +398,8 @@ func waitForBindplaneDeleted(name, namespace string, timeout time.Duration) { // bindplaneCRDInstalled reports whether the bindplane CRD is registered on the cluster. // Used to short-circuit cleanup when BeforeSuite failed before CRDs were installed. func bindplaneCRDInstalled() bool { - _, err := runCmd(exec.Command("kubectl", "get", "crd", "bindplanes.k8s.bindplane.com")) // #nosec G204 -- fixed args + // #nosec G204 -- fixed args + _, err := runCmd(exec.Command("kubectl", kubectlGet, "crd", "bindplanes.k8s.bindplane.com")) return err == nil } @@ -411,7 +416,7 @@ func cleanupBindplane(name, namespace string, timeout time.Duration) { } func getBindplane(name, namespace string) (*bindplanev1alpha1.Bindplane, error) { - output, err := runCmd(kubectl(namespace, "get", "bindplane", name, "-o", "json")) + output, err := runCmd(kubectl(namespace, kubectlGet, "bindplane", name, "-o", "json")) if err != nil { return nil, err } @@ -424,7 +429,7 @@ func getBindplane(name, namespace string) (*bindplanev1alpha1.Bindplane, error) //nolint:unparam func getDeployment(name, namespace string) (*appsv1.Deployment, error) { - output, err := runCmd(kubectl(namespace, "get", "deployment", name, "-o", "json")) + output, err := runCmd(kubectl(namespace, kubectlGet, "deployment", name, "-o", "json")) if err != nil { return nil, err } @@ -437,7 +442,7 @@ func getDeployment(name, namespace string) (*appsv1.Deployment, error) { //nolint:unparam func getStatefulSet(name, namespace string) (*appsv1.StatefulSet, error) { - output, err := runCmd(kubectl(namespace, "get", "statefulset", name, "-o", "json")) + output, err := runCmd(kubectl(namespace, kubectlGet, "statefulset", name, "-o", "json")) if err != nil { return nil, err } @@ -449,7 +454,7 @@ func getStatefulSet(name, namespace string) (*appsv1.StatefulSet, error) { } func getJob(name, namespace string) (*batchv1.Job, error) { - output, err := runCmd(kubectl(namespace, "get", "job", name, "-o", "json")) + output, err := runCmd(kubectl(namespace, kubectlGet, "job", name, "-o", "json")) if err != nil { return nil, err } @@ -512,7 +517,7 @@ func currentControllerPodName() string { "{{ \"\\n\" }}{{ end }}{{ end }}" cmd := kubectl( operatorNamespace, - "get", + kubectlGet, "pods", "-l", "control-plane=controller-manager", @@ -597,7 +602,7 @@ func isCertManagerCRDsInstalled() bool { "challenges.acme.cert-manager.io", } - cmd := exec.Command("kubectl", "get", "crds") + cmd := exec.Command("kubectl", kubectlGet, "crds") output, err := run(cmd) if err != nil { return false @@ -638,10 +643,10 @@ func installCertManager() error { // Wait for all three cert-manager workloads to become Available before proceeding. // Waiting only on the webhook (as was done previously) misses cases where cainjector // is still starting, causing "x509: certificate signed by unknown authority" errors. - for _, d := range []string{"cert-manager", "cert-manager-cainjector", "cert-manager-webhook"} { + for _, d := range []string{certManagerNamespace, "cert-manager-cainjector", "cert-manager-webhook"} { cmd = exec.Command("kubectl", "wait", "deployment.apps/"+d, // #nosec G204 -- deployment name is a loop constant "--for", "condition=Available", - "--namespace", "cert-manager", + "--namespace", certManagerNamespace, "--timeout", "8m", ) if _, err := run(cmd); err != nil { @@ -656,7 +661,7 @@ func installCertManager() error { _, _ = fmt.Fprintf(GinkgoWriter, "Waiting for cert-manager webhook CA to be ready...\n") deadline := time.Now().Add(8 * time.Minute) for time.Now().Before(deadline) { - cmd = exec.Command("kubectl", "get", "validatingwebhookconfiguration", // #nosec G204 -- test utility + cmd = exec.Command("kubectl", kubectlGet, "validatingwebhookconfiguration", // #nosec G204 -- test utility "cert-manager-webhook", "-o", `jsonpath={.webhooks[0].clientConfig.caBundle}`, ) @@ -675,11 +680,11 @@ func installCertManager() error { func dumpCertManagerDiagnostics() { _, _ = fmt.Fprintln(GinkgoWriter, "===== cert-manager diagnostics =====") for _, args := range [][]string{ - {"get", "pods", "-n", "cert-manager", "-o", "wide"}, - {"describe", "pods", "-n", "cert-manager"}, - {"get", "events", "-n", "cert-manager", "--sort-by=.lastTimestamp"}, - {"get", "deployments", "-n", "cert-manager", "-o", "wide"}, - {"get", "validatingwebhookconfiguration", "cert-manager-webhook", "-o", "yaml"}, + {kubectlGet, "pods", "-n", certManagerNamespace, "-o", "wide"}, + {"describe", "pods", "-n", certManagerNamespace}, + {kubectlGet, "events", "-n", certManagerNamespace, "--sort-by=.lastTimestamp"}, + {kubectlGet, "deployments", "-n", certManagerNamespace, "-o", "wide"}, + {kubectlGet, "validatingwebhookconfiguration", "cert-manager-webhook", "-o", "yaml"}, } { out, _ := exec.Command("kubectl", args...).CombinedOutput() // #nosec G204 -- fixed diagnostic args _, _ = fmt.Fprintf(GinkgoWriter, "$ kubectl %s\n%s\n", strings.Join(args, " "), out) @@ -712,7 +717,7 @@ func getArgoRolloutsURL() string { } func isArgoRolloutsCRDInstalled() bool { - cmd := exec.Command("kubectl", "get", "crd", "rollouts.argoproj.io") // #nosec G204 -- test utility + cmd := exec.Command("kubectl", kubectlGet, "crd", "rollouts.argoproj.io") // #nosec G204 -- test utility _, err := run(cmd) return err == nil } @@ -740,7 +745,7 @@ func installArgoRollouts() error { // Poll until the Deployment object exists — apply returns before objects are created. deadline := time.Now().Add(2 * time.Minute) for { - cmd := exec.Command("kubectl", "get", "deployment/argo-rollouts", // #nosec G204 -- constant + cmd := exec.Command("kubectl", kubectlGet, "deployment/argo-rollouts", // #nosec G204 -- constant "--namespace", argoRolloutsNamespace) if _, err := run(cmd); err == nil { break @@ -773,7 +778,7 @@ func uninstallArgoRollouts() { func waitForRolloutExists(name, namespace string, timeout time.Duration) { Eventually(func(g Gomega) { - _, err := runCmd(kubectl(namespace, "get", "rollout", name)) + _, err := runCmd(kubectl(namespace, kubectlGet, "rollout", name)) g.Expect(err).NotTo(HaveOccurred()) }, timeout, defaultEventuallyPollInterval).Should(Succeed()) } From 9e1d900e1dbddb9b460eca611218a5d351652275 Mon Sep 17 00:00:00 2001 From: jsirianni Date: Thu, 19 Nov 2026 14:48:50 -0500 Subject: [PATCH 7/7] bump dev container go image --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 33ca8bc..35f6168 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Kubebuilder DevContainer", - "image": "golang:1.26", + "image": "golang:1.27", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/git:1": {}