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

Fix AWS Node Labels Error #3754

Merged
merged 1 commit into from
Nov 27, 2018

Conversation

MiaoZhou
Copy link
Contributor

@MiaoZhou MiaoZhou commented Nov 23, 2018

Now the kubespray-aws-inventory.py script always set a node_labels key
to ansible_host.

When AWS instance did not set property labels, it would be an empty
string.

The TASK Write kubelet config file (kubeadm or non-kubeadm) will
failed with a msg:

AnsibleUndefinedVariable: 'unicode object' has no attribute 'items'.

This may fix #3739

Now the `kubespray-aws-inventory.py` script always set a node_labels key
to ansible_host.

When AWS instance did not set property labels, it would be an empty
string.

The TASK `Write kubelet config file (kubeadm or non-kubeadm)` will
failed with a msg:

`AnsibleUndefinedVariable: 'unicode object' has no attribute 'items'`.
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: bradbeam

If they are not already assigned, you can assign the PR to them by writing /assign @bradbeam in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 23, 2018
@MiaoZhou
Copy link
Contributor Author

/assign @bradbeam

@Atoms Atoms merged commit b07e93e into kubernetes-sigs:master Nov 27, 2018
@MiaoZhou MiaoZhou deleted the fix-aws-node-label-error branch November 27, 2018 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
4 participants