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

Generate NodePort address listings from PersistentVolume reservations #231

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

Conversation

nightkr
Copy link
Member

@nightkr nightkr commented Oct 4, 2024

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

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

Reviewer

Acceptance

Comment on lines 225 to 233
.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();
Copy link
Member Author

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant