-
Notifications
You must be signed in to change notification settings - Fork 771
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 EnvSort struct #631
Fix EnvSort struct #631
Conversation
Tests(unit tests, functional tests) |
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.
I feel that these functions (EnvSort) should be in utils.go
as they're used for both OpenShift and Kubernetes.
In regards to the new code in initBuildConfig, I believe that code should be refactored into a new function (perhaps sortEnvVars?).
54369f4
to
b89eb54
Compare
b89eb54
to
13bb581
Compare
Ping @kadel please review. |
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.
except adding one small comment, LGTM
for _, v := range service.Environment { | ||
envs = append(envs, api.EnvVar{ | ||
Name: v.Name, | ||
Value: v.Value, | ||
}) | ||
} | ||
|
||
sort.Sort(envs) |
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.
Can you add please add a short comment explaining why it needs to be sorted?
LGTM / I approve these changes. Other than the nitpick from @kadel 's comment. I agree with adding a few comments. |
…al tests in golang kubernetes#518 to fail
13bb581
to
719dae9
Compare
Thanks @kadel ;) |
Fixes #627 and unblocks #518
cc: @surajssd @cdrage