-
Notifications
You must be signed in to change notification settings - Fork 41.5k
fix annoying 'please check...' messages; remove v1beta1&2 ref #9966
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
Conversation
Thanks. This was listed in #8087, but wasn't prioritized correctly. |
#9854 tries to add the fieldmapping for v1, but this PR seems more comprehensive. |
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.
PodHost is spec.nodeName in v1.
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.
that may be true, but this needs updating as well then:
func PodToSelectableFields(pod *api.Pod) fields.Set {
return fields.Set{
"metadata.name": pod.Name,
"spec.host": pod.Spec.NodeName,
"status.phase": string(pod.Status.Phase),
}
}
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.
if I understand correctly, all of these things have to match:
- the label returned from the
AddFieldLabelConversionFunc
for Pod in all versions - the key returned from
PodToSelectableFields
- the value of
client.PodHost
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.
Good point. Yes, we should fix those.
cc @liggitt |
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.
We should eliminate minions, at least in v1.
Tagged with v1.0 because it's part of #7018 that was missed. |
GCE e2e build/test passed for commit f990899. |
based on #9966: fix annoying 'please check...' messages; remove v1beta1&2 ref
@bgrant0607 @caesarxuchao @krousey
Part of this is a thing that was missed in removing v1beta1&2, and also in adding v1.