Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tolerate optional fields from external pepr module definitions #1732

Merged
merged 6 commits into from
Jan 29, 2025

Conversation

samayer12
Copy link
Contributor

@samayer12 samayer12 commented Jan 27, 2025

Description

This PR relates to an issue where customLabels were not being applied to a Helm chart after running pepr build.

Related Issue

Relates to #1713

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.71%. Comparing base (677fa26) to head (35410f9).
Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1732   +/-   ##
=======================================
  Coverage   79.71%   79.71%           
=======================================
  Files          50       50           
  Lines        2115     2115           
  Branches      451      460    +9     
=======================================
  Hits         1686     1686           
- Misses        401      427   +26     
+ Partials       28        2   -26     
Files with missing lines Coverage Δ
src/cli/init/templates.ts 70.58% <100.00%> (ø)
src/lib/core/module.ts 81.81% <ø> (ø)

... and 8 files with indirect coverage changes

@samayer12 samayer12 force-pushed the 1713-helm-custom-labels branch from 1e1f9e6 to eb7b1ce Compare January 28, 2025 15:53
@samayer12 samayer12 force-pushed the 1713-helm-custom-labels branch from 293ff8d to 35410f9 Compare January 28, 2025 20:05
@samayer12 samayer12 changed the title fix: pass custom config labels to helm chart output fix: tolerate optional fields from external pepr module definitions Jan 28, 2025
@samayer12
Copy link
Contributor Author

samayer12 commented Jan 28, 2025

There are some missing tests and execution flows with overridesFile.ts, this is the first step in addressing those problems by making typing a little more coherent.

@samayer12 samayer12 marked this pull request as ready for review January 28, 2025 20:18
@samayer12 samayer12 requested a review from a team as a code owner January 28, 2025 20:18
@cmwylie19
Copy link
Contributor

stronger typing, more concise

@cmwylie19 cmwylie19 added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit 2e03a46 Jan 29, 2025
51 checks passed
@cmwylie19 cmwylie19 deleted the 1713-helm-custom-labels branch January 29, 2025 15:59
github-merge-queue bot pushed a commit that referenced this pull request Jan 30, 2025
## Description

This PR builds off #1732 to address #1713 

## Related Issue

Fixes #1713

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging
- [ ] Unit,
[Journey](https://github.com/defenseunicorns/pepr/tree/main/journey),
[E2E Tests](https://github.com/defenseunicorns/pepr-excellent-examples),
[docs](https://github.com/defenseunicorns/pepr/tree/main/docs),
[adr](https://github.com/defenseunicorns/pepr/tree/main/adr) added or
updated as needed
- [x] [Contributor Guide
Steps](https://docs.pepr.dev/main/contribute/#submitting-a-pull-request)
followed

---------

Co-authored-by: Case Wylie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants