Unable to update ImagePullSecret in deployment Lab_ImageSecurityQuestion 6 6

After updating ImagePullSecrets in deploy with correct identation,still getting error

deployments.apps “web” was not valid:

* patch: Invalid value: “map[spec:map[template:map[spec:map[imagePullSecrets:[map[name:private-reg-cred resources:map[] terminationMessagePath:/dev/termination-log terminationMessagePolicy:File]]]]]]”: strict decoding error: unknown field “spec.template.spec.imagePullSecrets[0].resources”, unknown field “spec.template.spec.imagePullSecrets[0].terminationMessagePath”, unknown field “spec.template.spec.imagePullSecrets[0].terminationMessagePolicy”

Hi @erdinesh1488

resources, terminationMessagePath, terminationMessagePolicy are not on the right item he should be on image item

spec: 
  containers:
  - image: myprivateregistry.com:5000/nginx:alpine
    name: nginx
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
  imagePullSecrets:
  - name: private-reg-cred
  ...