Add workflow to auto-bump aws-for-fluent-bit chart - #1373
Open
gian25-work wants to merge 3 commits into
Open
gian25-work wants to merge 3 commits into
gian25-work wants to merge 3 commits into
Conversation
Weekly job checks the latest 3.x release of aws/aws-for-fluent-bit and opens a PR bumping appVersion, image.tag and the chart patch version. Mirrors update-eks-chart.yaml; needs no AWS credentials. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GitHub lists releases by creation date, so a backport to an older 3.x minor published after the current head would have been picked as the new version and downgraded the chart. Sort with sort -V instead. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Drop the 3.x filter so a future 4.x is picked up instead of silently ignored. Compare current and latest by semver so a chart already ahead of the newest release is left alone. A major image bump increments the chart minor version, matching aws#1294; anything else increments patch. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Author
|
The logic of the script will need to be reviewed when the chart version is stable v1 instead of v0 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a weekly GitHub Actions workflow that checks the latest release of aws/aws-for-fluent-bit and opens a PR bumping
appVersion,image.tagand the chart version. Mirrors the existingupdate-eks-chart.yaml(cron +hack/script +peter-evans/create-pull-request), but needs no AWS credentials since it only reads the public GitHub releases API.Version handling
sort -V), not by release date. GitHub lists releases newest-first by creation date, so a backport to an older line (e.g. a 2.x CVE rebuild published after 3.4.16) would otherwise be picked and downgrade the chart. This also means 2.x releases are naturally ignored while 3.x exists, and a future 4.x is picked up instead of silently ignored.Background: the chart is currently bumped by hand (last on 2026-02-03, #1294) and lags the image by several releases. See #1039 and #1372.
Testing
Ran
./hack/update-aws-for-fluent-bit.shlocally against master:version0.2.0 → 0.2.1,appVersion, values.yamlimage.tag),helm lintpasses, second run is a no-op.appVersion: 2.34.3.20260910→ 3.4.16: chart version 0.2.0 → 0.3.0.appVersion: 9.0.0: no-op.image.tagis updated withsedrather thanyq -ibecause yq rewrites the block scalars and comment indentation in values.yaml.🤖 Generated with Claude Code