{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "config:base",
    "docker:enableMajor",
    ":prHourlyLimitNone",
    "regexManagers:dockerfileVersions"
  ],
  "prConcurrentLimit": 20,
  "semanticCommits": "enabled",
  "flux": {
    "fileMatch": ["\\.yaml$"]
  },
  "kubernetes": {
    "fileMatch": [
      "apps/k8s01/dns/.+\.yaml$",
      "apps/k8s01/syncthing/.+\.yaml$",
      "apps/base/iot/.+\.yaml$"
    ]
  },
  "gitlabci": {
    "fileMatch": ["\.gitlab-ci\.yml$", "gitlab-ci\.yaml$"]
  },
  "regexManagers": [
    {
      "fileMatch": ["\\.yaml$"],
      "matchStrings": [
        "# renovate:\\n\\s+image: \"?'?(?<depName>[^:\\s]+?):(?<currentValue>[^\"]*?)\"?'?\\s"
      ],
      "datasourceTemplate": "docker",
      "versioningTemplate": "docker"
    },
    {
      "fileMatch": ["Chart\\.yaml$"],
      "matchStrings": [
        "# renovate:\\s+image=(?<depName>[^:\\s]+?)\\nappVersion:\\s+\"?'?(?<currentValue>[^\"]*)\"?'?"
      ],
      "datasourceTemplate": "docker",
      "versioningTemplate": "docker"
    }
  ],
  "packageRules": [
    {
      "matchDatasources": ["docker"],
      "matchPackageNames": [
        "quay.io/fedora/fedora", 
        "docker.io/fedora",
        "docker.io/library/fedora", 
        "registry.fedoraproject.org/fedora"
      ],
      "allowedVersions": "<38"
    },
    {
      "matchDatasources": ["helm"],
      "packageNames": [
        "rook-ceph",
        "rook-ceph-cluster"
      ],
      "groupName": "rook-ceph"
    },
    {
      "matchPaths": ["images/kos/**"],
      "extends": ["docker:pinDigests"]
    }
  ]
}