Hi i am trying out the `practice-test-image-security-2` lab, I am trying to edit . . .

shubham mandhare:
Hi i am trying out the practice-test-image-security-2 lab,
I am trying to edit the deployment that is already present on the machine to add the imagePullSecret section but getting the following error on saving the file.

deployments.apps "web" was not valid:
# * : Invalid value: "The edited file failed validation": [yaml: line 34: found character that cannot start any token, invalid character 'a' looking for beginning of value]

The content of the file is (cut down to the required part):

  template:
    metadata:
      creationTimestamp: null
      labels:
        app: web
    spec:
      containers:
        - name: nginx
          image: <http://myprivateregistry.com:5000/nginx:alpine|myprivateregistry.com:5000/nginx:alpine>
          imagePullPolicy: IfNotPresent
      imagePullSecretes:
        - name: private-reg-cred
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always

Gurudutt Dongre:
Try taking out below lines and check if it works

resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File