Skip to content

Conversation

@thiagowfx
Copy link

@thiagowfx thiagowfx commented Jul 24, 2025

Resolve issue where ct lint fails when values.yaml is missing from a chart directory. Validate values.yaml with yamllint if the file actually exists, allowing charts without configurable values to pass linting successfully.

Testing:

  • All existing tests continue to pass
  • New test specifically validates that yamllint is only called once (for
    Chart.yaml) when values.yaml is missing
  • Code passes go vet, go fmt, and golangci-lint checks

Behavior:

  • Before: ct lint would fail if values.yaml was missing from a chart, even when validate-yaml: true was set
  • After: ct lint gracefully skips yamllint validation for values.yaml when the file doesn't exist, allowing charts without configurable values to lint successfully

Fixes #748

Signed-off-by: Thiago Perrotta [email protected]

@thiagowfx thiagowfx force-pushed the missing-values-yaml branch 2 times, most recently from ac0da3f to beff95c Compare July 24, 2025 10:10
@thiagowfx thiagowfx closed this Jul 24, 2025
@thiagowfx thiagowfx reopened this Jul 24, 2025
@thiagowfx
Copy link
Author

thiagowfx commented Jul 24, 2025

Not sure why the DCO check is failing, I just added the required byline.

Update: Resolved.

@thiagowfx thiagowfx force-pushed the missing-values-yaml branch from beff95c to 9bc13ab Compare July 24, 2025 10:33
@github-actions
Copy link

github-actions bot commented Sep 8, 2025

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Sep 8, 2025
@thiagowfx
Copy link
Author

!stayalive

@thiagowfx
Copy link
Author

thiagowfx commented Oct 8, 2025

Thanks for the feedback. Aiming to update it this month.

Edit: Updated.

Resolve issue where ct lint fails when values.yaml is missing from a
chart directory. Validate values.yaml with yamllint if the file actually
exists, allowing charts without configurable values to pass linting
successfully.

Testing:

- All existing tests continue to pass
- New test specifically validates that yamllint is only called once (for
  Chart.yaml) when values.yaml is missing
- Code passes go vet, go fmt, and golangci-lint checks

Behavior:

- Before: ct lint would fail if values.yaml was missing from a chart,
  even when validate-yaml: true was set
- After: ct lint gracefully skips yamllint validation for values.yaml
  when the file doesn't exist, allowing charts without configurable
  values to lint successfully

Fixes helm#748

Signed-off-by: Thiago Perrotta <[email protected]>
@thiagowfx thiagowfx force-pushed the missing-values-yaml branch from 72a1f46 to 5ef7b74 Compare October 14, 2025 11:50
Signed-off-by: Thiago Perrotta <[email protected]>
@thiagowfx thiagowfx force-pushed the missing-values-yaml branch 2 times, most recently from 175baed to fd4be7e Compare October 14, 2025 12:09
Signed-off-by: Thiago Perrotta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: skip values.yaml yamllint when it is absent

3 participants