Open goodhoko opened 5 years ago
I think the desired behavior is this:
Right? Hence if you'd prefer to not apply the rbac, patch the init script to not do get node
.
Yes I can see the objective here but then the
if [ $? -ne 0 ]; then
condition is good for nothing as when it would be true the init script has already exited, right?
@solsson I've reated a pull request which removes these checks. Of course, I don't know if there is some more reasoning behind them. If so just close the request. I've created with an attitude of 'better propose something real than just complain in comments.
Hello Solsson .)
If I get this part of init.sh right:
It's purpose is to try to lookup the zone. The If part then should handle eventual failure of the
kubectl
command.However in our case when the
kubectl
fails withit fails the whole init container (I guess becase of the
set -e
above) and Init:CrashLoopBackOff begins. 🔁I should add that we made no modifications to the init script nor the manifests of this repo.
the init container logs: