mirror of
https://github.com/hanzoai/ingress.git
synced 2026-10-20 15:07:40 +00:00
Removes all "traefik" branding/paths/env/comments from the shipping
surface while keeping load-bearing config schema and external deps intact.
Paths / binary:
- cmd/traefik/ -> cmd/ingress/ (traefik.go->ingress.go, etc.); merged out
the empty cmd/ingress/generate.go stub. Build refs updated in Dockerfile,
Makefile, .goreleaser.yml.tmpl, script/crossbinary-default.sh, README.
- contrib/systemd/traefik.service -> ingress.service (Hanzo Ingress unit,
/etc/ingress paths, hanzo-ingress binary).
- contrib/grafana/traefik*.json -> ingress*.json; metric queries
traefik_* -> ingress_* (now match the engine's ingress_ prefix) + titles.
- script/gcg/traefik-*.toml -> ingress-*.toml; Owner/Repo -> hanzoai/ingress.
Code/config branding (comments + non-schema strings):
- doc.go, mount.go, client/router.go, zap_backend.go, forward_backend.go,
register.go: "Traefik" -> "the ingress"/"Hanzo Ingress"; corrected the
annotation example to ingress.kubernetes.io/.
- ingress.sample.{toml,yml}: header + log + entryPoint example.
- pkg/config/dynamic/fixtures/sample.toml comment.
- pkg/redactor/testdata example+expected: /etc/traefik/traefik.toml ->
/etc/ingress/ingress.toml, TraefikLogsFile -> IngressLogsFile (both files
kept identical so the redactor golden test stays green).
- .golangci.yml importas aliases traefik* -> ingress* and the stale
crd/traefikio path -> crd/hanzoai; unused-var exclude ingressVersion.
- .dockerignore / .gitignore: drop stale /traefik artifacts.
- script/code-gen.sh: PROJECT_MODULE -> github.com/hanzoai/ingress,
v1alpha1 path -> crd/hanzoai, CRD output -> hanzo.ai_*.yaml /
01-ingress-crd.yml.
- script/deploy.sh: drop the upstream traefik-library-image push.
- Removed dead, disabled upstream docs-publish workflow
(.github/workflows/documentation.yaml, pushed to traefik/doc).
- LLM.md: rewrote rebrand notes; documented load-bearing "traefik" that
stays (external imports, hash-bound realm, upstream issue URL, license
attribution) and vendored upstream docs/webui/changelog as out of scope.
Load-bearing "traefik" intentionally KEPT (not branding):
- external Go modules github.com/traefik/{oxy,yaegi,grpc-web};
- digest_auth_test.go htdigest realm "traefik" (invalidates the hashes);
- consul_test.go upstream issue URL #8092 (provenance citation);
- LICENSE.md + boilerplate.go.tmpl Containous/Traefik Labs copyright
(MIT attribution; Hanzo AI appended);
- integration/ test fixtures (traefik/whoami images, rawdata-*.json
golden entrypoint names, nomad traefik.* tags) — test-only, semantics-
sensitive; out of scope for this pass.
Verify: `go build $(go list ./... | grep -v /webui)` passes; redactor /
config/dynamic / nomad / server/service tests pass. The webui go:embed
failure and the kubernetes/crd test (ingress.k8s.io group mismatch) are
pre-existing on main, not caused by this rebrand.
45 lines
1.2 KiB
Bash
Executable File
45 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if [ -z "$VERSION" ]; then
|
|
VERSION=$(git rev-parse HEAD)
|
|
fi
|
|
|
|
if [ -z "$CODENAME" ]; then
|
|
CODENAME=hanzo
|
|
fi
|
|
|
|
if [ -z "$DATE" ]; then
|
|
DATE=$(date -u '+%Y-%m-%d_%I:%M:%S%p')
|
|
fi
|
|
|
|
echo "Building ${VERSION} ${CODENAME} ${DATE}"
|
|
|
|
GIT_REPO_URL='github.com/hanzoai/ingress/v3/pkg/version'
|
|
GO_BUILD_CMD="go build -ldflags"
|
|
GO_BUILD_OPT="-s -w -X ${GIT_REPO_URL}.Version=${VERSION} -X ${GIT_REPO_URL}.Codename=${CODENAME} -X ${GIT_REPO_URL}.BuildDate=${DATE}"
|
|
|
|
# Build amd64 binaries
|
|
OS_PLATFORM_ARG=(linux windows darwin)
|
|
OS_ARCH_ARG=(amd64)
|
|
for OS in "${OS_PLATFORM_ARG[@]}"; do
|
|
BIN_EXT=''
|
|
if [ "$OS" == "windows" ]; then
|
|
BIN_EXT='.exe'
|
|
fi
|
|
for ARCH in "${OS_ARCH_ARG[@]}"; do
|
|
echo "Building binary for ${OS}/${ARCH}..."
|
|
GOARCH=${ARCH} GOOS=${OS} CGO_ENABLED=0 ${GO_BUILD_CMD} "${GO_BUILD_OPT}" -o "dist/hanzo-ingress_${OS}-${ARCH}${BIN_EXT}" ./cmd/ingress/
|
|
done
|
|
done
|
|
|
|
# Build arm64 binaries
|
|
OS_PLATFORM_ARG=(linux)
|
|
OS_ARCH_ARG=(arm64)
|
|
for OS in "${OS_PLATFORM_ARG[@]}"; do
|
|
for ARCH in "${OS_ARCH_ARG[@]}"; do
|
|
echo "Building binary for ${OS}/${ARCH}..."
|
|
GOARCH=${ARCH} GOOS=${OS} CGO_ENABLED=0 ${GO_BUILD_CMD} "${GO_BUILD_OPT}" -o "dist/hanzo-ingress_${OS}-${ARCH}" ./cmd/ingress/
|
|
done
|
|
done
|