k8wiz
Kustomize
Hard
Generation

Why does generatorOptions.immutable: true work well with Kustomize's default hash suffix?

Select your answer:

Show answer and explanation

Answer: New data gets a new name, so the old immutable ConfigMap never has to change

Explanation

An immutable ConfigMap or Secret can't be edited, only deleted and recreated, and the kubelet stops watching it for changes, which lowers the load on the API server. With the hash suffix, every change already produces a new object. Without the hash, an apply that changes the data would fail.