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
1 change: 1 addition & 0 deletions .github/workflows/on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- reopened
- synchronize
paths:
- 'renovate.json'
- '.github/workflows/on-pr.yaml'
- '.gitops/**'
- 'apis/**'
Expand Down
119 changes: 93 additions & 26 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,71 +12,138 @@
},
"packageRules": [
{
"description": "Automerge minor and patch updates that pass all checks",
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
"description": "Require manual merge until an e2e suite exists",
"matchUpdateTypes": [
"major",
"minor",
"patch"
],
"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 all AWS provider packages together for batched updates",
"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"
],
"semanticCommitType": "feat",
"semanticCommitScope": "deps"
},
{
"description": "Use feat(deps): commit prefix for hops-ops Crossplane packages",
"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",
"matchManagers": ["custom.regex"],
"matchDatasources": ["docker"],
"matchManagers": [
"custom.regex"
],
"matchDatasources": [
"docker"
],
"semanticCommitType": "feat",
"semanticCommitScope": "deps"
}
],
"customManagers": [
{
"customType": "regex",
"description": "hops-ops Crossplane configurations",
"managerFilePatterns": ["upbound.yaml"],
"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": "hops-ops packages in E2E tests",
"managerFilePatterns": ["tests/**/main.k"],
"description": "Crossplane packages from xpkg registries (tracked via Docker tags)",
"matchStringsStrategy": "recursive",
"managerFilePatterns": [
"apis/**/configuration.yaml",
"upbound.yaml"
],
"matchStrings": [
"package\\s*=\\s*\"ghcr\\.io/(?<depName>hops-ops/[^:]+):v?(?<currentValue>[^\"]+)\""
"\\s*(configuration|function|package|provider):\\s*(?<registryUrl>xpkg\\.[^/]+)\\/(?<orgName>[^/]+)\\/(?<repoName>[^/\\s]+)\\s*version:\\s*(\"|')\\^v?[0-9]+(\"|')\\s*",
"(?<currentValue>\\^v?[0-9]+)"
],
"datasourceTemplate": "github-releases",
"packageNameTemplate": "{{depName}}"
"datasourceTemplate": "docker",
"versioningTemplate": "npm",
"registryUrlTemplate": "https://{{registryUrl}}",
"depNameTemplate": "{{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\"'}]*)",
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)(?: registryUrl=(?<registryUrl>\\S+))?\\s+[^\\n]*?package\\s*=\\s*\"xpkg\\.[^/]+/[^\"]+:(?<currentValue>[^\"]+)\""
]
},
{
"customType": "regex",
"description": "Crossplane packages from other registries",
"managerFilePatterns": ["upbound.yaml"],
"description": "hops-ops packages in E2E tests",
"managerFilePatterns": [
"tests/**/main.k"
],
"matchStrings": [
"\\s*(configuration|function|package|provider):\\s*(?<registryUrl>[^/]+)\\/(?<orgName>[^/]+)\\/(?<repoName>[^/\\s]+)\\s*version:\\s*(\"|')>=(?<currentValue>.*?)(\"|')\\s*"
"package\\s*=\\s*\"ghcr\\.io/(?<depName>hops-ops/[^:]+):v?(?<currentValue>[^\"]+)\""
],
"datasourceTemplate": "docker",
"registryUrlTemplate": "https://{{registryUrl}}",
"depNameTemplate": "{{orgName}}/{{repoName}}",
"packageNameTemplate": "{{orgName}}/{{repoName}}"
"datasourceTemplate": "github-releases",
"packageNameTemplate": "{{depName}}"
}
],
"ignorePaths": [
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**",
"**/__tests__/**",
"**/test/**",
"**/__fixtures__/**",
"**/fixtures/**"
]
}
2 changes: 2 additions & 0 deletions tests/e2etest-efsstoragestack/main.k
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ _items = [
containers = [
{
name = "writer"
# renovate: datasource=docker depName=library/busybox registryUrl=https://index.docker.io
image = "busybox:1.37.0"
command = ["sh", "-c", "echo " + _probe + " > /data/probe.txt && sync"]
volumeMounts = [
Expand Down Expand Up @@ -277,6 +278,7 @@ _items = [
containers = [
{
name = "reader"
# renovate: datasource=docker depName=library/busybox registryUrl=https://index.docker.io
image = "busybox:1.37.0"
command = [
"sh"
Expand Down
3 changes: 3 additions & 0 deletions tests/test-render/main.k
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ _observed_file_system = {
kind = "FileSystem"
metadata = {
name = "gitkb"
namespace = "default"
annotations = {"crossplane.io/composition-resource-name" = "file-system"}
}
status = {
Expand All @@ -29,6 +30,7 @@ _observed_security_group = {
kind = "SecurityGroup"
metadata = {
name = "gitkb-mt"
namespace = "default"
annotations = {"crossplane.io/composition-resource-name" = "security-group"}
}
status = {
Expand All @@ -45,6 +47,7 @@ _observed_pod_identity = {
kind = "PodIdentity"
metadata = {
name = "gitkb-efs-csi"
namespace = "default"
annotations = {"crossplane.io/composition-resource-name" = "csi-pod-identity"}
}
status = {
Expand Down
12 changes: 6 additions & 6 deletions upbound.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ spec:
- apiVersion: pkg.crossplane.io/v1
kind: Function
package: xpkg.crossplane.io/crossplane-contrib/function-auto-ready
version: '>=v0.6.4'
version: '^v0'
- apiVersion: pkg.crossplane.io/v1
kind: Provider
package: xpkg.crossplane.io/crossplane-contrib/provider-aws-efs
version: '>=v2.5.0'
version: '^v2'
- apiVersion: pkg.crossplane.io/v1
kind: Provider
package: xpkg.crossplane.io/crossplane-contrib/provider-aws-ec2
version: '>=v2.5.0'
version: '^v2'
- apiVersion: pkg.crossplane.io/v1
kind: Provider
package: xpkg.crossplane.io/crossplane-contrib/provider-aws-eks
version: '>=v2.5.0'
version: '^v2'
- apiVersion: pkg.crossplane.io/v1
kind: Provider
package: xpkg.crossplane.io/crossplane-contrib/provider-kubernetes
version: '>=v1'
version: '^v1'
- apiVersion: pkg.crossplane.io/v1
kind: Configuration
package: ghcr.io/hops-ops/aws-pod-identity
version: '>=v0.12.0'
version: '^v0'
description: EFS shared file storage, EKS CSI integration, and RWX StorageClasses.
license: Apache-2.0
maintainer: Patrick Lee Scott <pat@patscott.io>
Expand Down
Loading