---
server:
  ingress:
    # -- Enable the ingress for the server component
    enabled: true
    # -- Add annotations to the ingress
    annotations:
      # kubernetes.io/ingress.class: nginx
      kubernetes.io/tls-acme: "true"
    hosts:
      - host: woodpecker.ar21.de
        paths:
          - path: /
            backend:
              serviceName: woodpecker-svc
              servicePort: 80
    tls:
      - hosts:
          - woodpecker.ar21.de
        secretName: woodpecker-tls-key
  initContainers:
    - name: fix-permissions
      image: busybox
      command: ["sh", "-c", "chown -R 1000:1000 /mnt"]
      volumeMounts:
        - mountPath: /mnt
          name: data
  statefulSet:
    replicaCount: 1
  env:
    WOODPECKER_ADMIN: 'aaron'
    WOODPECKER_HOST: 'https://woodpecker.ar21.de'
    WOODPECKER_OPEN: true
    WOODPECKER_FORGEJO: true
    WOODPECKER_FORGEJO_URL: 'https://git.ar21.de'
    WOODPECKER_LOG_LEVEL: "error"
    WOODPECKER_PLUGINS_PRIVILEGED: "woodpeckerci/plugin-docker-buildx"
  extraSecretNamesForEnvFrom:
    - woodpecker-forgejo
  createAgentSecret: false
agent:
  extraSecretNamesForEnvFrom:
    - woodpecker-forgejo
  replicaCount: 3
  env:
    WOODPECKER_MAX_WORKFLOWS: 2
    WOODPECKER_BACKEND_K8S_STORAGE_CLASS: 'longhorn-local'
    WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 2G
  mapAgentSecret: false