-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from ctrox/resource-requests
Implement in-place pod request scaling
- Loading branch information
Showing
27 changed files
with
1,494 additions
and
141 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
run: sudo --preserve-env make test | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -46,10 +46,20 @@ jobs: | |
with: | ||
go-version: "1.22" | ||
|
||
- name: Install protoc-gen-go | ||
run: | | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install github.com/containerd/ttrpc/cmd/[email protected] | ||
- uses: awalsh128/cache-apt-pkgs-action@v1 | ||
with: | ||
packages: protobuf-compiler libprotobuf-dev | ||
version: 1.0 | ||
|
||
- name: build ebpf image | ||
run: make build-ebpf | ||
|
||
- name: generate ebpf | ||
- name: generate ttrpc and ebpf | ||
run: make generate | ||
|
||
- name: check for diff | ||
|
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 |
---|---|---|
|
@@ -80,9 +80,16 @@ CFLAGS := -O2 -g -Wall -Werror | |
# dependencies installed. | ||
generate: export BPF_CLANG := $(CLANG) | ||
generate: export BPF_CFLAGS := $(CFLAGS) | ||
generate: | ||
generate: ttrpc | ||
docker run --rm -v $(PWD):/app:Z --user $(shell id -u):$(shell id -g) --env=BPF_CLANG="$(CLANG)" --env=BPF_CFLAGS="$(CFLAGS)" $(EBPF_IMAGE) | ||
|
||
ttrpc: | ||
go mod download | ||
cd api/shim/v1; protoc --go_out=. --go_opt=paths=source_relative \ | ||
--ttrpc_out=. --plugin=protoc-gen-ttrpc=`which protoc-gen-go-ttrpc` \ | ||
--ttrpc_opt=paths=source_relative *.proto -I. \ | ||
-I $(shell go env GOMODCACHE)/github.com/prometheus/[email protected] | ||
|
||
# to improve reproducibility of the bpf builds, we dump the vmlinux.h and | ||
# store it compressed in git instead of dumping it during the build. | ||
update-vmlinux: | ||
|
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.