chore(lint): bump to v2.5.0 and enable godoclint (#7632)

This commit is contained in:
Ville Vesilehto
2025-10-23 20:01:57 +03:00
committed by GitHub
parent 4ca99cd7b6
commit b72d267a29
14 changed files with 13 additions and 15 deletions

View File

@@ -1,4 +1,3 @@
// Package auto implements a on-the-fly loading file backend.
package auto
import (

View File

@@ -8,7 +8,7 @@ import (
mcs "sigs.k8s.io/mcs-api/pkg/apis/v1alpha1"
)
// Endpoints is a stripped down api.Endpoints with only the items we need for CoreDNS.
// MultiClusterEndpoints is a stripped down api.Endpoints with only the items we need for CoreDNS.
type MultiClusterEndpoints struct {
Endpoints
ClusterId string
@@ -18,7 +18,7 @@ type MultiClusterEndpoints struct {
// MultiClusterEndpointsKey returns a string using for the index.
func MultiClusterEndpointsKey(name, namespace string) string { return name + "." + namespace }
// EndpointSliceToEndpoints converts a *discovery.EndpointSlice to a *Endpoints.
// EndpointSliceToMultiClusterEndpoints converts a *discovery.EndpointSlice to a *Endpoints.
func EndpointSliceToMultiClusterEndpoints(obj meta.Object) (meta.Object, error) {
labels := maps.Clone(obj.GetLabels())
ends, err := EndpointSliceToEndpoints(obj)

View File

@@ -1,4 +1,4 @@
// Package loadbalance is a plugin for rewriting responses to do "load balancing"
// Package loadbalance is a plugin for rewriting responses to do "load balancing".
package loadbalance
import (
@@ -9,7 +9,7 @@ import (
"github.com/miekg/dns"
)
// RoundRobin is a plugin to rewrite responses for "load balancing".
// LoadBalance is a plugin to rewrite responses for "load balancing".
type LoadBalance struct {
Next plugin.Handler
shuffle func(*dns.Msg) *dns.Msg

View File

@@ -1,4 +1,3 @@
// Package loadbalance shuffles A, AAAA and MX records.
package loadbalance
import (

View File

@@ -1,4 +1,3 @@
// Package rewrite is a plugin for rewriting requests internally to something different.
package rewrite
import (

View File

@@ -23,9 +23,9 @@ const (
// These are defined processing mode.
const (
// Processing should stop after completing this rule
// Stop processing should stop after completing this rule
Stop = "stop"
// Processing should continue to next rule
// Continue processing should continue to next rule
Continue = "continue"
)

View File

@@ -1,4 +1,3 @@
// Package rewrite is a plugin for rewriting requests internally to something different.
package rewrite
import (

View File

@@ -1,2 +0,0 @@
// Package test contains helper functions for writing plugin tests.
package test

View File

@@ -14,7 +14,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package test will scrape a target and you can inspect the variables.
// Package test contains helper functions for writing plugin tests.
// For example to scrape a target and inspect the variables.
// Basic usage:
//
// result := Scrape("http://localhost:9153/metrics")