Diffing configMapGenerator changes?

Hello!

Is there a way to diff a pending configMap created by a configMapGenerator against the current configMap, if disableNameSuffixHash isn’t true?

kubectl diff -k overlay/whatever ends up outputting the whole configMap as a change, since it’s comparing a new hash to itself which doesn’t yet exist; ideally it would compare against the currently-referenced configMap!

Cheers :slight_smile:

CLI information

$ kubectl version
Client Version: v1.29.3
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.1-gke.1589020