lib/topological_inventory/orchestrator/targeted_update.rb
# Main action! adds/updates or deletes source from config map
# Empty config maps are deleted (together with DC, Service and Secret)
Main action. adds/updates or deletes source from config map
Empty config maps are deleted (together with DC, Service and Secret)
Main action . adds / updates or deletes source from config map Empty config maps are deleted ( together with DC Service and Secret )
def manage_openshift_collectors
        @targets.each do |target|
          target[:action] = :create if target[:action] == :update && target[:source].config_map.blank?
          case target[:action]
          when :skip
            skip_target(target)
          when :destroy
            destroy_target(target)
          when :update
            update_target(target)
          when :create
            create_target(target)
          end
        end
      end
def manage_openshift_collectors @targets . each do | target | target [ :action ] = :create if target [ :action ] == :update && target [ :source ] . config_map . blank? case target [ :action ] when :skip skip_target ( target ) when :destroy destroy_target ( target ) when :update update_target ( target ) when :create create_target ( target ) end end end
Main action!
Main action!