Skip to content

Conversation

@IvanovOleg
Copy link
Contributor

@IvanovOleg IvanovOleg commented May 24, 2018

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #108

Special notes for your reviewer:
Could you please at least build it and upload artifacts somewhere? Because this problem blocks me and I can't build it myself because of #148
Release note:

Use /etc/os-release instead of /etc/issue as a source for the osInfo because /etc/issue contains completely different lines depending on the linux distributive and fails on the CoreOS

@msftclas
Copy link

msftclas commented May 25, 2018

CLA assistant check
All CLA requirements met.

@IvanovOleg
Copy link
Contributor Author

Another changes related to the build issues #148 went to my fork, sorry. I can prepare another PR if you want. Let me know.

Copy link
Member

@tamilmani1989 tamilmani1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IvanovOleg Please create PR for /etc/os-release issue alone. We are already fixing the get cmd part.

osInfoArr := make(map[string]string)

for i := range linesArr {
s := strings.Split(linesArr[i], "=")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we check if the Split is successful here?

Copy link
Contributor Author

@IvanovOleg IvanovOleg May 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works, but you can check it yourself if you want. I've checked this split by isolating the function and printing the result, it worked. Then I built the artifact from my fork and use it with my kubernetes 1.10.3. That issue disappeared.

@IvanovOleg
Copy link
Contributor Author

I am going to prepare two PRs instead of this one.

@IvanovOleg
Copy link
Contributor Author

#154

@tamilmani1989
Copy link
Member

@IvanovOleg closing this PR as you opened a new PR #154

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.

CNI plugins show "index out of range" on CentOS 7.4 for kubernetes 1.8.9

3 participants