k8wiz
Kustomize
Medium
Mutation

A replacement target points at an arg with the value --db-host=PLACEHOLDER and sets delimiter: "=" and index: 1. The source value is prod-postgres. What does the arg become?

Select your answer:

Show answer and explanation

Answer: --db-host=prod-postgres

Explanation

On a target, Kustomize splits the current value on the delimiter, replaces the piece at index, and joins the pieces again. Index 0 is --db-host and index 1 is PLACEHOLDER, so only the host changes. An index past the end would append the value as a new piece instead.

Read more about Kustomize