Skip to content

Commit

Permalink
Add cilium-dbg cleanup to snap removal hook
Browse files Browse the repository at this point in the history
  • Loading branch information
berkayoz committed Apr 3, 2024
1 parent 5cd57f5 commit e9eb827
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions k8s/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ k8s::remove::network() {
do
tc filter del dev $default_interface ${d} || true
done

rm -rf /var/run/cilium/cilium.pid
"${SNAP}/usr/bin/cilium-dbg" cleanup --all-state --force
}

# [DANGER] Cleanup containers and runtime state. Note that the order of operations below is crucial.
Expand Down
9 changes: 9 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ parts:
source: build-scripts
override-build: ./build-component.sh runc

cilium-dbg:
after: [build-deps]
plugin: make
source-type: git
source: https://github.com/cilium/cilium.git
source-tag: v1.15.2
source-depth: 1
source-subdir: cilium-dbg

bash-utils:
plugin: nil
stage-packages:
Expand Down

0 comments on commit e9eb827

Please sign in to comment.