-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to customize HPA name #3068
Conversation
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com> Signed-off-by: Aviad Levy <aviadlevy1@gmail.com>
@aviadlevy you should also run |
No git changes after keda on main [⇡] via 🐹 v1.17.10 ➜ make build
/Users/aviadl/Code/keda/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
go fmt ./...
go vet ./...
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X=github.com/kedacore/keda/v2/version.GitCommit=64647753313420a59b0c0c2f764e8347c9770dce -X=github.com/kedacore/keda/v2/version.Version=main" -o bin/keda main.go
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X=github.com/kedacore/keda/v2/version.GitCommit=64647753313420a59b0c0c2f764e8347c9770dce -X=github.com/kedacore/keda/v2/version.Version=main" -o bin/keda-adapter adapter/main.go What am I missing? What did you expected to see? |
What about The new field should be present in the CRD yaml file. |
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
|
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Would be nice if you could keep here in the PR only relevant changes. Would you mind opening a new PR with the extra files? We need to update them anyway. Thanks! |
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Kept only relevant changes. |
/run-e2e |
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
1c57a93
to
3ef9f29
Compare
Added e2e tests 😎 |
/run-e2e custom_hpa* |
I increased the time waiting for hpa in e2e. locally the e2e is working (see below), but probably on the github runner it takes more time for things to work? ➜ go test -v ./scalers_go/custom_hpa_name/custom_hpa_name_test.go
=== RUN TestCustomToDefault
custom_hpa_name_test.go:136: --- validate hpa is with custom name ---
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:140: --- change hpa name ---
custom_hpa_name_test.go:144: --- validate new hpa is with default name ---
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:148: --- validate hpa with custom name does not exists ---
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
--- PASS: TestCustomToDefault (14.00s)
=== RUN TestDefaultToCustom
custom_hpa_name_test.go:136: --- validate hpa is with default name ---
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:140: --- change hpa name ---
custom_hpa_name_test.go:144: --- validate new hpa is with custom name ---
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:148: --- validate hpa with default name does not exists ---
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
custom_hpa_name_test.go:171: Waiting for hpa creation
--- PASS: TestDefaultToCustom (12.36s)
PASS
ok command-line-arguments 26.894s |
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
/run-e2e custom_hpa* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Just a nit in imports.
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
/run-e2e custom_hpa* |
@zroubalik @JorTurFer |
I think is ready, at least from my side I don't see any other thing to be done, let's wait till @zroubalik too |
There's a conflict brought by another PR :( could you please fix that? Then we can merge this PR. Thanks for the contribution! |
# Conflicts: # CHANGELOG.md
/run-e2e custom_hpa* |
Signed-off-by: aviadlevy <aviadlevy1@gmail.com>
/run-e2e custom_hpa* |
thanks for this contribution! ❤️ |
Thanks. it was fun and very enriching. |
Provide a description of what has been changed
Checklist
Fixes #3057
Docs PR kedacore/keda-docs#768