Skip to content

Commit f04abec

Browse files
authored
describe TargetRefs conflict-resolution rules in BackendTLSPolicy (#4048)
Signed-off-by: Norwin Schnyder <[email protected]>
1 parent 9e01e2b commit f04abec

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

apis/v1alpha3/backendtlspolicy_types.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ type BackendTLSPolicySpec struct {
7676
// be unique across all targetRef entries in the BackendTLSPolicy.
7777
// * They select different sectionNames in the same target.
7878
//
79+
//
80+
// When more than one BackendTLSPolicy selects the same target and
81+
// sectionName, implementations MUST determine precedence using the
82+
// following criteria, continuing on ties:
83+
//
84+
// * The older policy by creation timestamp takes precedence. For
85+
// example, a policy with a creation timestamp of "2021-07-15
86+
// 01:02:03" MUST be given precedence over a policy with a
87+
// creation timestamp of "2021-07-15 01:02:04".
88+
// * The policy appearing first in alphabetical order by {name}.
89+
// For example, a policy named `bar` is given precedence over a
90+
// policy named `baz`.
91+
//
92+
// For any BackendTLSPolicy that does not take precedence, the
93+
// implementation MUST ensure the `Accepted` Condition is set to
94+
// `status: False`, with Reason `Conflicted`.
95+
//
7996
// Support: Extended for Kubernetes Service
8097
//
8198
// Support: Implementation-specific for any other resource

config/crd/experimental/gateway.networking.k8s.io_backendtlspolicies.yaml

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

pkg/generated/openapi/zz_generated.openapi.go

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

0 commit comments

Comments
 (0)