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

Chart: change HPA api version to v2. Add chart tests #1026

Merged

Conversation

michaelvl
Copy link
Contributor

The gatekeeper-policy-manager Helm chart use a HorizontalPodAutpscaler API version of v2beta1, which was removed in Kubernetes 1.25. This PR updates the API version to v2. The v2 version became GA in Kubernetes 1.23.

This PR also adds tests of the chart using GitHub actions and KIND. I realize this is a bit of a 'big' change for a small fix, but such tests may prove valuable for future additions. Testing is done using chart-testing https://github.com/helm/chart-testing and a few test values-files have been provided - one of which enables the HPA.

Copy link
Member

@ralgozino ralgozino left a comment

Choose a reason for hiding this comment

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

Hi @michaelvl, thanks for the fix!

This PR also adds tests of the chart using GitHub actions and KIND. I realize this is a bit of a 'big' change for a small fix, but such tests may prove valuable for future additions. Testing is done using chart-testing https://github.com/helm/chart-testing and a few test values-files have been provided - one of which enables the HPA.

Thanks for the e2e test! We are using a different tool for CI and e2e testing. Would you mind removing that part from the PR to keep it scoped to the HPA fix?
I'll add some e2e tests for the chart based on your proposal.

Thanks again and have a nice day!

@ralgozino ralgozino self-assigned this Feb 19, 2024
@michaelvl
Copy link
Contributor Author

Sure. I have removed the CI parts.

Copy link
Member

@ralgozino ralgozino left a comment

Choose a reason for hiding this comment

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

thank you!

@ralgozino ralgozino merged commit a48d6b7 into sighupio:main Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants