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
All Kubernetes resources store labels as part of their metadata. You can use "oc get kind name -o yaml" to see a complete, raw resource definition and "oc get kind name --show-labels" to see just labels
The app label used to be standard in apps created by oc new-app but with recent releases of OpenShift it might not be created for all scenarios. Developers are free to add as many labels they wish for their resources and it is common practice to add a common label to all resources related to an application or service to make it easier to track them.
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.
Hello, was this problem ever rectified? I'm having the same exact issue for the same lab excercise while studying for EX288.
@Oliver2 Based on the previous comment - learner was able to save it after rectifying a minor error.
If you still need help, I suggest to raise a support ticket - our team will check this and help you with an update.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.