Skip to content

Commit

Permalink
Merge pull request #20 from AbsaOSS/downgrade
Browse files Browse the repository at this point in the history
[Fix] No resource found
  • Loading branch information
kuritka authored Mar 1, 2021
2 parents dc55e5a + 8e1cbdd commit 78b27fb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/single-cluster-node-list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Retrieving nodes right after we create cluster

on:
[workflow_dispatch, push]
jobs:
k3d-node-list-demo:
name: Retrieving nodes right after we create cluster
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./
name: node-list
with:
cluster-name: "node-list"
args: >-
--no-lb
--k3s-server-arg "--no-deploy=traefik,servicelb,metrics-server"
- run: kubectl get nodes
3 changes: 1 addition & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,12 @@ wait_for_nodes(){
# shellcheck disable=SC2162
while read status
do
if [[ "$status" == "NotReady" ]]
if [ "$status" == "NotReady" ] || [ "$status" == "" ]
then
readyNodes=0
break
fi
done <<< "$(echo -e "$statusList")"

# all nodes are ready; exit
if [[ $readyNodes == 1 ]]
then
Expand Down

0 comments on commit 78b27fb

Please sign in to comment.