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

Ensure helm templates manifests correspond to Kubernetes manifests 1:1 #1640

Open
cmwylie19 opened this issue Jan 8, 2025 · 1 comment · May be fixed by #1688
Open

Ensure helm templates manifests correspond to Kubernetes manifests 1:1 #1640

cmwylie19 opened this issue Jan 8, 2025 · 1 comment · May be fixed by #1688
Assignees
Milestone

Comments

@cmwylie19
Copy link
Collaborator

Describe what should be investigated or refactored

We need a way to ensure that our Kubernetes and Helm templated manifests stay in synchronization.

The task is to:

  • generate a Pepr Module with all possible values in the pepr section of package.json
  • Do a helm template . in the dist/static-test-chart > something
  • Compare each manifest to make sure they correspond 1 to 1
@cmwylie19 cmwylie19 added this to the v0.43.0 milestone Jan 8, 2025
@btlghrants btlghrants moved this from 🆕 New to 🏗 In progress in Pepr Project Board Jan 8, 2025
@btlghrants btlghrants self-assigned this Jan 8, 2025
@soltysh
Copy link
Contributor

soltysh commented Jan 9, 2025

One potential solution to this is generating a check sum (eg. SHA512) of the helm template result, and store that in one of the k8s resources as an annotation. This should speed up the comparison.

@btlghrants btlghrants linked a pull request Jan 14, 2025 that will close this issue
5 tasks
@btlghrants btlghrants removed a link to a pull request Jan 14, 2025
5 tasks
btlghrants pushed a commit that referenced this issue Jan 15, 2025
## Description

This PR provides a fix to feedback on #1642 


## Related Issue

Relates to #1640 

## Type of change

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

## Checklist before merging
- [x] 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
github-merge-queue bot pushed a commit that referenced this issue Jan 16, 2025
## Description

Pass build arg `withPullSecret` to helm 

## Related Issue

Fixes #1660 
<!-- or -->
Relates to #1640 

## Type of change

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

## Checklist before merging
- [x] 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

---------

Signed-off-by: Case Wylie <[email protected]>
Co-authored-by: Barrett LaFrance <[email protected]>
tamirazrab pushed a commit to tamirazrab/pepr that referenced this issue Jan 17, 2025
## Description

Pass build arg `withPullSecret` to helm 

## Related Issue

Fixes defenseunicorns#1660 
<!-- or -->
Relates to defenseunicorns#1640 

## Type of change

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

## Checklist before merging
- [x] 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

---------

Signed-off-by: Case Wylie <[email protected]>
Co-authored-by: Barrett LaFrance <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

3 participants