forked from bpfman/bpfman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow bytecode image to ship multiple programs
Update the bytecode image backwards compat spec to allow users to ship multiple programs in a single image. Signed-off-by: Andrew Stoycos <[email protected]>
- Loading branch information
Showing
14 changed files
with
1,184 additions
and
713 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
FROM scratch | ||
|
||
ARG PROGRAM_NAME | ||
ARG BPF_FUNCTION_NAME | ||
ARG EL_BYTECODE_FILE | ||
ARG EB_BYTECODE_FILE | ||
ARG BYTECODE_FILE | ||
ARG PROGRAMS | ||
ARG MAPS | ||
|
||
COPY $EL_BYTECODE_FILE / | ||
COPY $EB_BYTECODE_FILE / | ||
LABEL io.ebpf.filename_eb $EB_BYTECODE_FILE | ||
LABEL io.ebpf.filename_el $EB_BYTECODE_FILE | ||
LABEL io.ebpf.program_name $PROGRAM_NAME | ||
LABEL io.ebpf.bpf_function_name $BPF_FUNCTION_NAME | ||
LABEL "io.ebpf.programs"=$PROGRAMS | ||
LABEL "io.ebpf.maps"=$MAPS | ||
|
||
COPY $BYTECODE_FILE / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.