Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- reopened
- synchronize
paths:
- ".github/workflows/on-pr.yaml"
- 'renovate.json'
- ".github/workflows/**"
- "apis/**"
- "examples/**"
- "tests/**"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ The chart's `appVersion` tracks the upstream Gateway API release. Bump `chartVer

| Kind | Package | Version |
|---|---|---|
| Function | `crossplane-contrib/function-auto-ready` | `>=v0.6.3` |
| Provider | `crossplane-contrib/provider-helm` | `>=v1` |
| Function | `crossplane-contrib/function-auto-ready` | `^v0` |
| Provider | `crossplane-contrib/provider-helm` | `^v1` |

## Development

Expand Down
4 changes: 2 additions & 2 deletions apis/gatewayapistacks/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ metadata:
spec:
dependsOn:
- function: xpkg.crossplane.io/crossplane-contrib/function-auto-ready
version: '>=v0.7.0'
version: '^v0'
- provider: xpkg.crossplane.io/crossplane-contrib/provider-helm
version: '>=v1'
version: '^v1'
1 change: 1 addition & 0 deletions examples/gatewayapistacks/standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ spec:
team: platform
namespace: gateway-api
releaseName: gateway-api-crds
# renovate: datasource=helm depName=gateway-api-crds registryUrl=https://wiremind.github.io/wiremind-helm-charts
chartVersion: "1.5.1"
1 change: 1 addition & 0 deletions functions/render/000-state-init.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
{{- $clusterName := $spec.clusterName | default $name }}
{{- $namespace := $spec.namespace | default "gateway-api" }}
{{- $releaseName := $spec.releaseName | default "gateway-api-crds" }}
# renovate: datasource=helm depName=gateway-api-crds registryUrl=https://wiremind.github.io/wiremind-helm-charts
{{- $chartVersion := $spec.chartVersion | default "1.5.1" }}
{{- $managementPolicies := $spec.managementPolicies | default (list "*") }}

