Skip to content

Commit

Permalink
Add autoscaling proto and add json schema generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vboulineau committed May 15, 2024
1 parent e8f8425 commit 4453a57
Show file tree
Hide file tree
Showing 13 changed files with 1,344 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ CycloneDX/ @DataDog/agent-shared-components @DataDog/container-i
cyclonedx_v1_4/ @DataDog/agent-shared-components @DataDog/container-integrations
cws/ @DataDog/agent-shared-components @DataDog/agent-security
proto/cws/ @DataDog/agent-shared-components @DataDog/agent-security
proto/autoscaling/ @DataDog/container-integrations @DataDog/container-app
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ gogo_dir="/tmp/gogo"
protoc_binary_2="protoc"
protoc_version_2="21.12"
protoc_gen_go_dir="/tmp/protoc-gen-go"
protoc_jsonschema_version="73d5723"


namespace :codegen do
Expand Down Expand Up @@ -89,10 +90,14 @@ BASH
# Install protoc-gen-go
GOPATH=#{protoc_gen_go_dir} go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.1
GOPATH=#{protoc_gen_go_dir} go install github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@#{protoc_jsonschema_version}
echo "Generating contlcycle proto"
PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src proto/contlcycle/contlcycle.proto
echo "Generating kubernetes autoscaling proto"
PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src --jsonschema_out=type_names_with_no_package:jsonschema proto/autoscaling/kubernetes/autoscaling.proto
echo "Generating contimage proto"
PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. --go_out=$GOPATH/src proto/contimage/contimage.proto
Expand Down Expand Up @@ -128,7 +133,7 @@ BASH
end

task :gimme do
go_version = "1.18"
go_version = "1.21.9"

if (`which gimme`; $?.success?)
sh "gimme #{go_version}"
Expand Down

0 comments on commit 4453a57

Please sign in to comment.