github alekc/terraform-provider-kubectl v3.0.3

41 minutes ago

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_fields entries with a list index match again (#418, #420). 3.0.x wrote list indices as [N], so a 2.x-style entry like spec.template.spec.containers.0.image (and the docs' own webhooks.0.clientConfig.caBundle) never matched: the field showed as drift and the next apply reverted it. Both 0 and [0] now work at each list position, entries that end at a list element (args.0) match too, and mask_paths accepts 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, in full and hash modes. 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.

Don't miss a new terraform-provider-kubectl release

NewReleases is sending notifications on new releases.