-
Notifications
You must be signed in to change notification settings - Fork 500
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
e2e: meta sync #164
e2e: meta sync #164
Conversation
/run-e2e-tests |
/run-e2e-tests |
return false, nil | ||
} | ||
for _, member := range members.Members { | ||
if member.Name == podName { |
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.
What if there is no member name matching pod name?
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.
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.
done
} | ||
for _, store := range stores.Stores { | ||
addr := store.Store.GetAddress() | ||
if strings.Split(addr, ".")[0] == podName { |
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.
Also what if no matching?
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.
ditto
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.
done
for _, vol := range pod.Spec.Volumes { | ||
if vol.PersistentVolumeClaim != nil { | ||
pvcName = vol.PersistentVolumeClaim.ClaimName | ||
break |
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.
if the pod have multiple pvcs?
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.
currently, there are no multiple pvcs
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.
LGTM
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
* e2e: meta sync
Co-authored-by: Cody (Xuecheng) Zhang <csuzhangxc@gmail.com>
This pr adds the e2e specs to ensure meta informations are synced properly.
@tennix @onlymellb @xiaojingchen PTAL