Skip to content

Commit

Permalink
Merge pull request karmada-io#5369 from iawia002/post-install
Browse files Browse the repository at this point in the history
charts/karmada: ignore the static-resource Pod in the post-install check
  • Loading branch information
karmada-bot authored Aug 19, 2024
2 parents f3ae66b + 8f3e32c commit 7eb8590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/karmada/templates/post-install-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ spec:
# The `post-install hook job` may be applied before all karmada components are ready that rely on `static-resource job` and `hook-job secret`.
# So, we have to postpone the deletion of the `static-resource job` and `hook-job secret` until all karmada components are up and running.
while [[ $(kubectl get pods -n {{ $namespace }} --field-selector=status.phase!=Running,status.phase!=Succeeded -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | wc -l) > 0 ]]; do
while [[ $(kubectl get pods -n {{ $namespace }} --field-selector=status.phase!=Running,status.phase!=Succeeded -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | grep -v static-resource | wc -l) > 0 ]];
do
echo "waiting for all pods of karmada control plane ready..."; sleep 1;
done
Expand Down

0 comments on commit 7eb8590

Please sign in to comment.