lib/topological_inventory/orchestrator/config_map.rb
# Creating new ConfigMap in OpenShift (when no existing available)
# Also creates secret and deployment_config (connected by UID)
Creating new ConfigMap in OpenShift (when no existing available)
Also creates secret and deployment_config (connected by UID)
Creating new ConfigMap in OpenShift ( when no existing available ) Also creates secret and deployment_config ( connected by UID )
def create_in_openshift(source)
        logger.info("Creating ConfigMap #{self} by Source #{source}")
        object_manager.create_config_map(name, source_type_name) do |map|
          map[:metadata][:labels][LABEL_COMMON] = ::Settings.labels.version.to_s
          map[:metadata][:labels][LABEL_SOURCE_TYPE] = source_type_name if source_type.present?
          map[:metadata][:labels][LABEL_UNIQUE] = uid
          map[:data][:uid] = uid
          map[:data][:digests] = [source.digest].to_json
          map[:data]["custom.yml"] = yaml_from_sources
        end
        logger.info("[OK] Created ConfigMap #{self}")
        create_secret
        create_deployment_config
        create_service
      end
def create_in_openshift ( source ) logger . info ( "Creating ConfigMap #{self} by Source #{source}" ) object_manager . create_config_map ( name , source_type_name ) do | map | map [ :metadata ] [ :labels ] [ LABEL_COMMON ] = :: Settings . labels . version . to_s map [ :metadata ] [ :labels ] [ LABEL_SOURCE_TYPE ] = source_type_name if source_type . present? map [ :metadata ] [ :labels ] [ LABEL_UNIQUE ] = uid map [ :data ] [ :uid ] = uid map [ :data ] [ :digests ] = [ source . digest ] . to_json map [ :data ] [ "custom.yml" ] = yaml_from_sources end logger . info ( "[OK] Created ConfigMap #{self}" ) create_secret create_deployment_config create_service end
Creating new ConfigMap in OpenShift (when no existing available)
Also creates secret and deployment_config (connected by UID)
Creating new ConfigMap in OpenShift ( when no existing available ) Also creates secret and deployment_config ( connected by UID )
source