Skip to content

Commit

Permalink
Add godoc for targetRef CEL validation in BackendTLSPolicy
Browse files Browse the repository at this point in the history
Signed-off-by: Norwin Schnyder <[email protected]>
  • Loading branch information
snorwin committed Dec 13, 2024
1 parent 94ef768 commit 429ef35
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions apis/v1alpha3/backendtlspolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ type BackendTLSPolicySpec struct {
// by default, but this default may change in the future to provide
// a more granular application of the policy.
//
// TargetRefs must be _distinct_. This means either that:
//
// * They select different objects. If this is the case, then targetRef
// entries are distinct. In terms of fields, this means that the
// multi-part key defined by `group`, `kind`, and `name` must
// be unique across all targetRef entries in the BackendTLSPolicy.
// * They do not select different objects, each TargetRef that selects
// the same object must set the sectionName to a different value.
//
// Support: Extended for Kubernetes Service
//
// Support: Implementation-specific for any other resource
Expand Down

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

2 changes: 1 addition & 1 deletion pkg/generated/openapi/zz_generated.openapi.go

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

0 comments on commit 429ef35

Please sign in to comment.