Sanket Sudake and GitHub
899e6e96d6
cleanup: Remove Opentracing support as no active users ( #2196 )
...
References:
[1] #2193
[2] https://fissionio.slack.com/archives/C3LUX6BBP/p1631706812069300
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2022-07-12 14:52:17 +05:30
Shubham Bansal and GitHub
db13455a7b
Upgrade alpine version from 3.15 to 3.16 ( #2480 )
2022-07-11 16:06:53 +05:30
Sanket Sudake and GitHub
8442e21621
Use common httpserver across fission ( #2409 )
...
* Defining httpserver package to capture httpserver shutdown and
introduces uniform running of http server across codebase.
* Add unit tests for httpserver
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2022-04-14 11:35:58 +05:30
Ankit Chawla and GitHub
6625b55f97
Upgraded alpine version ( #2391 )
2022-03-17 17:18:58 +05:30
Sanket Sudake and GitHub
327275d1a4
Spell fixes across code ( #2288 )
...
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-12-28 18:40:07 +05:30
Sanket Sudake and GitHub
9f1cc0a290
Update alpine base image to 3.14.3 and security fixes ( #2266 )
...
* Update alpine base image to 3.14.3
* Security: Update github.com/opencontainers/image-spec to v1.0.2
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-11-23 10:10:07 +05:30
Sanket Sudake and GitHub
59e876062f
Capture os signals to gracefully shutdown fission components ( #2261 )
...
- Currently, fission components don't handle shutdown signals.
So we don't get any to do the required cleanup before the fission process
exits. Adding signal capture process with cancelling context so
that all dependent processes stop working when the process gets term
signal.
- Set log level to error in otel shutdown function
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com >
2021-11-11 17:02:11 +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
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
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
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
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
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
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
27ec605955
Pre-built docker go module dependency cache image ( #1318 )
2019-09-18 05:07:53 +08:00
Ta-Ching Chen and GitHub
e762471d78
Bump Go version to 1.12 ( #1290 )
2019-08-28 13:47:40 +08:00
Ta-Ching Chen and GitHub
ee18a88664
Update go dependencies ( #1240 )
...
NOTES for update k8s dependencies
In go.mod
require (
k8s.io/api kubernetes-x.x.x
k8s.io/apiextensions-apiserver kubernetes-x.x.x
k8s.io/apimachinery kubernetes-x.x.x
// check here https://github.com/kubernetes/client-go#compatibility-matrix
k8s.io/client-go v12.0.0+incompatible
)
2019-08-23 16:17:12 +08:00
Ta-Ching Chen and GitHub
fe8fa94c77
Enable concurrent CI builds ( #1236 )
...
Currently, only one CI build can be started at the same time due to we only have only one testing cluster. This PR aims to enable multiple concurrent builds can be triggered to reduce the waiting time for CI builds. The major changes listed below:
1. Each build generate unique images for testing and debugging
2. Check whether the testing cluster is being used by another build.
3. Cache docker image & go mod after build finished
4. Improve dockerfiles for reusing docker build cache
2019-07-15 16:33:26 +08:00
Ta-Ching Chen and GitHub
a9dd4bf81a
Fix fetcher of newdeploy pod error out when starting up ( #1210 )
...
* Connect to k8s API server to ensure network connectivity
* Fix readiness probe path
2019-07-14 21:09:35 +08:00
Ta-Ching Chen and GitHub
78a774cfd9
Reuse go docker build cache ( #1218 )
2019-07-06 09:30:27 +08:00
Ta-Ching Chen and GitHub
a0e9a39511
Move packages to proejct/pkg to follow go project folder structure convention ( #1190 )
2019-05-31 16:28:55 +08:00