Skip to content

feat(e2e): snapshot restore e2e tests #2563

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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

adriankabala
Copy link
Contributor

@adriankabala adriankabala commented Mar 6, 2025

What issue type does this pull request address? (keep at least one, remove the others)
/kind test

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves #

Please provide a short message that should be published in the vcluster release notes
Fixed an issue where vcluster ...

What else do we need to know?

Copy link

netlify bot commented Mar 6, 2025

Deploy Preview for vcluster-docs canceled.

Name Link
🔨 Latest commit b54d31d
🔍 Latest deploy log https://app.netlify.com/sites/vcluster-docs/deploys/67ecee6578eda400083e613a

@adriankabala adriankabala changed the title feat(e2e): snapshot restore scenario added feat(e2e): snapshot restore e2e tests Mar 6, 2025
@adriankabala adriankabala requested a review from a team March 6, 2025 10:18
@adriankabala adriankabala marked this pull request as ready for review March 6, 2025 10:18
@adriankabala adriankabala requested a review from a team as a code owner March 6, 2025 10:18
@adriankabala adriankabala requested a review from sowmyav27 March 27, 2025 13:01
gomega.Eventually(func() int {
services, err := f.HostClient.CoreV1().Services(vClusterDefaultNamespace).List(f.Context, metav1.ListOptions{
LabelSelector: "snapshot=delete",
//Check configmap created before snapshot is available
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need a polling here? When vCluster is Running, the configmaps should just be present isn;t it?
So just this should work?

configmaps, err := f.VClusterClient.CoreV1().ConfigMaps(defaultNamespace).List(f.Context, metav1.ListOptions{
				LabelSelector: "snapshot=restore",
			})

			if len(configmaps.Items) != 1 {
				return map[string]string{}
			}
			restoredConfigmap := configmaps.Items[0]
			framework.ExpectNoError(err)

Similar comment for secrets and deployments below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed !

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.

2 participants