Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lavalamp
Copy link
Contributor

@bgrant0607 @caesarxuchao @krousey

Part of this is a thing that was missed in removing v1beta1&2, and also in adding v1.

@bgrant0607
Copy link
Member

Thanks. This was listed in #8087, but wasn't prioritized correctly.

@caesarxuchao
Copy link
Contributor

#9854 tries to add the fieldmapping for v1, but this PR seems more comprehensive.

Copy link
Member

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.

Copy link
Member

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),
    }
}

Copy link
Member

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

Copy link
Member

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.

@bgrant0607
Copy link
Member

cc @liggitt

Copy link
Member

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.

@bgrant0607 bgrant0607 added this to the v1.0 milestone Jun 17, 2015
@bgrant0607
Copy link
Member

Tagged with v1.0 because it's part of #7018 that was missed.

@k8s-bot
Copy link

k8s-bot commented Jun 17, 2015

GCE e2e build/test passed for commit f990899.

@satnam6502 satnam6502 merged commit f990899 into kubernetes:master Jun 19, 2015
satnam6502 added a commit that referenced this pull request Jun 19, 2015
based on #9966: fix annoying 'please check...' messages; remove v1beta1&2 ref
@lavalamp lavalamp deleted the fixClientFields branch September 1, 2020 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants