generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 621
Closed
Labels
blockedpriority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Milestone
Description
Discussion generated from GEP-1897 points out that TargetRef could use some updates.
- All policy resources must include TargetRef with the fields specified here:
gateway-api/apis/v1alpha2/policy_types.go
Lines 24 to 41 in a33a934
type PolicyTargetReference struct { // Group is the group of the target resource. Group Group `json:"group"` // Kind is kind of the target resource. Kind Kind `json:"kind"` // Name is the name of the target resource. Name ObjectName `json:"name"` // Namespace is the namespace of the referent. When unspecified, the local // namespace is inferred. Even when policy targets a resource in a different // namespace, it MUST only apply to traffic originating from the same // namespace as the policy. // // +optional Namespace *Namespace `json:"namespace,omitempty"` } - Policy resources may also choose to include
SectionNameand/orPortin TargetRef following the same mechanics ofParentRef
Then we can provide additional TargetRef types that extend the base TargetRef with the different possible combinations of these fields. That feels like it could be handled in a separate smaller update to the policy GEP.
Originally posted by @robscott in #2113 (comment)
robscott, mikemorris, arkodg, zhaohuabing, keithmattix and 1 more
Metadata
Metadata
Assignees
Labels
blockedpriority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.