Open rvillane opened 3 years ago
Hey,
kube-score expects to receive all objects as input to the program so that it can make the correlations between them. You can see the testcase in https://github.com/zegl/kube-score/blob/master/score/testdata/hpa-targets-deployment.yaml as an example.
i know this is old but just ran into this whehn using hpa with argo rollouts, and name prefixing
namePrefix: my-app-
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: hpa
spec:
maxReplicas: 1
minReplicas: 1
scaleTargetRef:
apiVersion: argoproj.io/v1alpha1
kind: Rollout
name: rollout
targetCPUUtilizationPercentage: 85
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: rollout
namespace: development
spec:
Which version of kube-score are you using?
What did you do?
What did you expect to see?
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.