Expand Down
93 changes: 79 additions & 14 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,57 @@
},
"packageRules": [
{
"description": "Automerge minor and patch updates that pass all checks",
"matchUpdateTypes": ["minor", "patch"],
"description": "Automerge minor and patch updates after all checks pass",
"matchUpdateTypes": [
"minor",
"patch"
],
"automerge": true
},
{
"description": "Require manual review for major updates",
"matchUpdateTypes": [
"major"
],
"automerge": false
},
{
"description": "Disable automatic updates for all hops-ops Docker images",
"matchDatasources": ["docker"],
"matchDatasources": [
"docker"
],
"enabled": false,
"matchPackageNames": ["/^hops-ops//"]
"matchPackageNames": [
"/^hops-ops//"
]
},
{
"description": "Group AWS provider-family packages",
"matchPackageNames": [
"/provider-family-aws/",
"/provider-aws-.*/"
],
"groupName": "aws-providers"
},
{
"description": "Use feat(deps): commit prefix for hops-ops Crossplane packages (github-releases datasource)",
"matchManagers": ["custom.regex"],
"matchDatasources": ["github-releases"],
"matchManagers": [
"custom.regex"
],
"matchDatasources": [
"github-releases"
],
"semanticCommitType": "feat",
"semanticCommitScope": "deps"
},
{
"description": "Use feat(deps): commit prefix for other Crossplane packages from Docker registries",
"matchManagers": ["custom.regex"],
"matchDatasources": ["docker"],
"matchManagers": [
"custom.regex"
],
"matchDatasources": [
"docker"
],
"semanticCommitType": "feat",
"semanticCommitScope": "deps"
}
Expand All @@ -41,30 +71,65 @@
{
"customType": "regex",
"description": "hops-ops Crossplane configurations (tracked via GitHub Releases)",
"matchStringsStrategy": "recursive",
"managerFilePatterns": [
"apis/**/configuration.yaml",
"upbound.yaml"
],
"matchStrings": [
"\\s*(configuration|function|package|provider):\\s*ghcr\\.io/hops-ops/(?<depName>.*?)\\s*version:\\s*(\"|')>=(?<currentValue>.*?)(\"|')\\s*"
"\\s*(configuration|function|package|provider):\\s*ghcr\\.io/hops-ops/(?<depName>.*?)\\s*version:\\s*(\"|')\\^v?[0-9]+(\"|')\\s*",
"(?<currentValue>\\^v?[0-9]+)"
],
"datasourceTemplate": "github-releases",
"packageNameTemplate": "hops-ops/{{depName}}"
"versioningTemplate": "npm",
"packageNameTemplate": "hops-ops/{{depName}}",
"autoReplaceStringTemplate": "^v{{{newMajor}}}"
},
{
"customType": "regex",
"description": "Crossplane packages from other registries (tracked via Docker tags)",
"description": "Crossplane packages from xpkg registries (tracked via Docker tags)",
"matchStringsStrategy": "recursive",
"managerFilePatterns": [
"apis/**/configuration.yaml",
"upbound.yaml"
],
"matchStrings": [
"\\s*(configuration|function|package|provider):\\s*(?<registryUrl>[^/]+)\\/(?<orgName>[^/]+)\\/(?<repoName>[^/\\s]+)\\s*version:\\s*(\"|')>=(?<currentValue>.*?)(\"|')\\s*"
"\\s*(configuration|function|package|provider):\\s*(?<registryUrl>xpkg\\.[^/]+)\\/(?<orgName>[^/]+)\\/(?<repoName>[^/\\s]+)\\s*version:\\s*(\"|')\\^v?[0-9]+(\"|')\\s*",
"(?<currentValue>\\^v?[0-9]+)"
],
"datasourceTemplate": "docker",
"versioningTemplate": "npm",
"registryUrlTemplate": "https://{{registryUrl}}",
"depNameTemplate": "{{orgName}}/{{repoName}}",
"packageNameTemplate": "{{orgName}}/{{repoName}}"
"packageNameTemplate": "{{orgName}}/{{repoName}}",
"autoReplaceStringTemplate": "^v{{{newMajor}}}"
},
{
"customType": "regex",
"description": "Annotated runtime dependencies in schemas, templates, examples, and tests",
"managerFilePatterns": [
"apis/**/*.yaml",
"examples/**/*.yaml",
"functions/**/*.yaml.gotmpl",
"tests/**/*.k"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)(?: registryUrl=(?<registryUrl>\\S+))?\\s+[^\\n]*?(?:default\\s+|:=\\s*|[\"']?(?:version|chartVersion|tag|default)[\"']?\\s*(?:[=:]\\s*|\\s+))[\"']?(?<currentValue>v?[0-9][^\\s\"'}]*)",
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)(?: registryUrl=(?<registryUrl>\\S+))?\\s+[^\\n]*?(?:default\\s*:\\s*|[\"']?image[\"']?\\s*[=:]\\s*)[\"']?[A-Za-z0-9._/-]+:(?<currentValue>v?[A-Za-z0-9][^\\s\"'}]*)",
Comment thread
patrickleet marked this conversation as resolved.
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)(?: registryUrl=(?<registryUrl>\\S+))?\\s+[^\\n]*?package\\s*=\\s*\"xpkg\\.[^/]+/[^\"]+:(?<currentValue>[^\"]+)\""
]
}
]
],
"ignorePaths": [
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**",
"**/__tests__/**",
"**/test/**",
"**/__fixtures__/**",
"**/fixtures/**"
],
"automergeType": "pr",
"platformAutomerge": false,
"ignoreTests": false
}
1 change: 1 addition & 0 deletions tests/test-render/main.k
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ _items = [
chart = {
name = "gateway-api-crds"
repository = "https://wiremind.github.io/wiremind-helm-charts"
# renovate: datasource=helm depName=gateway-api-crds registryUrl=https://wiremind.github.io/wiremind-helm-charts
version = "1.5.1"
}
namespace = "gateway-api"
Expand Down
4 changes: 2 additions & 2 deletions upbound.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ spec:
- apiVersion: pkg.crossplane.io/v1
kind: Function
package: xpkg.crossplane.io/crossplane-contrib/function-auto-ready
version: '>=v0.7.0'
version: '^v0'
- apiVersion: pkg.crossplane.io/v1
kind: Provider
package: xpkg.crossplane.io/crossplane-contrib/provider-helm
version: '>=v1'
version: '^v1'
description: Installs Kubernetes Gateway API CRDs (gateway.networking.k8s.io) onto
a target cluster as a Helm release. Cloud-neutral, prereq for any Gateway API
based controller (Istio Ambient, Envoy Gateway, etc.) or integration (knative
Expand Down
Loading