azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Node Affinity Yaml example giving error "expected 'array' while given 'string' for values"

Open contact2abhi opened this issue 2 years ago • 1 comments

The following section was giving error

affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: hardware operator: In values: highmem

worked when changed to

affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: hardware operator: In values: - highmem


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

contact2abhi avatar Nov 11 '22 11:11 contact2abhi

@contact2abhi Thanks for your feedback! We will investigate and update as appropriate.

SaibabaBalapur-MSFT avatar Nov 11 '22 15:11 SaibabaBalapur-MSFT

@contact2abhi - Thanks for bringing this to our attention. Your correct that the two example YAML files in this section for setting up affinity were not formatted correctly by the original author. I'm going to create a bug for this now and see about fixing it before the day is out.

#please-close

MGoedtel avatar Nov 11 '22 19:11 MGoedtel