-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate libbpf #145
Migrate libbpf #145
Conversation
Taskfile.yaml
Outdated
@@ -30,7 +30,7 @@ tasks: | |||
desc: "Install in KinD cluster" | |||
cmds: | |||
- helm repo add xentra https://xentra-ai.github.io/kube-guardian || true | |||
- helm install kube-guardian xentra/kube-guardian --namespace kube-guardian | |||
- helm upgrade kube-guardian xentra/kube-guardian --namespace kube-guardian |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this assume it has already been installed?
@@ -3,20 +3,20 @@ ARG DEBIAN_VERSION="11.7" | |||
FROM --platform=$BUILDPLATFORM ubuntu:24.04 as builder | |||
|
|||
RUN mkdir -p \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can use WORKDIR which creates and sets the dir? Otherwise lets just put it onto the same line.
|
||
COPY linux/amd64/kube-guardian /artifacts/linux/amd64 | ||
COPY linux/arm64/kube-guardian /artifacts/linux/arm64 | ||
COPY localbin/kube-guardian /artifacts/localbin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets use the --chown and --chmod etc on the COPY command to ensure we have correct perms
|
||
FROM debian:${DEBIAN_VERSION}-slim | ||
|
||
RUN apt update -y && apt install libelf-dev -y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe set NONINTERACTIVE?
|
||
RUN apt update | ||
RUN apt-get install -y util-linux iproute2 | ||
RUN chmod +x /usr/local/bin/kube-guardian |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed if we use --chmod on the COPY as mentioned earlier.
#include "vmlinux.h" | ||
#include <bpf/bpf_helpers.h> | ||
#include <bpf/bpf_core_read.h> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excessive extra empty lines
No description provided.