Whats the difference between --dry-run=client -o yaml and -o yaml when both give . . .

Neeraj Arora:
whats the difference between --dry-run=client -o yaml and -o yaml when both gives the yaml file?

PR:
–dry-run creates exact yaml file here you need to change names, for -o yaml you will get yaml file with excessive lines where you need to delete all unwanted lines it’s a waste of time but you have to perform according to task…

Neeraj Arora:
Thanks a lot man :slight_smile:

Madhan Kumar:
“–dry-run=client -o yaml” will not create the resource it will only create the yaml .

Madhan Kumar:
“-o yaml” will create the resource example pods , deployments , etc . and it will also create the yaml .