-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
base: dev
Are you sure you want to change the base?
Conversation
#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 } |
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.
Needs bpetit/rs-k8s-sync#2
- name: KUBERNETES_NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName |
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 uses the Downward API to set the node name.
..Default::default() | ||
}; | ||
if !node_name.is_empty() { | ||
list_options.field_selector = Some(&selector); |
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 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 :)
Any change to get this merged? |
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 |
Towards #174