feat: reset module path to hanzoai/ingress v1 (was v3)

This commit is contained in:
2026-04-12 13:00:48 -07:00
parent 7369aa7ad8
commit 40e03ce48f
453 changed files with 1285 additions and 1285 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"time"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/static"
)
// IngressCmdConfiguration wraps the static configuration and extra parameters.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"time"
"github.com/hanzoai/ingress-parser/cli"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/static"
)
// NewCmd builds a new HealthCheck command.
+11 -11
View File
@@ -11,7 +11,7 @@ import (
"strings"
)
const rootPkg = "github.com/hanzoai/ingress/v3/pkg/config/dynamic"
const rootPkg = "github.com/hanzoai/ingress/pkg/config/dynamic"
const (
destModuleName = "github.com/hanzoai/genconf"
@@ -57,8 +57,8 @@ func run(dest string) error {
}
centrifuge.IncludedImports = []string{
"github.com/hanzoai/ingress/v3/pkg/tls",
"github.com/hanzoai/ingress/v3/pkg/types",
"github.com/hanzoai/ingress/pkg/tls",
"github.com/hanzoai/ingress/pkg/types",
}
centrifuge.ExcludedTypes = []string{
@@ -71,8 +71,8 @@ func run(dest string) error {
}
centrifuge.ExcludedFiles = []string{
"github.com/hanzoai/ingress/v3/pkg/types/logs.go",
"github.com/hanzoai/ingress/v3/pkg/types/metrics.go",
"github.com/hanzoai/ingress/pkg/types/logs.go",
"github.com/hanzoai/ingress/pkg/types/metrics.go",
}
centrifuge.TypeCleaner = cleanType
@@ -87,11 +87,11 @@ func run(dest string) error {
}
func cleanType(typ types.Type, base string) string {
if typ.String() == "github.com/hanzoai/ingress/v3/pkg/types.FileOrContent" {
if typ.String() == "github.com/hanzoai/ingress/pkg/types.FileOrContent" {
return "string"
}
if typ.String() == "[]github.com/hanzoai/ingress/v3/pkg/types.FileOrContent" {
if typ.String() == "[]github.com/hanzoai/ingress/pkg/types.FileOrContent" {
return "[]string"
}
@@ -103,8 +103,8 @@ func cleanType(typ types.Type, base string) string {
return strings.ReplaceAll(typ.String(), base+".", "")
}
if strings.Contains(typ.String(), "github.com/hanzoai/ingress/v3/pkg/") {
return strings.ReplaceAll(typ.String(), "github.com/hanzoai/ingress/v3/pkg/", "")
if strings.Contains(typ.String(), "github.com/hanzoai/ingress/pkg/") {
return strings.ReplaceAll(typ.String(), "github.com/hanzoai/ingress/pkg/", "")
}
return typ.String()
@@ -114,9 +114,9 @@ func cleanPackage(src string) string {
switch src {
case "github.com/hanzoai/ingress-parser/types":
return ""
case "github.com/hanzoai/ingress/v3/pkg/tls":
case "github.com/hanzoai/ingress/pkg/tls":
return path.Join(destModuleName, destPkg, "tls")
case "github.com/hanzoai/ingress/v3/pkg/types":
case "github.com/hanzoai/ingress/pkg/types":
return path.Join(destModuleName, destPkg, "types")
default:
return src
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/sirupsen/logrus"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
"github.com/hanzoai/ingress/pkg/config/static"
"github.com/hanzoai/ingress/pkg/observability/logs"
"gopkg.in/natefinch/lumberjack.v2"
)
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"github.com/hashicorp/go-retryablehttp"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
"github.com/hanzoai/ingress/v3/pkg/plugins"
"github.com/hanzoai/ingress/pkg/config/static"
"github.com/hanzoai/ingress/pkg/observability/logs"
"github.com/hanzoai/ingress/pkg/plugins"
)
const outputDir = "./plugins-storage/"
+27 -27
View File
@@ -22,33 +22,33 @@ import (
"github.com/sirupsen/logrus"
"github.com/spiffe/go-spiffe/v2/workloadapi"
"github.com/hanzoai/ingress-parser/cli"
"github.com/hanzoai/ingress/v3/cmd"
"github.com/hanzoai/ingress/v3/cmd/healthcheck"
cmdVersion "github.com/hanzoai/ingress/v3/cmd/version"
tcli "github.com/hanzoai/ingress/v3/pkg/cli"
"github.com/hanzoai/ingress/v3/pkg/collector"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/v3/pkg/middlewares/accesslog"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
"github.com/hanzoai/ingress/v3/pkg/observability/metrics"
"github.com/hanzoai/ingress/v3/pkg/observability/tracing"
otypes "github.com/hanzoai/ingress/v3/pkg/observability/types"
"github.com/hanzoai/ingress/v3/pkg/provider/acme"
"github.com/hanzoai/ingress/v3/pkg/provider/aggregator"
"github.com/hanzoai/ingress/v3/pkg/provider/tailscale"
"github.com/hanzoai/ingress/v3/pkg/provider/builtins"
"github.com/hanzoai/ingress/v3/pkg/proxy"
"github.com/hanzoai/ingress/v3/pkg/proxy/httputil"
"github.com/hanzoai/ingress/v3/pkg/redactor"
"github.com/hanzoai/ingress/v3/pkg/safe"
"github.com/hanzoai/ingress/v3/pkg/server"
"github.com/hanzoai/ingress/v3/pkg/server/middleware"
"github.com/hanzoai/ingress/v3/pkg/server/service"
"github.com/hanzoai/ingress/v3/pkg/tcp"
ingresstls "github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/v3/pkg/version"
"github.com/hanzoai/ingress/cmd"
"github.com/hanzoai/ingress/cmd/healthcheck"
cmdVersion "github.com/hanzoai/ingress/cmd/version"
tcli "github.com/hanzoai/ingress/pkg/cli"
"github.com/hanzoai/ingress/pkg/collector"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
"github.com/hanzoai/ingress/pkg/middlewares/accesslog"
"github.com/hanzoai/ingress/pkg/observability/logs"
"github.com/hanzoai/ingress/pkg/observability/metrics"
"github.com/hanzoai/ingress/pkg/observability/tracing"
otypes "github.com/hanzoai/ingress/pkg/observability/types"
"github.com/hanzoai/ingress/pkg/provider/acme"
"github.com/hanzoai/ingress/pkg/provider/aggregator"
"github.com/hanzoai/ingress/pkg/provider/tailscale"
"github.com/hanzoai/ingress/pkg/provider/builtins"
"github.com/hanzoai/ingress/pkg/proxy"
"github.com/hanzoai/ingress/pkg/proxy/httputil"
"github.com/hanzoai/ingress/pkg/redactor"
"github.com/hanzoai/ingress/pkg/safe"
"github.com/hanzoai/ingress/pkg/server"
"github.com/hanzoai/ingress/pkg/server/middleware"
"github.com/hanzoai/ingress/pkg/server/service"
"github.com/hanzoai/ingress/pkg/tcp"
ingresstls "github.com/hanzoai/ingress/pkg/tls"
"github.com/hanzoai/ingress/pkg/version"
)
func main() {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/go-kit/kit/metrics"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/static"
)
// FooCert is a PEM-encoded TLS cert.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"text/template"
"github.com/hanzoai/ingress-parser/cli"
"github.com/hanzoai/ingress/v3/pkg/version"
"github.com/hanzoai/ingress/pkg/version"
)
var versionTemplate = `Version: {{.Version}}
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/hanzoai/ingress/v3
module github.com/hanzoai/ingress
go 1.26.1
+2 -2
View File
@@ -18,8 +18,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/middlewares/accesslog"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/middlewares/accesslog"
)
const (
+5 -5
View File
@@ -16,11 +16,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/v3/pkg/provider/acme"
"github.com/hanzoai/ingress/v3/pkg/testhelpers"
"github.com/hanzoai/ingress/v3/pkg/types"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/config/static"
"github.com/hanzoai/ingress/pkg/provider/acme"
"github.com/hanzoai/ingress/pkg/testhelpers"
"github.com/hanzoai/ingress/pkg/types"
"k8s.io/utils/strings/slices"
)
+2 -2
View File
@@ -14,8 +14,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/config/dynamic"
)
type ThrottlingSuite struct{ BaseSuite }
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type ConsulCatalogSuite struct {
+2 -2
View File
@@ -18,8 +18,8 @@ import (
"github.com/pmezard/go-difflib/difflib"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/api"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/api"
)
// Consul test suites.
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/api"
"github.com/hanzoai/ingress/v3/pkg/testhelpers"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/api"
"github.com/hanzoai/ingress/pkg/testhelpers"
)
// Docker tests suite.
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
// Docker tests suite.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
// ErrorPagesSuite test suites.
+2 -2
View File
@@ -16,8 +16,8 @@ import (
"github.com/pmezard/go-difflib/difflib"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/api"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/api"
)
// etcd test suites.
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
// File tests suite.
+2 -2
View File
@@ -18,8 +18,8 @@ import (
"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/modules/k3s"
"github.com/testcontainers/testcontainers-go/network"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/provider/kubernetes/gateway"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/provider/kubernetes/gateway"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
"k8s.io/apimachinery/pkg/util/sets"
kclientset "k8s.io/client-go/kubernetes"
+2 -2
View File
@@ -14,8 +14,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/helloworld"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/helloworld"
"github.com/hanzoai/ingress/integration/try"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/insecure"
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
// Headers tests suite.
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
// HealthCheck test suites.
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type HostResolverSuite struct{ BaseSuite }
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/config/dynamic"
)
type HTTPSuite struct{ BaseSuite }
+4 -4
View File
@@ -16,10 +16,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
ingresstls "github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/v3/pkg/types"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/config/dynamic"
ingresstls "github.com/hanzoai/ingress/pkg/tls"
"github.com/hanzoai/ingress/pkg/types"
"golang.org/x/net/http2"
)
+1 -1
View File
@@ -31,7 +31,7 @@ import (
"github.com/stretchr/testify/suite"
"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/network"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
"gopkg.in/yaml.v3"
)
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/api"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/api"
)
var updateExpected = flag.Bool("update_expected", false, "Update expected files in testdata")
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type KeepAliveSuite struct {
+1 -1
View File
@@ -18,7 +18,7 @@ import (
"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/modules/k3s"
"github.com/testcontainers/testcontainers-go/network"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
"knative.dev/networking/test/conformance/ingress"
klog "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
const ingressTestAccessLogFileRotated = ingressTestAccessLogFile + ".rotated"
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type ProxyProtocolSuite struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type RateLimitSuite struct {
+2 -2
View File
@@ -21,8 +21,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/api"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/api"
)
// Redis test suites.
+2 -2
View File
@@ -17,8 +17,8 @@ import (
"github.com/pmezard/go-difflib/difflib"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/api"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/api"
)
// Redis test suites.
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/config/dynamic"
)
type RestSuite struct {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type RetrySuite struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
// RoutingSuite tests multi-layer routing with authentication middleware.
+2 -2
View File
@@ -24,8 +24,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"golang.org/x/crypto/ocsp"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
// TCPHealthCheckSuite test suite for TCP health checks.
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type TCPSuite struct{ BaseSuite }
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type TimeoutSuite struct{ BaseSuite }
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
const (
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/tidwall/gjson"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type TracingSuite struct {
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
)
type UDPSuite struct{ BaseSuite }
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/integration/try"
"golang.org/x/net/http2"
"golang.org/x/net/websocket"
)
+2 -2
View File
@@ -17,8 +17,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/hanzoai/ingress/v3/integration/try"
"github.com/hanzoai/ingress/v3/pkg/api"
"github.com/hanzoai/ingress/integration/try"
"github.com/hanzoai/ingress/pkg/api"
)
// Zk test suites.
+3 -3
View File
@@ -13,9 +13,9 @@ import (
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress-parser/flag"
"github.com/hanzoai/ingress-parser/generator"
"github.com/hanzoai/ingress/v3/cmd"
"github.com/hanzoai/ingress/v3/pkg/collector/hydratation"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/cmd"
"github.com/hanzoai/ingress/pkg/collector/hydratation"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"gopkg.in/yaml.v3"
)
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/webui"
"github.com/hanzoai/ingress/webui"
)
type indexTemplateData struct {
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/v3/pkg/version"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
"github.com/hanzoai/ingress/pkg/version"
)
type apiError struct {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/static"
)
type entryPointRepresentation struct {
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
)
func TestHandler_EntryPoints(t *testing.T) {
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/tls"
)
type routerRepresentation struct {
+3 -3
View File
@@ -13,9 +13,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
)
func pointer[T any](v T) *T { return &v }
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"reflect"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
)
type schemeOverview struct {
+9 -9
View File
@@ -10,15 +10,15 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
otypes "github.com/hanzoai/ingress/v3/pkg/observability/types"
"github.com/hanzoai/ingress/v3/pkg/provider/docker"
"github.com/hanzoai/ingress/v3/pkg/provider/file"
"github.com/hanzoai/ingress/v3/pkg/provider/kubernetes/crd"
"github.com/hanzoai/ingress/v3/pkg/provider/kubernetes/ingress"
"github.com/hanzoai/ingress/v3/pkg/provider/rest"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
otypes "github.com/hanzoai/ingress/pkg/observability/types"
"github.com/hanzoai/ingress/pkg/provider/docker"
"github.com/hanzoai/ingress/pkg/provider/file"
"github.com/hanzoai/ingress/pkg/provider/kubernetes/crd"
"github.com/hanzoai/ingress/pkg/provider/kubernetes/ingress"
"github.com/hanzoai/ingress/pkg/provider/rest"
)
func TestHandler_Overview(t *testing.T) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"time"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/redactor"
"github.com/hanzoai/ingress/v3/pkg/version"
"github.com/hanzoai/ingress/pkg/redactor"
"github.com/hanzoai/ingress/pkg/version"
)
func (h Handler) getSupportDump(rw http.ResponseWriter, req *http.Request) {
+3 -3
View File
@@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
)
func TestHandler_SupportDump(t *testing.T) {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/runtime"
)
type tcpRouterRepresentation struct {
+3 -3
View File
@@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
)
func TestHandler_TCP(t *testing.T) {
+3 -3
View File
@@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
)
var updateExpected = flag.Bool("update_expected", false, "Update expected files in testdata")
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/runtime"
)
type udpRouterRepresentation struct {
+3 -3
View File
@@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/static"
)
func TestHandler_UDP(t *testing.T) {
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
)
func TestSortRouters(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress-parser/cli"
"github.com/hanzoai/ingress/v3/cmd"
"github.com/hanzoai/ingress/cmd"
)
func ptr[T any](t T) *T {
+3 -3
View File
@@ -11,9 +11,9 @@ import (
"github.com/mitchellh/hashstructure"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/v3/pkg/redactor"
"github.com/hanzoai/ingress/v3/pkg/version"
"github.com/hanzoai/ingress/pkg/config/static"
"github.com/hanzoai/ingress/pkg/redactor"
"github.com/hanzoai/ingress/pkg/version"
)
// collectorURL URL where the stats are sent.
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/collector/hydratation"
"github.com/hanzoai/ingress/v3/pkg/config/static"
"github.com/hanzoai/ingress/pkg/collector/hydratation"
"github.com/hanzoai/ingress/pkg/config/static"
)
func Test_createBody(t *testing.T) {
+1 -1
View File
@@ -1,7 +1,7 @@
package dynamic
import (
"github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/pkg/tls"
)
// +k8s:deepcopy-gen=true
+3 -3
View File
@@ -6,9 +6,9 @@ import (
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/dynamic/ext"
otypes "github.com/hanzoai/ingress/v3/pkg/observability/types"
ingresstls "github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/v3/pkg/types"
otypes "github.com/hanzoai/ingress/pkg/observability/types"
ingresstls "github.com/hanzoai/ingress/pkg/tls"
"github.com/hanzoai/ingress/pkg/types"
"google.golang.org/grpc/codes"
"k8s.io/utils/ptr"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"time"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/ip"
"github.com/hanzoai/ingress/v3/pkg/types"
"github.com/hanzoai/ingress/pkg/ip"
"github.com/hanzoai/ingress/pkg/types"
)
const (
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"time"
ptypes "github.com/hanzoai/ingress-parser/types"
ingresstls "github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/v3/pkg/types"
ingresstls "github.com/hanzoai/ingress/pkg/tls"
"github.com/hanzoai/ingress/pkg/types"
)
// +k8s:deepcopy-gen=true
+2 -2
View File
@@ -31,8 +31,8 @@ package dynamic
import (
paersertypes "github.com/hanzoai/ingress-parser/types"
tls "github.com/hanzoai/ingress/v3/pkg/tls"
types "github.com/hanzoai/ingress/v3/pkg/types"
tls "github.com/hanzoai/ingress/pkg/tls"
types "github.com/hanzoai/ingress/pkg/types"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+1 -1
View File
@@ -3,7 +3,7 @@ package label
import (
"github.com/hanzoai/ingress-parser/parser"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/dynamic"
)
// RootName is the root name used as prefix for labels and configuration keys.
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/v3/pkg/types"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/tls"
"github.com/hanzoai/ingress/pkg/types"
)
func pointer[T any](v T) *T { return &v }
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"strings"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/observability/logs"
)
// Status of the router/service.
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"sync"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/observability/logs"
)
// GetRoutersByEntryPoints returns all the http routers by entry points name and routers name.
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/dynamic"
)
func TestGetRoutersByEntryPoints(t *testing.T) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"sync"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/observability/logs"
)
// GetTCPRoutersByEntryPoints returns all the tcp routers by entry points name and routers name.
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/dynamic"
)
func TestGetTCPRoutersByEntryPoints(t *testing.T) {
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
)
// all the Routers/Middlewares/Services are considered fully qualified.
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"slices"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/observability/logs"
)
// GetUDPRoutersByEntryPoints returns all the UDP routers by entry points name and routers name.
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/dynamic"
)
func TestGetUDPRoutersByEntryPoints(t *testing.T) {
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"strings"
ptypes "github.com/hanzoai/ingress-parser/types"
otypes "github.com/hanzoai/ingress/v3/pkg/observability/types"
"github.com/hanzoai/ingress/v3/pkg/types"
otypes "github.com/hanzoai/ingress/pkg/observability/types"
"github.com/hanzoai/ingress/pkg/types"
"k8s.io/utils/ptr"
)
+1 -1
View File
@@ -1,6 +1,6 @@
package static
import "github.com/hanzoai/ingress/v3/pkg/plugins"
import "github.com/hanzoai/ingress/pkg/plugins"
// Experimental experimental Ingress features.
type Experimental struct {
+22 -22
View File
@@ -11,28 +11,28 @@ import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
otypes "github.com/hanzoai/ingress/v3/pkg/observability/types"
"github.com/hanzoai/ingress/v3/pkg/ping"
acmeprovider "github.com/hanzoai/ingress/v3/pkg/provider/acme"
"github.com/hanzoai/ingress/v3/pkg/provider/consulcatalog"
"github.com/hanzoai/ingress/v3/pkg/provider/docker"
"github.com/hanzoai/ingress/v3/pkg/provider/ecs"
"github.com/hanzoai/ingress/v3/pkg/provider/file"
"github.com/hanzoai/ingress/v3/pkg/provider/http"
"github.com/hanzoai/ingress/v3/pkg/provider/kubernetes/crd"
"github.com/hanzoai/ingress/v3/pkg/provider/kubernetes/gateway"
"github.com/hanzoai/ingress/v3/pkg/provider/kubernetes/ingress"
ingressnginx "github.com/hanzoai/ingress/v3/pkg/provider/kubernetes/ingress-nginx"
"github.com/hanzoai/ingress/v3/pkg/provider/kubernetes/knative"
"github.com/hanzoai/ingress/v3/pkg/provider/kv/consul"
"github.com/hanzoai/ingress/v3/pkg/provider/kv/etcd"
"github.com/hanzoai/ingress/v3/pkg/provider/kv/redis"
"github.com/hanzoai/ingress/v3/pkg/provider/kv/zk"
"github.com/hanzoai/ingress/v3/pkg/provider/nomad"
"github.com/hanzoai/ingress/v3/pkg/provider/rest"
"github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/v3/pkg/types"
"github.com/hanzoai/ingress/pkg/observability/logs"
otypes "github.com/hanzoai/ingress/pkg/observability/types"
"github.com/hanzoai/ingress/pkg/ping"
acmeprovider "github.com/hanzoai/ingress/pkg/provider/acme"
"github.com/hanzoai/ingress/pkg/provider/consulcatalog"
"github.com/hanzoai/ingress/pkg/provider/docker"
"github.com/hanzoai/ingress/pkg/provider/ecs"
"github.com/hanzoai/ingress/pkg/provider/file"
"github.com/hanzoai/ingress/pkg/provider/http"
"github.com/hanzoai/ingress/pkg/provider/kubernetes/crd"
"github.com/hanzoai/ingress/pkg/provider/kubernetes/gateway"
"github.com/hanzoai/ingress/pkg/provider/kubernetes/ingress"
ingressnginx "github.com/hanzoai/ingress/pkg/provider/kubernetes/ingress-nginx"
"github.com/hanzoai/ingress/pkg/provider/kubernetes/knative"
"github.com/hanzoai/ingress/pkg/provider/kv/consul"
"github.com/hanzoai/ingress/pkg/provider/kv/etcd"
"github.com/hanzoai/ingress/pkg/provider/kv/redis"
"github.com/hanzoai/ingress/pkg/provider/kv/zk"
"github.com/hanzoai/ingress/pkg/provider/nomad"
"github.com/hanzoai/ingress/pkg/provider/rest"
"github.com/hanzoai/ingress/pkg/tls"
"github.com/hanzoai/ingress/pkg/types"
)
const (
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/hanzoai/ingress/v3/pkg/provider/acme"
"github.com/hanzoai/ingress/pkg/provider/acme"
)
func pointer[T any](v T) *T { return &v }
+2 -2
View File
@@ -16,8 +16,8 @@ import (
gokitmetrics "github.com/go-kit/kit/metrics"
"github.com/rs/zerolog/log"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"golang.org/x/sync/singleflight"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"time"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/tcp"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/tcp"
)
// maxPayloadSize is the maximum payload size that can be sent during health checks.
+3 -3
View File
@@ -14,9 +14,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
truntime "github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/tcp"
"github.com/hanzoai/ingress/pkg/config/dynamic"
truntime "github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/tcp"
)
var localhostCert = []byte(`-----BEGIN CERTIFICATE-----
+3 -3
View File
@@ -12,9 +12,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/config/runtime"
"github.com/hanzoai/ingress/v3/pkg/testhelpers"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/config/runtime"
"github.com/hanzoai/ingress/pkg/testhelpers"
healthpb "google.golang.org/grpc/health/grpc_health_v1"
)
+2 -2
View File
@@ -12,8 +12,8 @@ import (
gokitmetrics "github.com/go-kit/kit/metrics"
"github.com/stretchr/testify/assert"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/testhelpers"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/testhelpers"
"google.golang.org/grpc"
healthpb "google.golang.org/grpc/health/grpc_health_v1"
)
@@ -6,8 +6,8 @@ import (
"time"
"github.com/rs/zerolog/log"
"github.com/hanzoai/ingress/v3/pkg/middlewares/capture"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
"github.com/hanzoai/ingress/pkg/middlewares/capture"
"github.com/hanzoai/ingress/pkg/observability/logs"
"github.com/vulcand/oxy/v2/utils"
)
+6 -6
View File
@@ -19,12 +19,12 @@ import (
"github.com/rs/zerolog/log"
"github.com/sirupsen/logrus"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/middlewares/capture"
"github.com/hanzoai/ingress/v3/pkg/middlewares/observability"
"github.com/hanzoai/ingress/v3/pkg/observability/logs"
otypes "github.com/hanzoai/ingress/v3/pkg/observability/types"
ingresstls "github.com/hanzoai/ingress/v3/pkg/tls"
"github.com/hanzoai/ingress/v3/pkg/types"
"github.com/hanzoai/ingress/pkg/middlewares/capture"
"github.com/hanzoai/ingress/pkg/middlewares/observability"
"github.com/hanzoai/ingress/pkg/observability/logs"
otypes "github.com/hanzoai/ingress/pkg/observability/types"
ingresstls "github.com/hanzoai/ingress/pkg/tls"
"github.com/hanzoai/ingress/pkg/types"
"go.opentelemetry.io/contrib/bridges/otellogrus"
"go.opentelemetry.io/otel/trace"
)
+3 -3
View File
@@ -25,9 +25,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ptypes "github.com/hanzoai/ingress-parser/types"
"github.com/hanzoai/ingress/v3/pkg/middlewares/capture"
"github.com/hanzoai/ingress/v3/pkg/middlewares/observability"
otypes "github.com/hanzoai/ingress/v3/pkg/observability/types"
"github.com/hanzoai/ingress/pkg/middlewares/capture"
"github.com/hanzoai/ingress/pkg/middlewares/observability"
otypes "github.com/hanzoai/ingress/pkg/observability/types"
"go.opentelemetry.io/collector/pdata/plog/plogotlp"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/codes"
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"errors"
"net/http"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/middlewares"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/middlewares"
)
const (
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/testhelpers"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/testhelpers"
)
func TestNewAddPrefix(t *testing.T) {
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"strings"
goauth "github.com/abbot/go-http-auth"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/middlewares"
"github.com/hanzoai/ingress/v3/pkg/middlewares/accesslog"
"github.com/hanzoai/ingress/v3/pkg/middlewares/observability"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/middlewares"
"github.com/hanzoai/ingress/pkg/middlewares/accesslog"
"github.com/hanzoai/ingress/pkg/middlewares/observability"
"golang.org/x/sync/singleflight"
)
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/testhelpers"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/testhelpers"
)
func TestBasicAuthFail(t *testing.T) {
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"strings"
goauth "github.com/abbot/go-http-auth"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/middlewares"
"github.com/hanzoai/ingress/v3/pkg/middlewares/accesslog"
"github.com/hanzoai/ingress/v3/pkg/middlewares/observability"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/middlewares"
"github.com/hanzoai/ingress/pkg/middlewares/accesslog"
"github.com/hanzoai/ingress/pkg/middlewares/observability"
)
const (
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/hanzoai/ingress/v3/pkg/config/dynamic"
"github.com/hanzoai/ingress/v3/pkg/testhelpers"
"github.com/hanzoai/ingress/pkg/config/dynamic"
"github.com/hanzoai/ingress/pkg/testhelpers"
)
func TestDigestAuthError(t *testing.T) {

Some files were not shown because too many files have changed in this diff Show More