Inspektor Gadget v0.14.0 Release Notes.
Heads Up!
local-gadget was renamed to ig (#1390), please be sure you're using the new binary if you have installed an old version of local-gadget
The most relevant changes for this version are:
- Making gadgets self-contained, adding metadata, operators, interfaces and more by @flyth in #1281
- Update to golang 1.19 by @mauriciovasquezbernal in #1330
- trace capabilities: add syscall column by @alban in #1322
- top/ebpf: Print all information about processes by @mauriciovasquezbernal in #1361
- Rename local-gadget to ig by @burak-ok in #1390
Other changes are:
General Improvements
- build(deps): bump actions/cache from 3.2.4 to 3.2.5 by @dependabot in #1321
- build(deps): bump docker/build-push-action from 3 to 4 by @dependabot in #1309
- top/tcp: Uniform target pid variable by @mauriciovasquezbernal in #1318
- container-collection: support ephemeral containers by @alban in #1327
- Improve gadgettracermanager -dump by @claudiamarcubina in #1341
- go: bump github.com/containers/common from 0.46.0 to 0.51.0 by @dependabot in #1347
- go: bump github.com/onsi/gomega from 1.20.1 to 1.27.1 by @dependabot in #1349
- go: bump k8s.io/apimachinery from 0.25.4 to 0.26.1 by @dependabot in #1346
- kubectl-gadget: Remove viper by @mqasimsarfraz in #1351
- RFC: pkg/columns: Use testify by @mauriciovasquezbernal in #1355
- Better validation for -o columns by @mauriciovasquezbernal in #1354
- trace capabilities: add new fields by @alban in #1337
- go: bump k8s.io/api from 0.25.4 to 0.26.1 by @dependabot in #1366
- go: bump github.com/docker/docker from 20.10.23+incompatible to 23.0.1+incompatible by @dependabot in #1364
- go: bump google.golang.org/grpc from 1.51.0 to 1.53.0 by @dependabot in #1365
- top/ebpf: Rename Pids to Processes in Stats struct by @mauriciovasquezbernal in #1362
- go: bump github.com/moby/moby from 20.10.20+incompatible to 23.0.1+incompatible by @dependabot in #1367
- go: bump k8s.io/apiextensions-apiserver from 0.25.0 to 0.26.1 by @dependabot in #1348
- pkg/snapshotcombiner: introduce SnapshotCombiner to handle combining and caching stats by @flyth in #898
- go: bump github.com/vishvananda/netns from 0.0.0-20210104183010-2eb08e3e575f to 0.0.4 by @dependabot in #1375
- go: bump github.com/opencontainers/runtime-spec from 1.0.3-0.20220825212826-86290f6a00fb to 1.1.0-rc.1 by @dependabot in #1377
- go: bump k8s.io/cli-runtime from 0.25.4 to 0.26.1 by @dependabot in #1373
- go: bump github.com/containerd/nri from 0.1.1-0.20210619071632-28f76457b672 to 0.3.0 by @dependabot in #1374
- go: bump sigs.k8s.io/security-profiles-operator from 0.3.1-0.20211122222133-6e12fe5f2daa to 0.6.0 by @dependabot in #1376
- cmd: Check if output mode is valid before running the gadget by @mauriciovasquezbernal in #1371
- go.mod: update cilium/ebpf by @alban in #1323
- go: bump github.com/onsi/gomega from 1.27.1 to 1.27.2 by @dependabot in #1381
- go: bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot in #1380
- go: bump k8s.io/cri-api from 0.25.3 to 0.26.1 by @dependabot in #1383
- go: bump k8s.io/cli-runtime from 0.26.1 to 0.26.2 by @dependabot in #1388
- go: bump k8s.io/apiextensions-apiserver from 0.26.1 to 0.26.2 by @dependabot in #1387
- go: bump github.com/giantswarm/crd-docs-generator from 0.7.1 to 0.11.0 by @dependabot in #1379
- go: bump sigs.k8s.io/controller-runtime from 0.14.4 to 0.14.5 by @dependabot in #1391
- Dockerfiles: Use latest kinvolk/bcc as base image for gadget default one by @eiffel-fl in #1372
- dependabot: Specify Dockerfiles directory. by @eiffel-fl in #1393
- go: bump k8s.io/cri-api from 0.25.3 to 0.26.2 by @dependabot in #1392
Bug Fixes
- entrypoint.sh: fix dpkg error on alpine by @alban in #1338
- trace network gadget: fix typo by @alban in #1339
- pkg/operators: Add tests for SortOperators by @burak-ok in #1359
Documentation Improvements
- docs: Update minikube documentation. by @eiffel-fl in #1329
- Give back demos from past presentation by @eiffel-fl in #1282
- docs: Add releasing document by @mauriciovasquezbernal in #1315
- docs: Add guide for 'How to write a Gadget' by @flyth in #1356
Testing and Continue Integration
- CI: Fix docker upgrade for cri-o by @mqasimsarfraz in #1332
- CI: Use trivy for docker image vulnerability scanning by @mqasimsarfraz in #1335
- ci: Add dependabot CVE checks by @eiffel-fl in #1331
- ci: bump actions/cache from 3.2.5 to 3.2.6 by @dependabot in #1345
- ci: Only run dependencies checks for PR on PR. by @eiffel-fl in #1352
- Add action to check for broken links by @mauriciovasquezbernal in #1353
- CI: Fix test report status/conclusion by @mqasimsarfraz in #1360
- ci: Explain why dependencies checks for PR should only be run on PR. by @eiffel-fl in #1363
- integration: Print logs when test fails by @mauriciovasquezbernal in #1369
- testutils: Print stderr logs for docker containers by @mqasimsarfraz in #1385
New Contributors
- @claudiamarcubina made their first contribution in #1341
Statistics
With regard to v0.13.0, we modified 307 files, added 9540 lines of code and removed 4695.
We are currently refactoring Inspektor Gadget hence the high number of added lines, the next release should nonetheless present a high number of removed ones.
As today, Inspektor Gadget relies on the following languages:
| Language | files | blank | comment | code |
|---|---|---|---|---|
| C/C++ Header | 34 | 27972 | 114 | 208946 |
| Go | 483 | 9454 | 10493 | 44213 |
| Markdown | 80 | 1502 | 0 | 5285 |
| SVG | 8 | 1 | 2 | 5143 |
| C | 28 | 748 | 444 | 3068 |
| YAML | 48 | 81 | 193 | 2254 |
| make | 13 | 109 | 52 | 436 |
| Bourne Shell | 24 | 122 | 200 | 376 |
| Perl | 1 | 18 | 13 | 54 |
| Protocol Buffers | 1 | 16 | 17 | 47 |
| JSON | 3 | 0 | 0 | 45 |
| Bourne Again Shell | 1 | 4 | 3 | 16 |
| Dockerfile | 2 | 6 | 2 | 16 |
| -------- | -------- | -------- | -------- | -------- |
| SUM: | 726 | 40033 | 11533 | 26989 |
Full Changelog: v0.13.0...v0.14.0