Looking at the function that checks for env vars in a pod that correspond to a ConfigMap, this considers ConfigMapRef, but not configMapKeyRef. The latter per the docs is also a valid usage of a ConfigMap.
I am running the latest release of clusterlint to do some checking.
I would expect to see no warnings for unused ConfigMaps, as these are consumed with configMapKeyRef
I am getting warnings for unused ConfigMaps, that are clearly being used by configMapKeyRef when the yaml is reviewed.
Looking at the function that checks for env vars in a pod that correspond to a ConfigMap, this considers ConfigMapRef, but not
configMapKeyRef
. The latter per the docs is also a valid usage of a ConfigMap.configMapKeyRef
configMapKeyRef
when the yaml is reviewed.