Skip to content

Commit

Permalink
Bump Kind version and fix problem with job not completing in time.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Oct 10, 2021
1 parent 53490bc commit 54a03d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
- name: Run test script.
run: tests/${{ matrix.test_script }}.sh
env:
KIND_VERSION: "v0.9.0"
KIND_VERSION: "v0.11.1"
8 changes: 8 additions & 0 deletions testing-molecule-kind/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@
gather_facts: true

tasks:
- name: Pause for job to complete.
pause:
seconds: 5

- name: Get 'hello' Job info.
k8s_info:
kind: Job
name: hello
namespace: default
register: jobs

- name: Debug.
debug:
var: jobs

- name: Assert that 'hello' Job ran successfully.
assert:
that: jobs['resources'][0]['status']['succeeded'] == 1
2 changes: 1 addition & 1 deletion tests/cluster-aws-eks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ echo "Linting playbooks with ansible-lint..."
ansible-lint $playbooks

# Install Kind.
KIND_VERSION="v0.9.0"
KIND_VERSION="v0.11.1"
sudo curl -Lo /usr/local/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/"${KIND_VERSION}"/kind-linux-amd64
sudo chmod +x /usr/local/bin/kind

Expand Down
2 changes: 1 addition & 1 deletion tests/testing-molecule-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cd testing-molecule-kind
pip3 install ansible ansible-lint molecule openshift

# Install Kind.
KIND_VERSION="v0.9.0"
KIND_VERSION="v0.11.1"
sudo curl -Lo /usr/local/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/"${KIND_VERSION}"/kind-linux-amd64
sudo chmod +x /usr/local/bin/kind

Expand Down

0 comments on commit 54a03d7

Please sign in to comment.