Closed thannaske closed 3 years ago
When using "xargs -i" kube-score is executed once per file, instead of once with all files as inputs. Drop "-i" and "{}" and it should work out of the box.
The full command would be:
find . | grep ".yaml" | xargs kube-score score --kubernetes-version v1.19 --output-format ci
Which version of kube-score are you using? 1.11.0
What did you do? When defining a Service alongside a Deployment
kube-score
throws the following error:I'm using the following definitions:
kube-score
is executed as following:The YAML files are stored in sub-directories (to be used with ArgoCD).
What did you expect to see? As you can see the selector is a simple
app=logo-cache
which the Deployment properly applies to all replicas created by the subsequent ReplicaSet. So the Service does indeed match the corresponding Pods.What did you see instead?