Rajbatra
Mission Specialist
Mission Specialist
  • 3,085 Views

LAB 280 - Unable to save file through OC edit command

Hi,

I am doing Lab, there i am trying to save file through OC edit command, but it is showing error.

student@workstation ~]$ oc edit deployment/hello
A copy of your changes has been stored to "/tmp/oc-edit-1fi7k.yaml"
error: Edit cancelled, no valid changes were saved.

Let us know , how to save file through oc edit command?

Thanks

Rajkumar Batra

Labels (1)
0 Kudos
20 Replies
Brati
Cadet
Cadet
  • 199 Views

Had the same issue with oc edit oauth. Finally it turns out that I was missing a space after spec: . The format should be spec: {}.

This is for the first Guided Exercise of Ch 3 for DO280 for 4.6 version.

Join the discussion
You must log in to join this conversation.