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

namespace: forgejo

commonLabels:
  app.kubernetes.io/instance: icb4dc0de
  app.kubernetes.io/managed-by: kustomize

images:
  - name: act_runner
    newName: docker.io/gitea/act_runner
    newTag: nightly

resources:
  - resources/runners/act-runner.yaml
  - resources/runners/cache-pvc.yaml
  - resources/runners/act-cache.yaml
  - resources/runners/act-cache-svc.yaml

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

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

generators:
  - ./secret-generator.yaml