apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: forgejo

labels:
- includeSelectors: true
  pairs:
    app.kubernetes.io/managed-by: kustomize
    app.kubernetes.io/part-of: forgejo

images:
  - name: act_runner
    newName: code.forgejo.org/forgejo/runner
    newTag: "3.3.0"

resources:
  - resources/routes.yaml
  - resources/dragonfly.yml
  - resources/runners/act-runner-arm64.yaml
  - resources/runners/act-runner-amd64.yaml
  - resources/runners/cache-pvc.yaml
  - resources/runners/act-cache.yaml
  - resources/runners/act-cache-svc.yaml

configMapGenerator:
- name: act-runner-config-arm64
  files:
  - config.yaml=config/runners/config-arm64.yaml
- name: act-runner-config-amd64
  files:
  - config.yaml=config/runners/config-amd64.yaml

helmCharts:
  - name: forgejo
    repo: oci://codeberg.org/forgejo-contrib
    releaseName: forgejo
    namespace: forgejo
    version: "4.0.1"
    valuesFile: config/values.forgejo.yaml
    skipTests: true
    apiVersions:
      - "networking.k8s.io/v1/Ingress"

generators:
  - ./secret-generator.yaml