## Definition of canary strategies
rolloutStrategy:
  podLabels: {}
  enabled: false
  deploymentName: ""
  deploymentMatchLabels: {}
  replicaCount: ""
  hpa:
    enabled: false
    minReplicas: 3
    maxReplicas: 10
    targetCPUUtilizationPercentage: 90
  notifications:
    enabled: false
    slackChannels: ""
    triggers:
    - "on-rollout-aborted"
    - "on-analysis-run-failed"
    - "on-analysis-run-error"
  canary:
    stableService: ""
    stableIngresses: []
    steps: []
    # Example:
    # - setCanaryScale:
    #     weight: 50
    # - pause: { duration: 1m }
    # - analysis:
    #     templates:
    #     - templateName: "analysis-template-name"
    # - setCanaryScale:
    #     weight: 100

rolloutAnalysisTemplates:
  enabled: false
  authToken: ""
  defaultTemplates:
    basicTemplates:
      enabled: false
      defaultStepsEnabled: false
      promServerAddress: "https://ng-api-http.coralogix.us/metrics"
      templates:
        memoryUsageTemplate:
          name: "jfrog-memory-usage-analysis"
          failureLimit: 3
          count: 3
          interval: 10s
          changeMax: 1.25
        cpuUsageTemplate:
          name: "jfrog-cpu-usage-analysis"
          failureLimit: 3
          count: 3
          interval: 10s
          changeMax: 1.25
  templates: []
#    Example:
#    - name: simple-analysis
#      interval: 10s
#      successCondition: result[0] <= 5
#      failureLimit: 1
#      provider:
#        prometheus:
#          address: http://jfrog-saas-stg-use1-kube-p-prometheus.jfrog-saas-stg-use1-kube-prom.svc.cluster.local:9090
#          query: |
#            sum(rate(narcissus_api_call_exception_total[1m]))
#      count: 1
#    - name: different-analysis
#      interval: 100m
#      successCondition: result[0] <= 40
#      failureLimit: 2
#      provider:
#        prometheus:
#          headers:
#          - key: Authorization
#            value: Bearer {{ args.prom-auth-token }}
#          address: http://jfrog-saas-stg-use1-kube-p-prometheus.jfrog-saas-stg-use1-kube-prom.svc.cluster.local:9090
#          query: |
#            sum(rate(narcissus_api_call_exception_total[1m]))
#      count: 4
