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

helm: Refine snapshotting for Deployment/StatefulSet in unit tests #11279

Merged
merged 4 commits into from
Mar 22, 2022

Conversation

webvictim
Copy link
Contributor

@webvictim webvictim commented Mar 21, 2022

Rebasing a couple of Helm PRs to include unit testing has made me realise that there's very little point in snapshotting the entire Deployment/StatefulSet manifest because it has the checksum/config annotation which changes every time the Teleport config file is altered.

This will get very annoying to deal with and mean that any PRs which alter the Teleport config will have to be merged one by one and then rebased and modified again with another commit to handle the updated checksum before merging. This is exactly the same thing that I had to do over and over for Drone while I was iterating on it, so I'm making sure to stop this early!

All the interesting stuff is in spec.template.spec, so this PR changes the relevant tests to just snapshot that instead. We still snapshot the entire config in the Config test suite.

@webvictim webvictim added the helm label Mar 21, 2022
@webvictim webvictim self-assigned this Mar 21, 2022
@webvictim webvictim requested a review from zmb3 March 21, 2022 03:23
@github-actions github-actions bot requested review from r0mant and russjones March 21, 2022 03:23
@webvictim webvictim merged commit ee5b859 into master Mar 22, 2022
@webvictim webvictim deleted the gus/helm/refine-snapshotting branch March 22, 2022 01:29
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.

3 participants