-
Notifications
You must be signed in to change notification settings - Fork 0
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
Generate NodePort address listings from PersistentVolume reservations #231
base: main
Are you sure you want to change the base?
Conversation
.list_with_label_selector::<PersistentVolume>( | ||
&(), | ||
&LabelSelector { | ||
match_labels: Some(listener_persistent_volume_label(&listener).unwrap()), | ||
..Default::default() | ||
}, | ||
) | ||
.await | ||
.with_context(|_| GetObjectSnafu { | ||
obj: ObjectRef::<Endpoints>::new(&svc_name).within(ns).erase(), | ||
})? | ||
// Endpoints object may not yet be created by its respective controller | ||
.unwrap_or_default(); | ||
let node_names = endpoints | ||
.subsets | ||
.unwrap(); |
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.
This will only work with volumes that have been mounted at least once since upgrading.. maybe we want to merge the two mechanisms to help make migration more seamless?
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.
Description
Fixes #220, fixes #229.
This should make stable address listings.. stabler, since the PV "represents" the lifetime of the reservation.
Definition of Done Checklist
Author
Reviewer
Acceptance