Skip to content

Commit

Permalink
Merge pull request #119 from kube-logging/fix/renovate
Browse files Browse the repository at this point in the history
feat: upgrade renovate config
  • Loading branch information
csatib02 authored Dec 17, 2024
2 parents 99207f4 + 8a4c4f5 commit b847dcf
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 6 deletions.
3 changes: 0 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,3 @@ require (
// v1.51.0 is present in the go.mod file of the opentelemetry-operator as retracted
// automated dependency updates can fail because of this.
exclude github.com/open-telemetry/opentelemetry-operator v1.51.0

// ref: https://github.com/darccio/mergo/blob/2b1eb9c67d7332f286430af241180c5005a6a5a4/README.md?plain=1#L53
replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16
77 changes: 74 additions & 3 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,82 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigestsToSemver",
":semanticCommitTypeAll(chore)",
"schedule:daily",
"group:all"
],
"gomodTidy": true,
"configMigration": true,
"constraints": {
"go": "1.23"
},
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^Makefile$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( registryUrl=(?<registryUrl>.*?))?\\s.*?_VERSION\\s?:?=\\s?(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
"description": [
"Custom dependency manager for updating tools defined in Makefiles."
]
}
],
"enabled": true,
"enabledManagers": [
"custom.regex",
"dockerfile",
"github-actions",
"gomod",
"ocb",
"helm-values",
"helmv3",
"kubernetes",
"kustomize"
],
"labels": [
"dependencies"
],
"osvVulnerabilityAlerts": true,
"packageRules": [
{
"matchPackageNames": ["k8s.io/client-go"],
"allowedVersions": "/^v[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?$/"
},
{
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"matchUpdateTypes": ["minor"],
"matchPackagePrefixes": ["k8s.io"],
"stabilityDays": 60
},
{
"matchFileNames": [
"Makefile"
],
"extractVersion": "^v(?<version>.*)$",
"description": [
"Add build label to PRs which are related to build tools defined in Makefiles.",
"Group Makefile dependency updates in single PR."
]
}
],
"postUpdateOptions": [
"gomodTidy"
]
"gomodTidy",
"gomodUpdateImportPaths"
],
"postUpgradeTasks": {
"commands": ["make tidy, make generate"],
"fileFilters": ["**/go.mod", "**/go.sum", "**/*.go", "**/*.yaml"],
"executionMode": "branch"
},
"printConfig": false,
"rebaseWhen": "behind-base-branch",
"semanticCommits": "enabled",
"timezone": "Etc/UTC"
}

0 comments on commit b847dcf

Please sign in to comment.