Jorge Turrado Ferrero
9afe55b5fc
chore: Bump go version and deps ( #1305 )
...
* chore: Bump go version and deps
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* Bump golangci
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* Bump golangci
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
---------
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
2025-07-25 11:34:31 +00:00
Jirka Kremser
dc863c6fcd
Add a way to turn off the profiling for all three http add-on components ( #1308 )
...
* Add a way to turn off the profiling for all three http add-on components
Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
* linter - The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.
Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
---------
Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
2025-06-17 13:32:02 +02:00
Jorge Turrado Ferrero
7feda00373
chore: bump go and deps ( #991 )
...
* chore: bump go and deps
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* bump linter
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* bumps deps
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* bumps deps
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* bump deps
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* update CIs
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* update manifests
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* .
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* fix kustomize
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* some updates
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* pin deps
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
* bump deps
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* bump deps
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
---------
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
2024-04-30 21:17:04 +00:00
Jorge Turrado Ferrero
a4f9f39ac5
feat: Support aggregation options ( #961 )
...
* feat: Support aggregation options
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* Updates
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* Updates
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* fix changelog
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* style & codegen
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* add mocks
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* update docs
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* fix e2e test
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* merge issues
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
* update manifests
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
---------
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
2024-04-10 21:41:18 +00:00
Jorge Turrado Ferrero
04204c20bd
chore: bump deps ( #700 )
2023-08-22 14:10:09 +02:00
Pedro Tôrres
a3039f6135
Fix Graceful Shutdown of Interceptor and Scaler ( #732 )
...
Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com>
2023-07-14 10:36:29 +02:00
Pedro Tôrres
d333a0e7f5
PathPrefix-based Routing ( #677 )
2023-06-15 11:51:53 +00:00
Pedro Tôrres
fb17e777c9
HTTPSO-based Routing Table ( #669 )
2023-06-15 00:33:59 +02:00
Pedro Tôrres
1bfc7abcb5
operator: upgrade kubebuilder to v3 ( #626 )
2023-03-09 10:37:20 +01:00
Pedro Tôrres
653ddb64d3
rbac: narrow permissions ( #613 )
...
* fix(rbac): narrow permissions
Signed-off-by: Pedro Tôrres <pedrotorres@microsoft.com>
* feat(rbac): generate manifests with kubebuilder
Signed-off-by: Pedro Tôrres <pedrotorres@microsoft.com>
---------
Signed-off-by: Pedro Tôrres <pedrotorres@microsoft.com>
Signed-off-by: Pedro Tôrres <t0rr3sp3dr0@gmail.com>
2023-03-02 08:36:55 +01:00
Pedro Tôrres
1bd8ba1180
routing: lookup host without port ( #609 )
...
Co-authored-by: Pedro Tôrres <pedrotorres@microsoft.com>
2023-02-25 01:11:23 +00:00
Jorge Turrado Ferrero
b5c41c8c2a
chore: add golangci-lint ( #584 )
2023-01-27 08:52:15 +01:00
Jorge Turrado Ferrero
3f326b1b50
chore: bump deps ( #581 )
...
Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com>
2023-01-25 09:38:45 +00:00
leska-j
7b8aaa96f1
Fix scaler crash ( #399 )
...
Signed-off-by: Jakub Leska <jakub@leska.me>
Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2022-02-15 19:17:01 +00:00
Aaron Schlesinger
eb4e1e9f42
Allowing cluster-global operation ( #269 )
...
* Allowing cluster-global operation
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* passing less unnecessary data in the operator
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* setting namespace
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* updating tests:
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Updating deployment cache interfaces
To accommodate multi-namespace gets and watches
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* starting on deployment cache informer
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* switching over to informer-based deployment cache
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* fixing test compile errors and merging fake and in-memory deployment caches
Signed-off-by: Aaron <aaron@ecomaz.net>
* fixing tests
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* fixing more compile errs
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* improving logging, and several other small changes
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* go mod tidy
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Adding config validation
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* improving ns and svc name var names to indicate interceptor
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* running go mod tidy
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* removing unused code
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* passing a function to transform target to in-cluster URL
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* not requiring namespace for operator
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* splitting namespace config for operator into watch and current
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* removing appInfo, passing current namespace everywhere in its place
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* using proper namespace when creating scaled object
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* allowing xkcd chart to set ingress namespace
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* printing namespace in error
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* using proper fully-qualified hostname of external scaler in scaledobject
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding note on cluster-global vs. namespaced mode
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding note about installing the xkcd chart in cluster-global mode
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* fixing hostname test
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* merging scaler queue counts with routing table hosts. removing merge functionality from interceptors
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* fix assumption in tests that queue has all hosts from routing table
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding test for MergeCountsWithRoutingTable
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* sleep for longer to wait for server to start
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding handler test for merging hosts
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding test to GetMetrics test cases for host not in queue pinger
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
2022-01-13 14:50:49 -08:00
laminar
201c7cb7bf
Add configMap informer ( #326 )
...
Signed-off-by: laminar <fangtian@kubesphere.io>
Signed-off-by: laminar <fangtian@kubesphere.io>
Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2021-12-14 10:06:27 -08:00
Aaron Schlesinger
aa4e0a82b7
Specifying target in scaler for specific host ( #242 )
...
* multi-tenant interceptor and scaler
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* specifying host in XKCD ingress
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* routing the xkcd chart to the interceptor properly
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* check host header first
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* sending true active response in stream
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* passing target pending requests through to the underlying ScaledObject (so the scaler can read it later)
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* removing broken target pending requests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* using getHost in proxy handler
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding integration test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding more tests to the integration test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* splitting up integration tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* more checks
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* mark new test TODO
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* expanding interceptor integration tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* error messages
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* refactor test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* more test improvements
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* rolling back target pending requests in ScaledObject
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* removing target metric error. it's not used anymore
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* improving waitFunc test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Refactoring the deployment cache to add better error handing and resilience.
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding doc comment
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* refactoring deploy cache and adding tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Using interfaces for deployment watch & list
this makes tests easier
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding more deploy cache tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Fixing up TestK8sDeploymentCacheRewatch
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* shutting down everything else when one thing errors, and adding a deployments cache endpoint
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* removing commented code
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* clarifying deployment cache JSON output, and simplifying deployment watch function
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding TODO tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* error logs and restoring the count middleware
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* using consistent net/http package name throughout main.go
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Refactoring deployment cache deployment storage
Also, running go mod tidy and adding new TODO (i.e. failing) tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* using deployment.Status.ReadyReplicas, instead of just replicas
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* integration_tets ==> proxy_handlers_integration_test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding some resilience to tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding deployment cache endpoint documentation
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Specifying target size for specific host in scaler
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* sending targetPendingRequests to scalers via the routing table
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* using routing table reader interface in scaler
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2021-09-13 17:59:01 +00:00
Aaron Schlesinger
c211da9bd1
Multi-tenant interceptor and scaler ( #206 )
...
* multi-tenant interceptor and scaler
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* specifying host in XKCD ingress
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* routing the xkcd chart to the interceptor properly
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* check host header first
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* sending true active response in stream
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* passing target pending requests through to the underlying ScaledObject (so the scaler can read it later)
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* removing broken target pending requests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* using getHost in proxy handler
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding integration test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding more tests to the integration test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* splitting up integration tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* more checks
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* mark new test TODO
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* expanding interceptor integration tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* error messages
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* refactor test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* more test improvements
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* rolling back target pending requests in ScaledObject
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* removing target metric error. it's not used anymore
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* improving waitFunc test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Refactoring the deployment cache to add better error handing and resilience.
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding doc comment
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* refactoring deploy cache and adding tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Using interfaces for deployment watch & list
this makes tests easier
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding more deploy cache tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Fixing up TestK8sDeploymentCacheRewatch
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* shutting down everything else when one thing errors, and adding a deployments cache endpoint
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* removing commented code
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* clarifying deployment cache JSON output, and simplifying deployment watch function
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding TODO tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* error logs and restoring the count middleware
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* using consistent net/http package name throughout main.go
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Refactoring deployment cache deployment storage
Also, running go mod tidy and adding new TODO (i.e. failing) tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* using deployment.Status.ReadyReplicas, instead of just replicas
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* integration_tets ==> proxy_handlers_integration_test
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding some resilience to tests
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding deployment cache endpoint documentation
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* running the global test target with sh.RunV
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* adding timeout to magefile test target
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* finishing one TODO test and adding issue for the rest:
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2021-09-03 10:19:20 +02:00