generated from kedacore/github-template
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New ScalingSet CRD to deploy isolated interceptors+scalers
Signed-off-by: Jorge Turrado <[email protected]>
- Loading branch information
Showing
70 changed files
with
5,475 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -362,3 +362,6 @@ admin/Cargo.lock | |
*.csr | ||
*.srl | ||
*.ext | ||
|
||
# test results | ||
test-report.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,9 @@ GO_LDFLAGS="-X github.com/kedacore/http-add-on/pkg/build.version=${VERSION} -X g | |
GIT_COMMIT ?= $(shell git rev-list -1 HEAD) | ||
GIT_COMMIT_SHORT ?= $(shell git rev-parse --short HEAD) | ||
|
||
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. | ||
ENVTEST_K8S_VERSION = 1.29 | ||
|
||
define DOMAINS | ||
basicConstraints=CA:FALSE | ||
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment | ||
|
@@ -71,13 +74,19 @@ clean-test-certs: | |
rm -r certs || true | ||
|
||
# Test targets | ||
test: fmt vet test-certs | ||
go test ./... | ||
|
||
e2e-test: | ||
.PHONY: install-test-deps | ||
install-test-deps: | ||
go install github.com/jstemmer/go-junit-report/v2@latest | ||
go install gotest.tools/gotestsum@latest | ||
|
||
test: fmt vet test-certs install-test-deps envtest | ||
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" gotestsum --junitfile test-report.xml | ||
|
||
e2e-test: install-test-deps | ||
go run -tags e2e ./tests/run-all.go | ||
|
||
e2e-test-local: | ||
e2e-test-local: install-test-deps | ||
SKIP_SETUP=true go run -tags e2e ./tests/run-all.go | ||
|
||
# Docker targets | ||
|
@@ -160,6 +169,10 @@ lint: ## Run golangci-lint against code. | |
pre-commit: ## Run static-checks. | ||
pre-commit run --all-files | ||
|
||
ENVTEST = $(shell pwd)/bin/setup-envtest | ||
envtest: ## Install envtest-setup if necessary. | ||
GOBIN=$(shell pwd)/bin go install sigs.k8s.io/controller-runtime/tools/setup-envtest | ||
|
||
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen | ||
controller-gen: ## Download controller-gen locally if necessary. | ||
GOBIN=$(shell pwd)/bin go install sigs.k8s.io/controller-tools/cmd/[email protected] | ||
|
361 changes: 361 additions & 0 deletions
361
config/crd/bases/http.keda.sh_clusterhttpscalingsets.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.