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

tests: add helm upgrade tests #95

Merged
merged 8 commits into from
May 6, 2024
Merged

tests: add helm upgrade tests #95

merged 8 commits into from
May 6, 2024

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Apr 17, 2024

What this PR does / why we need it:

This PR adds some basic scaffolding for helm upgrade tests

Which issue this PR fixes

Part of #155

Special notes for your reviewer:

In order to perform update form pre 1.2 to 1.2+ we need to be able to disable ControlPlane and Gateway controllers because their respective CRDs (ControlPlane and GatewayConfiguration) got a breaking change in 1.2 (bump from v1alpha1 to v1beta without a KGO version that would allow a smooth transition).

This requires a change in the chart which would allow setting args because only KGO 1.2+ supports configuration via env. Kong/charts#1058 implements that.

The upgrade from pre 1.2 to 1.2 and up is not done as helm chart (used in this test suite) only contains the CRDs from 1.2 and since helm still doesn't provide CRD management there's no easy way to achieve that (well apart from applying the CRDs manually but we'd need to add manual steps for that).

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect significant changes

@pmalek pmalek added this to the KGO v1.3.x milestone Apr 17, 2024
@pmalek pmalek self-assigned this Apr 17, 2024
@pmalek pmalek force-pushed the helm-upgrade-tests branch 2 times, most recently from e66cdeb to 7972254 Compare April 18, 2024 16:54
@pmalek pmalek force-pushed the helm-upgrade-tests branch 17 times, most recently from 4487fd8 to 47a4ed3 Compare April 30, 2024 17:42
@pmalek pmalek force-pushed the helm-upgrade-tests branch 2 times, most recently from e06832f to f015318 Compare May 6, 2024 11:29
@pmalek pmalek marked this pull request as ready for review May 6, 2024 13:32
@pmalek pmalek requested a review from a team as a code owner May 6, 2024 13:32
Copy link
Member

@programmer04 programmer04 left a comment

Choose a reason for hiding this comment

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

Have you tested it with KGO EE? It seems it should work, but it's better to be sure 😉

test/helpers/setup.go Outdated Show resolved Hide resolved
test/e2e/environment.go Outdated Show resolved Hide resolved
test/e2e/environment.go Outdated Show resolved Hide resolved
@pmalek
Copy link
Member Author

pmalek commented May 6, 2024

Have you tested it with KGO EE? It seems it should work, but it's better to be sure 😉

Good point. I've created https://github.com/Kong/gateway-operator-enterprise/pull/137 to test this

@pmalek
Copy link
Member Author

pmalek commented May 6, 2024

Have you tested it with KGO EE? It seems it should work, but it's better to be sure 😉

Good point. I've created Kong/gateway-operator-enterprise#137 to test this

@programmer04 https://github.com/Kong/gateway-operator-enterprise/pull/137#issuecomment-2096470896

@pmalek pmalek merged commit 9f33d27 into main May 6, 2024
13 checks passed
@pmalek pmalek deleted the helm-upgrade-tests branch May 6, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants