bash completions for kubectl

Support pre command flags:
--api-version=
-a, --auth-path=
--certificate-authority=
--client-certificate=
--client-key=
--insecure-skip-tls-verify=
--match-server-version=
-s, --server=

And commands:
get
describe
create
update
delete

Tries to be smart about things like

kubectl get -o template  requires a template file

It also tries to accept both sigular and plural versions of all
resources.  Even though it will only complete to the plural version.
I don't think I really understand the question.  I know you added --no-headers.  That's why I'm using it...

If you look a the kubecfg bash completions you can see the hoops we had to jump through when we did not have --no-headers:

out=($(echo "${kubecfg_output}" | awk -v prefix="$1" '/^$/ {next} NR > 2 {print prefix"/"$1}'))

The NR > 2 portion is to skip the header and the divider output.  I started doing this and had NR > 1, then decided I'd just fix kubectl to have a --no-header.  Then realized you already had it!  So thanks for that!  (obviously the above command does a whole lot of other magic other than skipping the header, but I'm thankful that kubectl doesn't need ANY such magic!)