Skip to content

Parse Nested Arrays does not work #2368

@rajatvig

Description

@rajatvig

Have a custom CRD returning conditions under a nested structure like

status:
  parents:
  - conditions:
    - lastTransitionTime: "2024-04-05T16:27:15Z"
      message: References resolved
      observedGeneration: 1
      reason: ResolvedRefs
      status: "True"
      type: ResolvedRefs
    - lastTransitionTime: "2024-04-05T16:27:15Z"
      message: Accepted HTTPRoute
      observedGeneration: 1
      reason: Accepted
      status: "True"
      type: Accepted
    controllerName: projectcontour.io/gateway-controller
    parentRef:
      group: gateway.networking.k8s.io
      kind: Gateway
      name: contour
      namespace: projectcontour
      sectionName: https

Using StateSet to parse with path ['status', 'parents', 'conditions'] but getting an error like

registry_factory.go:685] "gatewayapi_grpcroute_status" err="[status,parents,conditions]: expected value for path to be string, got <nil>" 

Is this supported?

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/supportCategorizes issue or PR as a support question.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

Status

Backlog (stale)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions