apiVersion: v1
kind: ConfigMap
metadata:
  name: gitea-webhook-ambassador-config
  namespace: freeleaps-devops-system
  labels:
    app: gitea-webhook-ambassador
data:
  config.yaml: |
    server:
      port: 8080
      webhookPath: "/webhook"
      secretHeader: "Authorization"
      secretKey: "r6Y@QTb*7BQN@hDGsN"

    jenkins:
      url: "http://jenkins.freeleaps-devops-system.svc.freeleaps.cluster:8080"
      username: "admin"
      token: "115127e693f1bc6b7194f58ff6d6283bd0"
      timeout: 30

    gitea:
      secretToken: "b510afe7b60acdb4261df0155117b7a2b5339cc9"
      projects:
        "freeleaps/freeleaps-service-hub":
          defaultJob: "freeleaps/alpha/freeleaps-service-hub"
          branchJobs:
            "master": "freeleaps/prod/freeleaps-service-hub"
            "dev": "freeleaps/alpha/freeleaps-service-hub"
        "freeleaps/freeleaps2-devsvc":
          defaultJob: "freeleaps/alpha/freeleaps2-devsvc"
          branchJobs:
            "master": "freeleaps/prod/freeleaps2-devsvc"
            "dev": "freeleaps/alpha/freeleaps2-devsvc"
        "products/freeleaps":
          defaultJob: "freeleaps/alpha/freeleaps2-frontend"
          branchJobs:
            "main": "freeleaps/prod/freeleaps2-frontend"
            "dev": "freeleaps/alpha/freeleaps2-frontend"

    logging:
      level: "info"
      format: "json"
      file: ""

    worker:
      poolSize: 10
      queueSize: 100
      maxRetries: 3
      retryBackoff: 1