-
Notifications
You must be signed in to change notification settings - Fork 339
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
chore(releases): updating Alpine to 3.11 #672
Conversation
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Use a more portable ip address resolving to work with the new Alpine. Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
c45a096
to
1fec421
Compare
fa8e6a5
to
9a02e83
Compare
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
9a02e83
to
7050efb
Compare
@@ -7,7 +7,7 @@ set -e | |||
# | |||
|
|||
function resolve_ip { | |||
nslookup "${1}" 2>/dev/null | tail -1 | awk '{print $3}' | |||
getent hosts ${DATAPLANE_HOSTNAME} 2>/dev/null | awk -e '{ print $1 }' |
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's nice! Do you think we need to get local IP the same way here:
https://github.com/Kong/kuma/blob/master/pkg/plugins/runtime/k8s/webhooks/injector/injector.go#L169
and here: https://github.com/Kong/kuma/blob/master/pkg/plugins/runtime/k8s/webhooks/injector/injector.go#L185
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.
Not sure what you mean, but if you refer to resolving localhost
that might be a thing. You should try it.
BTW all the credit for this specific solution should go to @jakubdyszkiewicz for finding it. I tried other tricks.
Updating alpine to version 3.11.
We also need to update the resolve_ip function when installing the example in docker-composer. Drop
nslookup
and replace it with a simplergetnent
approach. This makes it more portable and stable across upgrades.Use the occasion to bump the Ubuntu image in the CI, so we ensure we run on the latest docker/docker-composer available in CirlceCI's VMs.