apiVersion: v1
kind: ConfigMap
metadata:
  name: rainbow-properties
data:
  rainbow.properties: |
    rainbow.master.location.host = 127.0.0.1
    rainbow.deployment.location = 127.0.0.1
    rainbow.master.location.port = 1111
    rainbow.deployment.environment = linux
    rainbow.event.service = eseb
    rainbow.delegate.beaconperiod = 10000
    rainbow.deployment.factory.class = org.sa.rainbow.ports.StandaloneRainbowConnectionFactory

    ### Rainbow models
    rainbow.model.number=2
    rainbow.model.path_0=model/target-acme-model.acme
    rainbow.model.load.class_0=org.sa.rainbow.model.acme.commands.KubeCommandFactory
    rainbow.model.name_0=VotingAppSystem
    rainbow.model.saveOnClose_0=true
    rainbow.model.saveLocation_0=model/target-acme-model-post.acme

    rainbow.model.path_1=utilities.yaml
    rainbow.model.load.class_1=org.sa.rainbow.model.utility.UtilityCommandFactory
    rainbow.model.name_1=VotingAppSystem
    
    ### Rainbow analyses
    rainbow.analyses.size=1
    rainbow.analyses_0=org.sa.rainbow.evaluator.acme.ArchEvaluator
    rainbow.analyses_1=org.sa.rainbow.evaluator.utility.UtilityEvaluator

    #Rainbow adaptation & stitch components
    rainbow.adaptation.manager.size=1
    rainbow.adaptation.manager.class_0=org.sa.rainbow.adaptation.AdaptationManager
    rainbow.adaptation.manager.model_0=VotingAppSystem:Acme

    rainbow.adaptation.executor.size=1
    rainbow.adaptation.executor.class_0=org.sa.rainbow.stitch.adaptation.StitchExecutor
    rainbow.adaptation.executor.model_0=VotingAppSystem:Acme

    rainbow.effector.manager.size=1
    rainbow.effector.manager.class_0=org.sa.rainbow.translator.KubeEffectorManager
    rainbow.effector.manager.model_0=VotingAppSystem:Acme

    customize.model.evaluate.period=2000
    customize.gauges.path=gauges.yaml
    customize.probes.path=probes.yaml
    customize.probes.k8suser=admin-user
    customize.archop.map.path=op.map
    customize.effectors.path=effectors.yaml
    ## Adaptation Manager
    customize.utility.enabled=false
    customize.scripts.path=stitch
    customize.adaptation.cycletime=15000
    #- Utilities description file, Strategy evaluation config, and minimum score threshold
    customize.utility.path=utilities.yaml
    customize.utility.trackStrategy=uSF
    customize.utility.score.minimum.threshold=0.33
    customize.utility.scenario=scenario 1
