Skip to content

Commit a9ffb55

Browse files
committed
generated-code
Signed-off-by: Yuval Kohavi <[email protected]>
1 parent f8f65ec commit a9ffb55

File tree

8 files changed

+48
-9
lines changed

8 files changed

+48
-9
lines changed

api/applyconfiguration/api/v1alpha1/localpolicytargetreference.go

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

api/applyconfiguration/internal/internal.go

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

api/v1alpha1/zz_generated.deepcopy.go

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

install/helm/kgateway-crds/templates/gateway.kgateway.dev_httplistenerpolicies.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,11 @@ spec:
475475
maxLength: 253
476476
minLength: 1
477477
type: string
478+
sectionName:
479+
maxLength: 253
480+
minLength: 1
481+
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
482+
type: string
478483
required:
479484
- group
480485
- kind

install/helm/kgateway-crds/templates/gateway.kgateway.dev_trafficpolicies.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,11 @@ spec:
465465
maxLength: 253
466466
minLength: 1
467467
type: string
468+
sectionName:
469+
maxLength: 253
470+
minLength: 1
471+
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
472+
type: string
468473
required:
469474
- group
470475
- kind

internal/kgateway/extensions2/pluginutils/policy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package pluginutils
33
import (
44
"maps"
55

6+
"k8s.io/utils/ptr"
7+
68
"github.com/kgateway-dev/kgateway/v2/api/v1alpha1"
79
"github.com/kgateway-dev/kgateway/v2/internal/kgateway/ir"
8-
"k8s.io/utils/ptr"
910
)
1011

1112
func TargetRefsToPolicyRefs(

internal/kgateway/translator/gateway/testutils/test_translator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ func sortProxy(proxy *irtranslator.TranslationResult) *irtranslator.TranslationR
106106
}
107107

108108
sort.Slice(proxy.Listeners, func(i, j int) bool {
109-
return proxy.Listeners[i].Name < proxy.Listeners[j].Name
109+
return proxy.Listeners[i].GetName() < proxy.Listeners[j].GetName()
110110
})
111111
sort.Slice(proxy.Routes, func(i, j int) bool {
112-
return proxy.Routes[i].Name < proxy.Routes[j].Name
112+
return proxy.Routes[i].GetName() < proxy.Routes[j].GetName()
113113
})
114114
sort.Slice(proxy.ExtraClusters, func(i, j int) bool {
115-
return proxy.ExtraClusters[i].Name < proxy.ExtraClusters[j].Name
115+
return proxy.ExtraClusters[i].GetName() < proxy.ExtraClusters[j].GetName()
116116
})
117117

118118
return proxy

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 7 additions & 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)