Menu

1 / 4

The kubectl apply Bug That Silently Eats Your Config (Fixed in Kubernetes 1.37)

DEV Community: kubernetes·Honey Kiran·9 days ago
#r67KYK3l
#devtokubernetes#devto#dev#kyaml#yaml
Reading 0:00
15s threshold

The fix is at the source: quote every value, brace every structure.

There is a class of Kubernetes bug that no diff, no review, and no dry-run will ever catch — because the corruption happens below all of them, in the parser. You write a ConfigMap value; YAML 1.1 decides what it means ; what reaches the cluster is not what you wrote. And in at least one documented case, the API server doesn’t reject the bad value — it silently drops the key .

This is the famous “Norway problem”: country: NO is not a string to a YAML 1.1 parser. It’s false . Kubernetes has carried this quirk for years.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.