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

feat: List only pods for current node #174

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

rossf7
Copy link
Contributor

@rossf7 rossf7 commented May 17, 2022

Towards #174

#k8s-sync = { path = "../rs-k8s-sync", optional = true }
k8s-openapi = { version = "0.13.0", features = ["v1_21"] }
#k8s-sync = { version = "0.2.3", optional = true }
k8s-sync = { git = "https://github.com/rossf7/rs-k8s-sync", branch = "fix/list-pods-options", optional = true }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

- name: KUBERNETES_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
Copy link
Contributor Author

Choose a reason for hiding this comment

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

..Default::default()
};
if !node_name.is_empty() {
list_options.field_selector = Some(&selector);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the cleanest way I could see to set the field selector as it uses a &str but it's very possible I'm missing something :)

@xhejtman
Copy link

Any change to get this merged?

@bpetit
Copy link
Contributor

bpetit commented Sep 12, 2024

Due to the delay on my side this pr has merge conflicts. I'll put it on top of the pile to merge this in the next weeks.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

3 participants