mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-28 21:55:48 +00:00
When using a `cast{key,value,type}` that was injected via struct tag, we need to make sure to quote the value when transfering it over to proto tags. Otherwise, it'll come through as unquoted, resulting in invalid proto. This was previously not a problem, since all values of `castkey` and `casttype` were actually coming from the auto-injecting code which deals with maps and aliases, which does correctly quote values.