Sanket Sudake and GitHub
f09d399c17
Add command to generate Fission CLI docs ( #2247 )
...
* Add command to generate Fission CLI docs
* Minor fixes identified by LanguageTool
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-11-02 17:09:31 +05:30
Eng Zer Jun and GitHub
2f4ec4b2b9
refactor: move from io/ioutil to io and os package ( #2236 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2021-10-23 17:14:12 +05:30
Sanket Sudake and GitHub
40c9a78014
Improve namespace checks in pre-upgrade verification ( #2226 )
...
1. Pass context to required functions
2. Avoid function spec reference namespace check if empty
3. Log errors observed in function reference namespace checks
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-10-13 12:10:09 +05:30
Sanket Sudake and GitHub
6e00aa6cf5
Update docs link to fission.io/docs ( #2210 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-09-28 17:56:43 +05:30
Sanket Sudake and GitHub
1347d73b04
fix: Goreleaser for build and release ( #2189 )
...
* Add goreleaser for building binaries
* Update CONTRIBUTING.md
* Break release scripts for goreleaser
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-09-21 15:29:40 +05:30
Sanket Sudake and GitHub
4a0bd1aa21
fix: Use standard env variables for opentelemtry ( #2194 )
...
Opentelemetry defines standard variables which are supported by multiple observability platforms.
[1] https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md
[2] https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md
By defining support for standard env vars, Fission open telemetry support can be leveraged with different
platforms such as NewRelic, SigNoz, DataDog etc.
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-09-16 17:48:26 +05:30
Sanket Sudake and GitHub
33473a4528
feature: Capture important events with span in fission and add trace id in logs ( #2180 )
...
* Capture important open telemetry events with span in fission
* Add context to missing HTTP calls
* Add Trace ID in logs
* capture trace id in the proxy handler function
* Always registry tracer to get traceID
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-09-15 16:41:59 +05:30
Sanket Sudake and GitHub
a1cbce810e
Add kubernetes objects aware logger with zap ( #2179 )
...
Using controller-runtime zap integration which is aware of Kubernetesobjects and logs only name+namespace of the object when complete runtime.Object compatible type is given to logger.
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-08-31 18:38:14 +05:30
Sanket Sudake and GitHub
c4585c8394
Update go version to 1.16 and kubernetes dev dependencies to 1.21 ( #2168 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-08-19 20:30:27 +05:30
0cc3ecc2e9
Fission meets OpenTelemetry ( #2157 )
...
* add opentracing section and otelCollectorEndpoint
* initialize OTLP exporter
* pkg/controller: changes for context propagation
* pkg/executor: changes for context propagation
* pkg/fetcher: changes for context propagation
* pkg/router: changes for context propagation
* pkg/storagesvc: changes for context propagation
* set no default value for otel collector endpoint
* update readme and add notes to charts
* move common code to pkg/utils/otel
* adding fn and env as attributes
* don't use otelhttp transport for websocket
* URL ignore with common filter UrlsToIgnore
Note: The web socket example does not work when using OTEL HTTP. Here is an issue related to that on open-telemetry/opentelemetry-js-contrib.
Signed-off-by: Gaurav Gahlot <gauravgahlot0107@gmail.com >
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-08-19 13:00:30 +05:30
Sanket Sudake and GitHub
47295309b3
Update alpine base image to 3.14 ( #2160 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-08-12 10:55:49 +05:30
a82281ad1c
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
f3e1f9df90
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
7c71d90d17
Fix race condition in fetcher readyness check ( #2101 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-07-06 10:56:06 +05:30
Sanket Sudake and GitHub
154fe0d447
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
72c89268ec
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
Harsh Thakur and GitHub
6facdac464
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
673ca25cf2
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
4e2632e100
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
1e0baf5f6c
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
4a1fc11b2d
OnlyOnce preupgrade check ( #2037 )
...
* OnlyOnce preupgrade check
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Update preupgradechecks.go
Co-authored-by: Sanket Sudake <sanketsudake@gmail.com >
2021-05-24 14:32:11 +05:30
3880279e89
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
Harsh Thakur and GitHub
f523f8b2e3
Add preupgrade check for RPP ( #2014 )
...
* Add preupgrade check for RPP
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Change from panic to error, and better logging
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Minor changes
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Modify function to return CRD
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
* Remove redundant error logging
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com >
2021-05-18 18:53:32 +05:30
Sanket Sudake and GitHub
2a014e56b0
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
Sanket Sudake and GitHub
dfd8d340a0
Change alpine base image from 3.10 to 3.13 ( #2017 )
...
Alpine 3.10 has reached end-of-support. Using alpine 3.13 instead.
Reference: https://alpinelinux.org/releases/
2021-05-10 12:50:36 +05:30
Harsh Thakur and GitHub
f72bfd8f3a
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
0d93c109fb
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
25acd7fd16
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
e0522cc20e
Updates required for multi-architecture builds. ( #1891 )
...
Co-authored-by: Rahul Bhati <rjbhati009@gmail.com >
2021-02-03 23:03:04 +05:30
fca0a60e5b
Fixed typos across fission repo ( #1832 )
...
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2020-10-16 17:25:11 +05:30
07b294778a
logs: change timestamp to ISO ( #1708 )
...
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com >
2020-09-11 08:04:29 +05:30
Rahul Bhati and GitHub
8e0571c7c9
Fission MQT integration with keda ( #1657 )
...
Fission MQT integration based on Keda with Kafka connector
2020-07-14 21:35:48 +05:30
f6e679e70e
S3 backend for storage service ( #1629 )
...
Co-authored-by: Alok Kumar <rajalokan@gmail.com >
2020-06-15 19:13:13 +05:30
Rahul Bhati and GitHub
2d69542265
Added support for kube-context flag, to specify kubernetes context ( #1595 )
2020-05-11 18:54:06 +05:30
Ta-Ching Chen and GitHub
cc14044b6b
Add message queue service factory ( #1537 )
2020-02-20 23:30:39 +08:00
Ta-Ching Chen and GitHub
75321d306a
Reorganize message queue trigger directory structure ( #1531 )
2020-02-12 15:40:00 +08:00
Ta-Ching Chen and GitHub
7b87d7c52c
Add fake client for local command operation ( #1515 )
...
This PR adds a fake controller client for local CLI operations like
offline spec generation or for unit test purposes. The fake client
now only implements the "Version()" function and more functions
will be implemented once we figure out how to achieve the goals
mentioned above.
2020-01-28 17:38:43 +08:00
Ta-Ching Chen and GitHub
11f9ef1045
Follow kubernetes APIs directory structure ( #1497 )
2020-01-20 17:06:46 +08:00
Ta-Ching Chen and GitHub
bb3e6d6907
Codebase cleanup & optimization ( #1493 )
...
Remove old v1 types that are no longer used and move fetcher structs to fetcher directory.
2020-01-16 16:47:32 +08:00
Ta-Ching Chen and GitHub
574fb55fcf
Use code-generator to generate clientset/informer/lister ( #1492 )
...
To reduce maintenance effort and avoid writing duplicate informer code,
use code-generator to generate clientset/informer/lister code.
2020-01-16 15:18:38 +08:00
Ta-Ching Chen and GitHub
bfbb80efcf
Add controller API client interface ( #1467 )
...
This PR adds an interface for controller API client, it allows us to
implement mock API client for unit testing with ease and we are
able to generate spec file without accessing the real Fission server.
2019-12-16 23:14:14 +08:00
Ta-Ching Chen and GitHub
af10579be9
Fix verbosity flag not show in usage ( #1425 )
2019-11-21 12:36:50 +08:00
Ta-Ching Chen and GitHub
19e693bf52
Set jaeger collector endpoint as an environment variable ( #1399 )
...
To follow 12-factor app rules, make jaeger collector endpoint
as an environment variable instead of CLI args. It's easier to
replace the value in different deployments. Also, we can utilize
valueFrom to get value from the configmap.
2019-11-11 22:41:40 +08:00
Ta-Ching Chen and GitHub
5a9138711b
Fix helm pre-upgrade check failure problem ( #1397 )
...
The helm pre-upgrade check failed due to the program tries to
check whether a multierr is a nil pointer instead of errors it contains.
This PR changes the way the program checks multierr in order not to block the upgrade.
2019-11-11 02:42:08 +08:00
Ta-Ching Chen and GitHub
7640f1199d
Prettify console output message ( #1396 )
2019-11-10 16:42:34 +08:00
Ta-Ching Chen and GitHub
7b6e4318d4
Reorder command flag and add missing flags ( #1394 )
2019-11-10 14:58:29 +08:00
Ta-Ching Chen and GitHub
d443eb1c96
Fix CLI exits with status 0 when error occurs ( #1393 )
2019-11-10 02:43:22 +08:00
Ta-Ching Chen and GitHub
d3d8ff6c1b
Replace flag text with const ( #1391 )
2019-11-09 22:13:35 +08:00
Ta-Ching Chen and GitHub
1888cd2ac7
Migrate from urfave/cli to cobra ( #1385 )
2019-11-08 21:22:00 +08:00
Ta-Ching Chen and GitHub
b9a5588ca9
Update staticcheck version and fix all warnings ( #1381 )
2019-11-05 18:09:12 +08:00