Skip to content

Commit b8dfa61

Browse files
committed
Merge branch 'release-v2-dev' into feat/suppport-full-sync
2 parents 9fd7cd0 + 4248014 commit b8dfa61

File tree

22 files changed

+957
-69
lines changed

22 files changed

+957
-69
lines changed

.github/workflows/conformance-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
./get_helm.sh
4040
4141
conformance-test:
42+
timeout-minutes: 60
4243
needs:
4344
- prepare
4445
runs-on: buildjet-2vcpu-ubuntu-2204

Makefile

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ GATEAY_API_VERSION ?= v1.2.0
1515
DASHBOARD_VERSION ?= dev
1616
TEST_TIMEOUT ?= 45m
1717

18+
# CRD Reference Documentation
19+
CRD_REF_DOCS_VERSION ?= v0.1.0
20+
CRD_REF_DOCS ?= $(LOCALBIN)/crd-ref-docs
21+
CRD_DOCS_CONFIG ?= docs/crd/config.yaml
22+
CRD_DOCS_OUTPUT ?= docs/crd/api.md
23+
1824
export KUBECONFIG = /tmp/$(KIND_NAME).kubeconfig
1925

2026
# go
@@ -29,7 +35,6 @@ GOBIN=$(shell go env GOPATH)/bin
2935
else
3036
GOBIN=$(shell go env GOBIN)
3137
endif
32-
3338
GOOS ?= linux
3439
GOARCH ?= amd64
3540

@@ -115,7 +120,7 @@ download-api7ee3-chart:
115120

116121
.PHONY: conformance-test
117122
conformance-test:
118-
DASHBOARD_VERSION=$(DASHBOARD_VERSION) go test -v ./test/conformance -tags=conformance
123+
DASHBOARD_VERSION=$(DASHBOARD_VERSION) go test -v ./test/conformance -tags=conformance -timeout 60m
119124

120125
.PHONY: lint
121126
lint: sort-import golangci-lint ## Run golangci-lint linter
@@ -346,3 +351,29 @@ helm-build-crds:
346351
sort-import:
347352
@./scripts/goimports-reviser.sh >/dev/null 2>&1
348353
.PHONY: sort-import
354+
355+
.PHONY: generate-crd-docs
356+
generate-crd-docs: manifests ## Generate CRD reference documentation in a single file
357+
@mkdir -p $(dir $(CRD_DOCS_OUTPUT))
358+
@echo "Generating CRD reference documentation"
359+
@$(CRD_REF_DOCS) \
360+
--source-path=./api \
361+
--config=$(CRD_DOCS_CONFIG) \
362+
--renderer=markdown \
363+
--templates-dir=./docs/template \
364+
--output-path=$(CRD_DOCS_OUTPUT) \
365+
--max-depth=100
366+
@echo "CRD reference documentation generated at $(CRD_DOCS_OUTPUT)"
367+
368+
.PHONY: generate-crd-docs-grouped
369+
generate-crd-docs-grouped: manifests ## Generate CRD reference documentation grouped by API group
370+
@mkdir -p docs/crd/groups
371+
@echo "Generating CRD reference documentation (grouped by API)"
372+
@$(CRD_REF_DOCS) \
373+
--source-path=./api \
374+
--config=$(CRD_DOCS_CONFIG) \
375+
--renderer=markdown \
376+
--templates-dir=./docs/template \
377+
--output-path=docs/crd/groups \
378+
--output-mode=group
379+
@echo "CRD reference documentation generated in docs/crd/groups directory"

api/adc/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ type RewriteConfig struct {
446446
}
447447

448448
type Headers struct {
449-
Set map[string]string `json:"set" yaml:"set"`
450-
Add map[string]string `json:"add" yaml:"add"`
451-
Remove []string `json:"remove" yaml:"remove"`
449+
Set map[string]string `json:"set,omitempty" yaml:"set,omitempty"`
450+
Add map[string]string `json:"add,omitempty" yaml:"add,omitempty"`
451+
Remove []string `json:"remove,omitempty" yaml:"remove,omitempty"`
452452
}
453453

454454
// ResponseRewriteConfig is the rule config for response-rewrite plugin.

0 commit comments

Comments
 (0)