Skip to content
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

Merged
merged 30 commits into from
Aug 19, 2024
Merged

Migrate libbpf #145

merged 30 commits into from
Aug 19, 2024

Conversation

maheshrayas
Copy link
Contributor

No description provided.

@maheshrayas maheshrayas requested a review from xunholy as a code owner August 19, 2024 09:20
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
Copy link
Contributor

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 \
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excessive extra empty lines

@maheshrayas maheshrayas merged commit 8e5a36c into main Aug 19, 2024
1 of 2 checks passed
@maheshrayas maheshrayas deleted the migrate-libbpf branch August 19, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants