Skip to content

UpstreamSettingsPolicy with multiple targetRefs has duplicate ancestor entries in status #2935

@kate-osborn

Description

@kate-osborn

An UpstreamSettingsPolicy with multiple targetRefs has duplicate ancestors in status:

Name:         upstream-settings-policy
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  gateway.nginx.org/v1alpha1
Kind:         UpstreamSettingsPolicy
Metadata:
  Creation Timestamp:  2024-12-17T19:56:35Z
  Generation:          2
  Resource Version:    1891967
  UID:                 2bacfeab-2a44-40e4-8b7a-08e73cfc120d
Spec:
  Keep Alive:
    Connections:  32
    Requests:     1001
    Time:         300s
    Timeout:      60s
  Target Refs:
    Group:    core
    Kind:     Service
    Name:     coffee
    Group:
    Kind:     Service
    Name:     tea
  Zone Size:  512k
Status:
  Ancestors:
    Ancestor Ref:
      Group:      gateway.networking.k8s.io
      Kind:       Gateway
      Name:       gateway
      Namespace:  default
    Conditions:
      Last Transition Time:  2024-12-19T19:58:09Z
      Message:               Policy is accepted
      Observed Generation:   2
      Reason:                Accepted
      Status:                True
      Type:                  Accepted
    Controller Name:         gateway.nginx.org/nginx-gateway-controller
    Ancestor Ref:
      Group:      gateway.networking.k8s.io
      Kind:       Gateway
      Name:       gateway
      Namespace:  default
    Conditions:
      Last Transition Time:  2024-12-19T19:58:09Z
      Message:               Policy is accepted
      Observed Generation:   2
      Reason:                Accepted
      Status:                True
      Type:                  Accepted
    Controller Name:         gateway.nginx.org/nginx-gateway-controller

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions