helm-controller: Unable to detect server capabilities
When trying to deploy Loki chart we faced an issue about server capabilities detection.
The relevant part of the chart is https://github.com/grafana/loki/blob/0084262269f4e2cb94d04e0cc0d40e9666177f06/production/helm/loki/templates/read/hpa.yaml#L2-L8
Trying to deploy with autoscaling enabled, we face:
no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta1" ensure CRDs are installed first
However our control plane is returning the correct v2 version for autoscaling:
kubectl get --raw /apis/autoscaling
{
"kind": "APIGroup",
"apiVersion": "v1",
"name": "autoscaling",
"versions": [
{
"groupVersion": "autoscaling/v2",
"version": "v2"
},
{
"groupVersion": "autoscaling/v1",
"version": "v1"
}
],
"preferredVersion": {
"groupVersion": "autoscaling/v2",
"version": "v2"
}
}
We’re using flux v2.2.3
For reference, this as also been discussed in https://github.com/fluxcd/flux2/discussions/4234
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (10 by maintainers)
If you’ve posted the HelmRelease YAML from start would’ve saved lots of time 😄