Sanket Sudake and GitHub
7cd877698b
Enable race detector for unit tests ( #2085 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-23 13:24:10 +05:30
Sanket Sudake and GitHub
b273d10388
Optimize swagger doc generator for Fission CR types ( #2123 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-22 19:05:37 +05:30
Sanket Sudake and GitHub
eeabfb6047
Avoid dumping request headers in router ( #2122 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-22 16:19:39 +05:30
Sanket Sudake and GitHub
9b703bc96a
Support to dump request/response in router when debug mode enabled ( #2119 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-21 20:45:08 +05:30
Sanket Sudake and GitHub
7e9d9618e2
Newdeploy/container function service names should fit in 63 characters ( #2117 )
...
* Add error message on deployment provision failure
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Add 63 characters limit for objects created via newdeploy/container
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-19 15:43:10 +05:30
61e4e6deee
containers as functions ( #1681 )
...
PR adds a new executortype which supports running containers as functions. New CLI under functions is added to create container as functions.
Co-authored-by: Harsh Thakur <harshthakur9030@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-16 18:08:41 +05:30
Sanket Sudake and GitHub
aa3dd68494
Add go pprof support across fission components ( #2112 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-16 13:34:03 +05:30
Sanket Sudake and GitHub
aab65a49a6
Labels and annotation support for functions and environments ( #2113 )
...
1. Support for adding labels and annotations to functions & environment via fission CLI through create & update command.
2. Change ensures labels and annotations assigned to the environment would reflect on pods created via executor type pool manager and new deploy.
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-15 17:22:01 +05:30
Sanket Sudake and GitHub
8c3c84d14b
Covert maps to sync maps in executor fscache to avoid dirty reads ( #2105 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-08 10:40:17 +05:30
Sanket Sudake and GitHub
e8adb3c2f1
Replace controller with generated SharedIndexerInformers ( #2103 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-06 13:56:10 +05:30
Sanket Sudake and GitHub
5e4b8c4cc9
Shared informers ( #2092 )
...
* Use shared informers across executor for fission CRs
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Add informer for configmap and secrets
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Use shared informers in router
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Add shared informer for canary config
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Add sharedinformer for ready pod check
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Refer informer instead of store in resolver
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Run informers before executors
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Add missing canary config handler calls
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Enable websocket test
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Run dump collection always
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-05 20:28:26 +05:30
Sanket Sudake and GitHub
663bc9675e
Updated Go dependencies and added cache in workflows ( #2099 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-04 12:38:27 +05:30
Sanket Sudake and GitHub
59c950eeda
Retrieve pod metrics only if metrics server is running and Go lint fixes ( #2094 )
...
* Retrieve pod metrics only if metrics server is running
Currently we query pod metrics every 30 sec which floods executor logs,
added check which confirms if metrics server is running then only we start
querying pod metrics for identifying CPU utilization.
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Fixed couple of typos and misspells with Go CI
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Remove unnecessary conversions with Go CI
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-28 10:06:32 +05:30
Sanket Sudake and GitHub
2fd4be2ec0
Move informers,clientset and listers to generated package ( #2093 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-26 11:13:46 +05:30
Sanket Sudake and GitHub
ff3b491705
Move clientset,listers,informers to pkg/client from pkg/apis ( #2090 )
...
* Move clientset,listers,informers to pkg/client from pkg/apis
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Update golangci-lint version and timeout
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-24 12:07:14 +05:30
Sanket Sudake and GitHub
b796e579bf
Ignore errors from zap logger Sync ( #2086 )
...
Added golang CI lint
Reference issue: https://github.com/uber-go/zap/issues/880
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-21 11:58:48 +05:30
bc49d08c40
Lint fix ( #2074 )
...
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-18 13:41:23 +05:30
Sanket Sudake and GitHub
f26479e6de
Generate and archive fission cli per OS and platform ( #2071 )
...
* Generate and archive fission cli per OS and platform
* Separate tagging from release script
2021-06-16 13:10:31 +05:30
Harsh Thakur and GitHub
3f0f2e8fe2
Fix golang lint errors ( #2068 )
...
* Fix golang lint errors
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Typo for fields
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Multi error fix
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Multi error fix
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Add nolint to logtostderr errcheck
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
2021-06-15 15:03:42 +05:30
2501681ac1
Add router cache back for performance comparision ( #2036 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2021-06-14 18:30:23 +05:30
bd0232ac0b
Support for multiple HTTP verbs in routes/HTTPTrigger ( #2064 )
...
* Support for multiple HTTP verbs in routes/HTTPTrigger
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Update pkg/apis/core/v1/types.go
Co-authored-by: Harsh Thakur <harshthakur9030@gmail.com >
* Fix fallbackurl for ingress
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
Co-authored-by: Harsh Thakur <harshthakur9030@gmail.com >
2021-06-14 14:48:27 +05:30
f4bdf10ae3
Add a SharedIndexInformer for services and deployments to NewDeploy executor ( #2061 )
...
* Add a SharedIndexInformer for services and deployments to NewDeploy executor.
This brings the NewDeploy executor behaviour into sync with GenericPoolManager behaviour
by caching Kubernetes services and deployments used in per-request function validation.
* Create informers in executer by executor label
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
Co-authored-by: James Sinclair <irgeek@btc.com.au >
2021-06-11 16:52:53 +05:30
77ef6820f8
Enable prefix based routing ( #2047 )
...
* Enable prefix based routing
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Optimize checking condition
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Disable few tests
* disable router modification for now
* run code generator
* Collect fission dump in CI
* Enable all tests back
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Remove unwanted code
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Add prefix support at more places and couple of todo's
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Few more changes
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Improve function trim support
* Support for prefix based urls in fission function test
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* multi route for fission function test
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Improve validations in trigger creations
* Adjust leading / in url from fission
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Change suburl to subpath for function test
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-10 13:54:49 +05:30
e2ec0c4943
Add poolsize warning for environment create/update CLI ( #1837 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-08 11:53:38 +05:30
eca47fb3d5
Move RBAC v1beta1 to v1 ( #2059 )
...
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-08 08:25:52 +05:30
8283073c62
Added body in the error topic header ( #1830 )
...
Signed-off-by: therahulbhati <rjbhati009@gmail.com >
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-07 22:28:11 +05:30
Sanket Sudake and GitHub
b0a293bc24
Change container name for runtime container to environment name in newdeploy ( #2044 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-06-02 16:23:53 +05:30
ec86464280
Keda podspec ( #2021 )
...
* Add podspec to MQT
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Add preupgrade check
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Use zap logger
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-05-27 14:21:34 +05:30
a111dbd5a0
Crds update ( #2033 )
...
* Add code generated using latest code-generator
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Update client-go and respective dependencies to v0.19.2
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Upgrading CRD version
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Minor changes
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Resolved client-go calls as per new generated code
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Function validations fix
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Fix environment and package validations
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Add basic validation to all CRDs
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Remove CRD installation related code
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Modify GHA for CRD installation
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Fix Package and HTTPTrigger validations
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Change Go version in CI to 1.15
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Style: kubebuilder marker change
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Fix test with deprecated fields
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Update kind node image to v1.16.15 in CI
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Update kind node image to v1.19.11 in CI
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Replace context Background with TODO for future implementation
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Optimize initial CRD check code
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Use Get call only to check CRDs
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
* Add kustomize for CRD apply
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-05-26 15:07:03 +05:30
32c2732661
Add a warning if spec is applied on a dirty worktree ( #1966 )
...
* Add a warning if spec is applied on a dirty worktree
* Update go dependencies after rebase
* Use the console package for showing the warning
* Fix merge conflicts
* Handle errors and use better messages
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-05-24 21:36:14 +05:30
2fb79e1355
do not use deprecated functions/methods ( #2027 )
...
Signed-off-by: Gaurav Gahlot <gauravgahlot0107@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-05-21 13:53:28 +05:30
0f1cfeb4a0
Fix log sort order when multiple series are returned ( #1956 )
...
Series are sorted internal by "order by", but the set of all series returned is not. Tried some ways to sort completely on database, found no way .. client side sort works at least
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2021-05-20 07:55:36 +05:30
7d78004b4b
feat: Add image pull policy when create KEDA connector deployments ( #1944 )
...
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2021-05-20 01:22:25 +05:30
Rahul Bhati and GitHub
1ff8711fcb
Serve only one request and garbage collect ( #1978 )
...
Adding once only execution pattern to pool manager based functions. This is for use cases where you don't want to share the samne pod for another execution instance!
2021-05-19 22:48:49 +05:30
Harsh Thakur and GitHub
968658bc73
Add metrics to Reaper ( #2019 )
...
* Add metrics to Reaper
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Change duration to seconds and fix labels
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
2021-05-18 17:30:21 +05:30
Sanket Sudake and GitHub
5c55a8cc15
Add Google Analytics reporting in place of existing custom reporting ( #2015 )
...
Replacing the older analytics with a new Google Analytics based mechanism.
2021-05-12 12:24:27 +05:30
Harsh Thakur and GitHub
1613affa33
Websocket Support: Pod Reaper ( #1982 )
...
Websocket event support for cleaning up pods only after WS connection is terminated. The support for websocket is right now in the environment itself and router simply acts as a proxy for WS communication!
2021-04-27 21:06:22 +05:30
Harsh Thakur and GitHub
baed6abc9c
Maintain CRD folder to keep track of Schemas ( #1938 )
...
Adds CRD Yaml files needed for upgrade as the OpenAPISchema validation has been added.
2021-04-27 17:20:03 +05:30
Rahul Bhati and GitHub
ca8b950c9f
Increase default concurrency ( #1980 )
...
Increase the default concurrency to 500 from 5 set in the function. Usually, it is good to error on the higher side and if needed, users can always fine-tune it to their needs.
2021-04-06 14:52:14 +05:30
Rahul Bhati and GitHub
eb737d0f3e
Feature request per pod ( #1946 )
...
This feature enables routing more than one request to a pod at the same time. This is the first draft of the work and might involve more optimizations later.
2021-03-31 12:35:30 +05:30
Ta-Ching Chen and GitHub
598d4dcbb6
Fix wrong checksum was assigned ( #1968 )
2021-03-29 16:20:21 +05:30
James Sinclair and GitHub
5fefd925c9
Add a SharedIndexInformer for pods to router. ( #1951 )
...
Improving efficiency with cache
2021-03-22 16:50:24 +05:30
Rahul Bhati and GitHub
ad5289f2ef
Add function in payload instead of just metadata ( #1919 )
...
Passing information of function from router to executor is more efficient than calling the K8S API. This change does that instead of passing only metadata and then executor calling the K8S API again.
2021-03-10 14:52:23 +05:30
853e4a7c04
Add fields to pod spec ( #1932 )
...
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2021-02-23 15:16:45 +05:30
b968d9f980
Spec validation option ( #1865 )
...
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com >
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2021-02-08 11:14:38 +05:30
b6edc1f712
Fix status code for rate limit ( #1924 )
...
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com >
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2021-02-05 16:52:43 +05:30
33d7bf2726
Envupdate crossupdate fix ( #1866 )
...
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com >
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2021-02-05 15:39:59 +05:30
452b1e332d
Migrating to keda2.0 ( #1868 )
...
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com >
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2021-02-05 10:28:54 +05:30
04ce54938a
Exit with status code 1 on failed package builds ( #1926 )
...
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com >
2021-02-04 21:57:38 +05:30
f1ce32e9d3
Put message to error topic when exceed max retries in kafka mqt ( #1885 )
...
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com >
2021-02-02 23:20:40 +05:30