Skip to content

Commit

Permalink
Enable Renovate to update CRD versions (#2433)
Browse files Browse the repository at this point in the history
  • Loading branch information
marians authored Dec 17, 2024
1 parent 1428627 commit c0dc945
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 44 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check-update-crd-reference.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Validates the configuration for the CRD reference update script
# in scripts/update-crd-reference

name: check-update-crd-reference

on:
push:
paths:
- scripts/update-crd-reference/*

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Validate configuration
run: |
make update-crd-reference
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ update-cluster-app-reference:
# Generate the reference documentation for the custom resource
# definitions (CRD) used in the Management API.
update-crd-reference:
scripts/update-crd-reference/update_config.sh
scripts/update-crd-reference/main.sh

lint: lint-markdown lint-prose validate-front-matter
Expand Down
11 changes: 11 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,16 @@
],
versioningTemplate: '{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}',
},
// Detect CRD source versions
{
customType: 'regex',
datasourceTemplate: 'github-tags',
fileMatch: ['^scripts/update-crd-reference/config\\.yaml$'],
matchStrings: [
'short_name:\\s*(?<depName>?)\\s+commit_reference:\\s*(?<currentValue>\\S+)',
],
packageNameTemplate: 'giantswarm/{{{depName}}}',
versioningTemplate: 'semver-coerced',
},
],
}
43 changes: 0 additions & 43 deletions scripts/update-crd-reference/update_config.sh

This file was deleted.

0 comments on commit c0dc945

Please sign in to comment.