-
Notifications
You must be signed in to change notification settings - Fork 486
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for vcluster-docs canceled.
|
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed !
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?