Files
zeekay 2612fa43eb rebrand: full Go source rename traefik → ingress/hanzo
376 files. All tests pass. Breaking wire changes:
- X-Traefik-Fast-Proxy → X-Ingress-Fast-Proxy
- X-Traefik-Router → X-Ingress-Router
- Metric prefix traefik.* → ingress.*
- ACME user agent containous-traefik → hanzoai-ingress
- Plugin manifest .traefik.yml → .ingress.yml
- Recovery middleware traefik-internal-recovery → ingress-internal-recovery

Copyright: Traefik Labs → Hanzo AI Inc (all headers)
Test domains: *.traefik.wtf → *.ingress.test
Doc URLs: doc.traefik.io → hanzo.ai/docs/ingress
Internal vars: traefikService* → ingressService*, etc.
Docker refs: traefik:latest → ghcr.io/hanzoai/ingress:latest
100+ YAML/JSON test fixtures updated

Remaining 30 refs are paerser library constraints
(traefik.configfile flag, TRAEFIK_* env prefix) and
digest auth hash-bound realm values. Cannot change
without forking github.com/traefik/paerser.
2026-03-19 02:04:13 -07:00

45 lines
2.1 KiB
Go

package dynamic
// +k8s:deepcopy-gen=true
// TCPMiddleware holds the TCPMiddleware configuration.
type TCPMiddleware struct {
InFlightConn *TCPInFlightConn `json:"inFlightConn,omitempty" toml:"inFlightConn,omitempty" yaml:"inFlightConn,omitempty" export:"true"`
// Deprecated: please use IPAllowList instead.
IPWhiteList *TCPIPWhiteList `json:"ipWhiteList,omitempty" toml:"ipWhiteList,omitempty" yaml:"ipWhiteList,omitempty" export:"true"`
IPAllowList *TCPIPAllowList `json:"ipAllowList,omitempty" toml:"ipAllowList,omitempty" yaml:"ipAllowList,omitempty" export:"true"`
}
// +k8s:deepcopy-gen=true
// TCPInFlightConn holds the TCP InFlightConn middleware configuration.
// This middleware prevents services from being overwhelmed with high load,
// by limiting the number of allowed simultaneous connections for one IP.
// More info: https://hanzo.ai/docs/ingress/v3.6/middlewares/tcp/inflightconn/
type TCPInFlightConn struct {
// Amount defines the maximum amount of allowed simultaneous connections.
// The middleware closes the connection if there are already amount connections opened.
// +kubebuilder:validation:Minimum=0
Amount int64 `json:"amount,omitempty" toml:"amount,omitempty" yaml:"amount,omitempty" export:"true"`
}
// +k8s:deepcopy-gen=true
// TCPIPWhiteList holds the TCP IPWhiteList middleware configuration.
//
// Deprecated: please use IPAllowList instead.
type TCPIPWhiteList struct {
// SourceRange defines the allowed IPs (or ranges of allowed IPs by using CIDR notation).
SourceRange []string `json:"sourceRange,omitempty" toml:"sourceRange,omitempty" yaml:"sourceRange,omitempty"`
}
// +k8s:deepcopy-gen=true
// TCPIPAllowList holds the TCP IPAllowList middleware configuration.
// This middleware limits allowed requests based on the client IP.
// More info: https://hanzo.ai/docs/ingress/v3.6/middlewares/tcp/ipallowlist/
type TCPIPAllowList struct {
// SourceRange defines the allowed IPs (or ranges of allowed IPs by using CIDR notation).
SourceRange []string `json:"sourceRange,omitempty" toml:"sourceRange,omitempty" yaml:"sourceRange,omitempty"`
}