lib/topological_inventory/orchestrator/targeted_update.rb
# Loads config maps and assigns them to loaded Sources
Loads config maps and assigns them to loaded Sources
Loads config maps and assigns them to loaded Sources
def load_config_maps
        @config_maps_by_uid = {}
        object_manager.get_config_maps("#{ConfigMap::LABEL_COMMON}=#{::Settings.labels.version}").each do |openshift_object|
          config_map = ConfigMap.new(object_manager, openshift_object)
          config_map.targeted_update = true
          @config_maps_by_uid[config_map.uid] = config_map
          config_map.assign_source_type!(@targets.collect { |t| t[:source_type] unless t[:action] == :skip }.compact)
          config_map.associate_sources_by_targets(@targets.select { |t| t[:action] != :skip})
        end
        logger.debug("ConfigMaps loaded: #{@config_maps_by_uid.values.count}")
      end
def load_config_maps @config_maps_by_uid = { } object_manager . get_config_maps ( "#{ConfigMap::LABEL_COMMON}=#{::Settings.labels.version}" ) . each do | openshift_object | config_map = ConfigMap . new ( object_manager , openshift_object ) config_map . targeted_update = true @config_maps_by_uid [ config_map . uid ] = config_map config_map . assign_source_type! ( @targets . collect { | t | t [ :source_type ] unless t [ :action ] == :skip } . compact ) config_map . associate_sources_by_targets ( @targets . select { | t | t [ :action ] != :skip } ) end logger . debug ( "ConfigMaps loaded: #{@config_maps_by_uid.values.count}" ) end
Loads config maps and assigns them to loaded Sources
Loads config maps and assigns them to loaded Sources