Which version of kube-score are you using?
kube-score version: 1.10.0, commit: 95faa2a, built: 2020-11-07T14:17:50Z
What did you do?
A complete description of the steps you took to trigger the incorrect behaviour.
scored an HPA YAML definition associated to a Deployment
Include Kubernetes object YAML/JSON if you have it
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: inventory-processor-load-hpa
namespace: default
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: inventory-processor-load
minReplicas: 3
maxReplicas: 12
targetCPUUtilizationPercentage: 70
What did you expect to see?
A clear and concise description of what you expected to happen.
I've got the following validation error, definitely the HPA and Deployment and running fine, then it looks like a false positive to me, unless I'm totally misunderstanding the error message.
A description of what happened, include logs and program output
autoscaling/v1/HorizontalPodAutoscaler inventory-processor-load-hpa in default💥
[CRITICAL] HorizontalPodAutoscaler has target
· The HPA target does not match anything
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too