kubernetes – Case sensitiveness of kubectl command flag values

I’m new to the kubernetes. This question is related to the --restart flag value used with the kubectl command.

When I run below command I’m getting an error saying error: invalid restart policy: never.
Command: kubectl run busybox --image=busybox --restart=never.

But when I run the below command I could create a pod without any issue.
Command: kubectl run busybox --image=busybox --restart=Never.
Can we consider the values related to the flags in kubectl are case sensitive. Can someone explain this ? Thanks in advance 🙂

Case sensitiveness related to the kubectl command related flag values

Read more here: Source link