k8wiz
Kustomize
Easy
Concepts

Where does kustomize build print warnings about deprecated fields such as patchesStrategicMerge?

Select your answer:

Show answer and explanation

Answer: To stderr, separate from the YAML on stdout

Explanation

Kustomize writes each deprecation warning to stderr, so piping kustomize build into kubectl apply -f - keeps working. The messages start with # Warning:, which makes them look like YAML comments, but they never reach the output stream.

Read more about Kustomize