* upgrading all dockerfile Go versions to 1.16
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* creating new targets for the example/test HTTPScaledObject
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* moving external scaler generated files
the scaler uses the server stubs but the operator now needs to use the client, so it needs to move out of the scaler binary
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* progress on code to wait for scaler
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* checking deployment replicas:
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Adding health check endpoints to the scaler
Also centralizing config for the scaler with envconfig
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Closing both the gRPC server and HTTP healthcheck server on context cancel/timeout
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding util functions for adding liveness/readiness probes
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* fixing var name
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding readiness and liveness probes, and tests for it
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* printing output for scaler tests, even when they fail
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* simplifying scaler health check code
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding health check test code to scaler
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Tidy mod file
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
* Remove KEDA unstructured types
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
* Update tests to use go 1.16
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
* Add missing check and return errors
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
* Add error handling
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* Scaling up the interceptor
Fixes https://github.com/kedacore/http-add-on/issues/30
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Specifying min and max replicas on ScaledObjects
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* respecting the min and max replica count
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding new enum types to kubebuilder definition
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* re-generating CRD
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding check for interceptor scaled object to tests
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* generalizing unstructured parsing code in test
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Allowing users to scale an existing deployment
Fixes https://github.com/kedacore/http-add-on/issues/35
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* checking custom deployment info
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Adding tests for new deployment logic
Also generalizing test "infrastructure" code
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* regenerating code
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Remove functionality to auto-create deployments and services
Users provide a scale target ref, which is the name of the
deployment to scale and the service to route to. They are required
to have already deployed these things already
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Adding more docs
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* regenerating with 0.5.0 controller-gen
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* fixing compile err
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Add min and max replicas
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
* Go fmt
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
* Update example
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
* Fix wrong value key
Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
* Using internal struct for replicas
Signed-off-by: Lucas Santos <hello@lsantos.dev>
* Update manifests
Signed-off-by: Lucas Santos <hello@lsantos.dev>
* Fix wrong naming
Signed-off-by: Lucas Santos <hello@lsantos.dev>
* Create tests
Signed-off-by: Lucas Santos <hello@lsantos.dev>
Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
* logging
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Adding helm delete functionality to makefile
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Splitting up functionality, logs and more
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* checking error fetching services
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Using the proper service name
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* enabling RBAC on endpoints so the scaler can access interceptor queue sizes
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* logs and TODOs
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* using IPs instead of hostnames in external scaler
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* backing off polling interval
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* logging on external scaler startup
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* removing superfluous logging in scaler
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* port and updating namespaces
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* the right namespace
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding grpc reflection
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Makefile targets for creating/deleting example HTTPScaledObject
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Removing namespace from example HTTPScaledObject file
it is specified when you add it from the make target
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* adding keda creation logic to Makefile (and install doc)
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* helm delete keda target
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
* Passing queue pinger around as a pointer
Otherwise the queue lengths are always reported as 0
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>