envoyproxy / envoyproxy/gateway
CustomResourceStateMetrics in gateway-addons chart seem out of date
- Dominant language
- Go
- Stars
- 3k
- Forks
- 864
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 140
Description
*Description*:
I'm seeing a bunch of warnings related to the `CustomResourceStateMetrics` from the gateway-addons chart in kube-state-metrics. I am not sure if this is expected or if the CustomResourceStateMetrics config is out of date with the current state of envoy and gateway api.
For example:
`"Warning: The v1alpha3 version of BackendTLSPolicy has been deprecated and will be removed in a future release of the API. Please upgrade to v1."`
I went through the CustomResourceStateMetrics docs in kube-state-metrics and it seems to imply that if you target a specific version, kube-state-metrics only watches that version of the CRD. This could imply a significant gap in metrics collection, since only v1alpha3 is targeted.
I'm also seeing other Kinds with a v1alpha version in the CustomResourceStateMetrics config
I'm also seeing other log lines indicating potential misconfiguration:
For these I'm not sure if these are expected or not, perhaps they make sense for deleted resources:
```
"gatewayapi_gatewayclass_deleted" err="[metadata,deletionTimestamp]: got nil while resolving path"
"gatewayapi_gateway_deleted" err="[metadata,deletionTimestamp]: got nil while resolving path"
"gatewayapi_httproute_deleted" err="[metadata,deletionTimestamp]: got nil while resolving path"
```
I see the following for all Gateway Api Kinds, these are not necessarily an issue and fixing them could be a breaking change.
```
"Info metric does not have _info suffix" gvk="gateway.networking.k8s.io_v1alpha3_BackendTLSPolicy" name="labels"
"Info metric does not have _info suffix" gvk="gateway.networking.k8s.io_v1_Gateway" name="labels"
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.