class Kustomize::Transform::DropFilteredDocumentsTransform
Constants
- ANNOTS_LENS
- DROP_ON_ANNOTS
Public Instance Methods
rewrite_all(rcs)
click to toggle source
# File lib/kustomize/transform/drop_filtered_documents_transform.rb, line 19 def rewrite_all(rcs) rcs.filter do |rc| annot_keys = (ANNOTS_LENS.get_in(rc) || {}).keys not(annot_keys.find{ |k| DROP_ON_ANNOTS.member?(k) }) end end