Skip to content

Commit 685ef7d

Browse files
authored
Migrate to protoc-gen-crd (#2941)
1 parent 34ab004 commit 685ef7d

File tree

13 files changed

+441
-614
lines changed

13 files changed

+441
-614
lines changed

Makefile.core.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ repo_dir := .
2525
protolock = protolock
2626
annotations_prep = annotations_prep
2727
htmlproofer = htmlproofer
28-
cue = cue-gen -paths=common-protos
2928

3029
#####################
3130
# Generation Rules

buf.gen.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

gen.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,3 @@ buf generate --template buf.gen-noncrd.yaml \
4040
# These plugins are sent to Envoy, which uses golang/protobuf, so do not use gogo
4141
buf generate --template buf.gen-golang.yaml \
4242
--path envoy
43-
44-
# Generate CRDs
45-
cue-gen -paths=common-protos -f=./cue.yaml --crd=true -snake=jwksUri,apiKeys,apiSpecs,includedPaths,jwtHeaders,triggerRules,excludedPaths,mirrorPercent

kubernetes/customresourcedefinitions.gen.yaml

Lines changed: 430 additions & 603 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

networking/v1alpha3/virtual_service.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

networking/v1alpha3/virtual_service.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ message HTTPRoute {
645645
// Use of integer `mirror_percent` value is deprecated. Use the
646646
// double `mirror_percentage` field instead
647647
// $hide_from_docs
648+
// +kubebuilder:altName=mirror_percent
648649
google.protobuf.UInt32Value mirror_percent = 18 [deprecated=true];
649650

650651
// Percentage of the traffic to be mirrored by the `mirror` field.

networking/v1beta1/virtual_service.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

networking/v1beta1/virtual_service.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ message HTTPRoute {
645645
// Use of integer `mirror_percent` value is deprecated. Use the
646646
// double `mirror_percentage` field instead
647647
// $hide_from_docs
648+
// +kubebuilder:altName=mirror_percent
648649
google.protobuf.UInt32Value mirror_percent = 18 [deprecated=true];
649650

650651
// Percentage of the traffic to be mirrored by the `mirror` field.

security/v1/jwt.pb.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)