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

Uptest clears package cache during import tests resulting unhealthy providers #17

Open
turkenh opened this issue Jul 2, 2024 · 0 comments · May be fixed by #28
Open

Uptest clears package cache during import tests resulting unhealthy providers #17

turkenh opened this issue Jul 2, 2024 · 0 comments · May be fixed by #28
Labels
bug Something isn't working

Comments

@turkenh
Copy link
Member

turkenh commented Jul 2, 2024

What happened?

In provider kubernetes, I want to test some alpha features using uptest. I am using hooks to patch DeploymentRuntimeConfig with feature flags which works fine. However, I am observing provider resource reporting unhealthy after each example preventing rollout of new config to the provider controller.

Upon further investigation, I noticed that this is because how we handle imports. It looks like, we stop / start Crossplane which causes losing the package in the cache which was loaded in the beginning of e2e flow.

Based on my offline conversations with @sergenyalcin, we do this to stop / start providers to clear the state cache in the providers to ensure we validate import functionality. We should achieve the same by patching the replicas in the respective DeploymentRuntimeConfig.

How can we reproduce it?

Run e2e with uptest and check provider health using:

❯ kubectl get providers.pkg.crossplane.io
NAME                  INSTALLED   HEALTHY   PACKAGE                                          AGE
provider-kubernetes   True        False     provider-kubernetes-v0.14.0-rc0.60.gdb2a37c.gz   59m

What environment did it happen in?

  • Uptest Version: v0.9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant