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 :)

@bpetit bpetit added this to Triage in General Jun 15, 2022
@bpetit bpetit moved this from Triage to To do in General Jul 6, 2022
@bpetit bpetit added this to the Release v0.6.0 milestone Aug 24, 2022
@bpetit bpetit moved this from To do to In progress in General Apr 21, 2023
@xhejtman
Copy link

Any change to get this merged?

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

Successfully merging this pull request may close these issues.

None yet

3 participants