Selector expect map not string

If we using string then k8s api is throwing validation error
``` (HorizontalPodAutoscaler.spec.metrics[0].object.metric.selector): invalid type for io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector: got "string", expected "map"; if you choose to ignore these errors, turn validation off with --validate=false ```
This commit is contained in:
Vijay Kumar Jalagari 2021-08-05 16:10:36 +05:30 committed by GitHub
parent 708cc9a5fe
commit 2eda36ea27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -397,7 +397,9 @@ section to your HorizontalPodAutoscaler manifest to specify that you need one wo
external:
metric:
name: queue_messages_ready
selector: "queue=worker_tasks"
selector:
matchLabels:
queue: "worker_tasks"
target:
type: AverageValue
averageValue: 30