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

Potential infinite loop in the setup.sh script #20

Open
dmuiruri opened this issue Jan 23, 2024 · 0 comments
Open

Potential infinite loop in the setup.sh script #20

dmuiruri opened this issue Jan 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dmuiruri
Copy link
Collaborator

The code segment below is found in the setup.sh file and runs the risk of getting into an infinite loop if for some reason the application of the manifest fails. For example, when deploying in an environment without enough hardware resources (nodes).

while true; do
  if kubectl apply -f "$tmpfile"; then
      echo "Resources successfully applied."
      rm "$tmpfile"
      break
  else
      echo "Retrying to apply resources. Be patient, this might take a while..."
      sleep 10
  fi
done
@dmuiruri dmuiruri changed the title Potential infinite lopp in the setup.sh script Potential infinite loop in the setup.sh script Jan 23, 2024
@dmuiruri dmuiruri added the enhancement New feature or request label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant