Skip to content

feat: Auto check values consistency#769

Merged
Alex-Vovchuk merged 15 commits into
mainfrom
auto-check-values-consistency
Feb 20, 2026
Merged

feat: Auto check values consistency#769
Alex-Vovchuk merged 15 commits into
mainfrom
auto-check-values-consistency

Conversation

@Alex-Vovchuk
Copy link
Copy Markdown
Contributor

@Alex-Vovchuk Alex-Vovchuk commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces an automated consistency check to ensure selected defaults in the main Helm chart values (charts/kof/values.yaml) stay aligned with corresponding component chart values.yaml, and wires the check into developer/CI workflows.

Changes:

  • Added a Python script to compare main chart component .values against component chart values.yaml (with special fallback handling for kof-child/kof-regional).
  • Added a local pre-commit hook and a GitHub Actions workflow to run the consistency check on PRs.
  • Updated developer documentation to point contributors to the pre-commit steps.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
scripts/check_values_consistency.py New checker script that parses YAML and compares main chart component values to component chart defaults, with child/regional fallback logic.
docs/dev.md Documentation tweak referencing pre-commit steps.
.pre-commit-config.yaml Adds a local hook that runs the new consistency checker.
.github/workflows/pr_check_values_consistency.yml Adds a PR workflow job to run the consistency checker when charts change.

Comment thread scripts/check_values_consistency.py Outdated
Comment thread scripts/check_values_consistency.py
Comment thread scripts/check_values_consistency.py
Comment thread .github/workflows/pr_check_values_consistency.yml
Comment thread .github/workflows/pr_check_values_consistency.yml
Comment thread scripts/check_values_consistency.py
@Alex-Vovchuk Alex-Vovchuk marked this pull request as draft February 11, 2026 14:12
Copy link
Copy Markdown
Collaborator

@gmlexx gmlexx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also fix all inconsistency issues found by this script in this PR

@Alex-Vovchuk Alex-Vovchuk changed the title fix: Auto check values consistency feat: Auto check values consistency Feb 12, 2026
@Alex-Vovchuk Alex-Vovchuk marked this pull request as ready for review February 12, 2026 12:03
gmlexx
gmlexx previously approved these changes Feb 18, 2026
Copy link
Copy Markdown
Collaborator

@denis-ryzhkov denis-ryzhkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great script in general, thanks.
Few suggestions below.

Comment thread charts/kof/values.yaml
Comment thread scripts/check_values_consistency.py Outdated
Comment thread scripts/check_values_consistency.py Outdated
Comment thread scripts/check_values_consistency.py
Comment thread scripts/check_values_consistency.py
Comment thread scripts/check_values_consistency.py
Comment thread scripts/check_values_consistency.py Outdated
Comment thread scripts/check_values_consistency.py Outdated
Comment thread charts/kof/values.yaml
Comment thread scripts/check_values_consistency.py Outdated
Comment thread scripts/check_values_consistency.py Outdated
Copy link
Copy Markdown
Collaborator

@denis-ryzhkov denis-ryzhkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestions are applied, please rebase to fix CI

@Alex-Vovchuk Alex-Vovchuk force-pushed the auto-check-values-consistency branch from f2bfec1 to 34e8f23 Compare February 19, 2026 15:45
@Alex-Vovchuk Alex-Vovchuk merged commit e504f30 into main Feb 20, 2026
19 of 21 checks passed
@Alex-Vovchuk Alex-Vovchuk deleted the auto-check-values-consistency branch February 20, 2026 12:22
@github-project-automation github-project-automation Bot moved this to Done in k0rdent Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Auto-check consistency of kof/values.yaml and $component/values.yaml

4 participants