v3.0.3 fixes two kubectl_manifest drift bugs in ignore_fields and mask_paths. It's a drop-in upgrade from 3.0.x.
Fixes
ignore_fieldsentries with a list index match again (#418, #420). 3.0.x wrote list indices as[N], so a 2.x-style entry likespec.template.spec.containers.0.image(and the docs' ownwebhooks.0.clientConfig.caBundle) never matched: the field showed as drift and the next apply reverted it. Both0and[0]now work at each list position, entries that end at a list element (args.0) match too, andmask_pathsaccepts a bare index the same way. Anything that matched before still matches. Thanks to @ground-alistair for the report.- Masked values no longer leak when a field changes type (#421, #422). When desired and live held different types at the same path, the drift output printed the whole node, including children covered by
mask_paths, infullandhashmodes. Such a node now shows as<drift sensitive>if anything under it is masked.
Other changes
- Dependency updates: Kubernetes libraries v0.37.3, actions/setup-go v7.1.0.