Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d8563a8
add backend_config_plugin
inFocus7 Oct 14, 2025
a1a807f
set up tests + krt for tls-based policy merger
inFocus7 Oct 14, 2025
149db58
add testing + fix NPE in BackendConfigPolicy translation in agentgateway
inFocus7 Oct 15, 2025
d15666f
add test for mmultiple targetRefs in backendtls translation
inFocus7 Oct 15, 2025
d752832
make generated-code
inFocus7 Oct 15, 2025
43d0237
Merge branch 'main' into feat/support-section-name-in-backend-config-…
inFocus7 Oct 15, 2025
8835e06
simplify policy mapping and grouping to track a single policy per type
inFocus7 Oct 15, 2025
21ac165
remove TODOs
inFocus7 Oct 16, 2025
cddc502
run go-generate-apis
inFocus7 Oct 20, 2025
de49830
Merge branch 'main' into feat/support-section-name-in-backend-config-…
inFocus7 Oct 20, 2025
be5ceae
split agw backendTls plugins, create plugin for backendmodelconfig tr…
inFocus7 Oct 20, 2025
8fe2bff
generate code
inFocus7 Oct 20, 2025
5b066c6
Merge branch 'main' into feat/support-section-name-in-backend-config-…
inFocus7 Oct 20, 2025
8aeceae
add statuses based on backendConfig translation in agentgateway
inFocus7 Oct 21, 2025
eba74f5
Merge branch 'main' into feat/support-section-name-in-backend-config-…
inFocus7 Oct 21, 2025
326d503
Merge branch 'main' into feat/support-section-name-in-backend-config-…
inFocus7 Oct 22, 2025
7efcc26
generalize config policy generation logic
inFocus7 Oct 22, 2025
2f2c668
Merge branch 'main' into feat/support-section-name-in-backend-config-…
inFocus7 Oct 24, 2025
0cbe930
update status syncing for backendConfigPolicies
inFocus7 Oct 24, 2025
9d11132
resolve issues with updates in backendconfigpolicy
inFocus7 Oct 24, 2025
de2e031
fix status fatal with backendconfigpolicy
inFocus7 Oct 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions api/applyconfiguration/api/v1alpha1/backendconfigpolicyspec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/applyconfiguration/internal/internal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/v1alpha1/backend_config_policy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ type BackendConfigPolicySpec struct {
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=16
// +kubebuilder:validation:XValidation:rule="self.all(r, (r.group == '' && r.kind == 'Service') || (r.group == 'gateway.kgateway.dev' && r.kind == 'Backend'))",message="TargetRefs must reference either a Kubernetes Service or a Backend API"
TargetRefs []LocalPolicyTargetReference `json:"targetRefs,omitempty"`
TargetRefs []LocalPolicyTargetReferenceWithSectionName `json:"targetRefs,omitempty"`

// TargetSelectors specifies the target selectors to select resources to attach the policy to.
// +optional
// +kubebuilder:validation:XValidation:rule="self.all(r, (r.group == '' && r.kind == 'Service') || (r.group == 'gateway.kgateway.dev' && r.kind == 'Backend'))",message="TargetSelectors must reference either a Kubernetes Service or a Backend API"
TargetSelectors []LocalPolicyTargetSelector `json:"targetSelectors,omitempty"`
TargetSelectors []LocalPolicyTargetSelectorWithSectionName `json:"targetSelectors,omitempty"`

// The timeout for new network connections to hosts in the cluster.
// +optional
Expand Down
8 changes: 5 additions & 3 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,11 @@ spec:
maxLength: 253
minLength: 1
type: string
sectionName:
maxLength: 253
minLength: 1
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
type: string
required:
- group
- kind
Expand Down Expand Up @@ -731,6 +736,11 @@ spec:
type: string
description: Label selector to select the target resource.
type: object
sectionName:
maxLength: 253
minLength: 1
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
type: string
required:
- group
- kind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func NewPlugin(ctx context.Context, commoncol *collections.CommonCollections, v
},
Policy: b,
PolicyIR: policyIR,
TargetRefs: pluginsdkutils.TargetRefsToPolicyRefs(b.Spec.TargetRefs, b.Spec.TargetSelectors),
TargetRefs: pluginsdkutils.TargetRefsToPolicyRefsWithSectionName(b.Spec.TargetRefs, b.Spec.TargetSelectors),
Errors: errs,
}
}, commoncol.KrtOpts.ToOptions("BackendConfigPolicyIRs")...)
Expand Down
Loading
Loading