Skip to content

Commit a1af10d

Browse files
committed
Merge branch 'main' into add-cors-policy
Signed-off-by: Yossi Mesika <[email protected]>
2 parents c9bf070 + c8421c4 commit a1af10d

File tree

117 files changed

+2512
-1557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2512
-1557
lines changed

.github/pull_request_template.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

.golangci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ linters:
2929
forbidigo:
3030
forbid:
3131
- pattern: anypb.New
32-
msg: Do not use anypb.New; Use utils.MessageToAny instead.
32+
msg: use utils.MessageToAny instead
33+
- pattern: kclient.New$
34+
msg: use kclient.NewFiltered with discovery namespace ObjectFilter instead
3335
importas:
3436
alias:
3537
- pkg: k8s.io/api/apps/v1

Makefile

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ HELM_CHART_DIR=install/helm/kgateway
526526
HELM_CHART_DIR_CRD=install/helm/kgateway-crds
527527

528528
.PHONY: package-kgateway-charts
529-
package-kgateway-charts: package-kgateway-chart package-kgateway-crd-chart
529+
package-kgateway-charts: package-kgateway-chart package-kgateway-crd-chart ## Package the kgateway charts
530530

531531
.PHONY: package-kgateway-chart
532532
package-kgateway-chart: ## Package the kgateway charts
@@ -540,6 +540,14 @@ package-kgateway-crd-chart: ## Package the kgateway crd chart
540540
$(HELM) package $(HELM_PACKAGE_ARGS) --destination $(TEST_ASSET_DIR) $(HELM_CHART_DIR_CRD); \
541541
$(HELM) repo index $(TEST_ASSET_DIR);
542542

543+
.PHONY: deploy-kgateway-crd-chart
544+
deploy-kgateway-crd-chart: ## Deploy the kgateway crd chart
545+
$(HELM) upgrade --install kgateway-crds $(TEST_ASSET_DIR)/kgateway-crds-$(VERSION).tgz --namespace kgateway-system --create-namespace
546+
547+
.PHONY: deploy-kgateway-chart
548+
deploy-kgateway-chart: ## Deploy the kgateway chart
549+
$(HELM) upgrade --install kgateway $(TEST_ASSET_DIR)/kgateway-$(VERSION).tgz --namespace kgateway-system --create-namespace
550+
543551
.PHONY: lint-kgateway-charts
544552
lint-kgateway-charts: ## Lint the kgateway charts
545553
$(HELM) lint $(HELM_CHART_DIR)
@@ -647,15 +655,32 @@ docker-retag: docker-distroless-retag
647655
endif # distroless images
648656

649657
#----------------------------------------------------------------------------------
650-
# Build assets for kubernetes e2e tests
658+
# Development
651659
#----------------------------------------------------------------------------------
652660

661+
KIND ?= go tool kind
653662
CLUSTER_NAME ?= kind
654663
INSTALL_NAMESPACE ?= kgateway-system
655664

656-
KIND ?= go tool kind
665+
.PHONY: kind-create
666+
kind-create: ## Create a KinD cluster
667+
$(KIND) get clusters | grep $(CLUSTER_NAME) || $(KIND) create cluster --name $(CLUSTER_NAME)
668+
669+
.PHONY: kind-metallb
670+
metallb: ## Install the MetalLB load balancer
671+
./hack/kind/setup-metalllb-on-kind.sh
672+
673+
.PHONY: deploy-kgateway
674+
deploy-kgateway: package-kgateway-charts deploy-kgateway-crd-chart deploy-kgateway-chart ## Deploy the kgateway chart and CRDs
675+
676+
.PHONY: run
677+
run: kind-create kind-build-and-load-standard metallb deploy-kgateway ## Set up complete development environment
678+
679+
#----------------------------------------------------------------------------------
680+
# Build assets for kubernetes e2e tests
681+
#----------------------------------------------------------------------------------
657682

658-
kind-setup:
683+
kind-setup: ## Set up the KinD cluster. Deprecated: use kind-create instead.
659684
VERSION=${VERSION} CLUSTER_NAME=${CLUSTER_NAME} ./hack/kind/setup-kind.sh
660685

661686
kind-load-%-distroless:

api/applyconfiguration/api/v1alpha1/localpolicytargetreferencewithsectionname.go

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/applyconfiguration/api/v1alpha1/ratelimitprovider.go

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/applyconfiguration/api/v1alpha1/tokenbucket.go

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/applyconfiguration/api/v1alpha1/trafficpolicyspec.go

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/applyconfiguration/internal/internal.go

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/applyconfiguration/utils.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/gateway_extensions_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ type RateLimitProvider struct {
8282
// Timeout for requests to the rate limit service.
8383
// +optional
8484
// +kubebuilder:default="20ms"
85-
Timeout string `json:"timeout,omitempty"`
85+
Timeout gwv1.Duration `json:"timeout,omitempty"`
8686
}
8787

8888
// GatewayExtensionSpec defines the desired state of GatewayExtension.

0 commit comments

Comments
 (0)