Add pre-commit to update release manifest #211
Reference in New Issue
Block a user
No description provided.
Delete Branch "nbelouin/Factory:pre-commit-manifest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add pre-commit configuration and local hook to keep release manifest up to date
@@ -6,3 +10,3 @@
def get_chart_version(chart_name: str) -> str:
with open(f"./{chart_name}-chart/Chart.yaml") as f:
chart = yaml.safe_load(f)
chart = yaml.load(f)
In future I wonder if we could also add validation for k3s/RKE2, e.g parsing https://github.com/k3s-io/k3s/tree/v1.32.4%2Bk3s1/manifests and https://github.com/rancher/rke2/blob/v1.32.4%2Brke2r1/charts/chart_versions.yaml ?
I'd rather see that as a part of the renovate-like process we want, but can be envisioned. I just would not do this as a pre-commit hook as we don't want "random" PRs to contain upgrades to non-related components.
Here we just seek to keep the charts version in sync between the charts definition and release manifest.
Sounds good, we can consider other approaches in future, just wanted to mention it :)
c4aed7bf4f
to6f586daecf
6f586daecf
toc3f1be5640