Describe the bug
Given this manifest (builtin kubernetes resource, not a CRD), I get the server complaining about "metrics" field: Yamlls: Property metrics is not allowed. [513].
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: foo
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: foo
minReplicas: 2
maxReplicas: 3
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 80
I think the problem is that it tries to compare it with older autoscaling/v1 spec, where this property was in fact not allowed. In v2, this is a valid manifest.
Environment
yaml-language-server version 1.21.0, used in integration with helm-ls
Describe the bug
Given this manifest (builtin kubernetes resource, not a CRD), I get the server complaining about "metrics" field:
Yamlls: Property metrics is not allowed. [513].I think the problem is that it tries to compare it with older
autoscaling/v1spec, where this property was in fact not allowed. Inv2, this is a valid manifest.Environment
yaml-language-server version 1.21.0, used in integration with helm-ls