Skip to content

Commit

Permalink
old-operator.yaml: update ci
Browse files Browse the repository at this point in the history
- use a ubuntu 20.04
- set nf_conntrack_max to avoid CrashLoopBackOff for kube proxy (see
kubernetes-sigs/kind#2240 (comment))
- print cluster info as soon as KinD is up
- use kind-action v1.4.0
- bump KinD to v0.10.0
- use kube-tools v1.5.0

Signed-off-by: Mattia Mazzucato <matt.mazzucato@gmail.com>
  • Loading branch information
matt-mazzucato committed Jul 1, 2021
1 parent 5668a88 commit c901014
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/old-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,27 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
# Ensure we're on Go 1.15
go-version: '1.15.x'
- uses: stefanprodan/kube-tools@v1
- uses: stefanprodan/kube-tools@v1.5.0
with:
kubectl: 1.18.2
kustomize: 3.5.5
helm: 2.16.7
helmv3: 3.2.1
- uses: container-tools/kind-action@v1
- name: Set nf_conntrack_max value
# This step is required to avoid CrashLoopBackOff for kube-proxy
# see https://github.com/kubernetes-sigs/kind/issues/2240#issuecomment-838510890
run: |
sudo sysctl net/netfilter/nf_conntrack_max=131072
- uses: container-tools/kind-action@v1.4.0
with:
version: "v0.8.1"
version: "v0.10.0"
node_image: "kindest/node:v1.16.9@sha256:7175872357bc85847ec4b1aba46ed1d12fa054c83ac7a8a11f5c268957fd5765"
# Download Operator SDK binary
- name: Download Operator SDK
Expand All @@ -49,6 +54,9 @@ jobs:
run: |
kubectl cluster-info
kubectl get pods -n kube-system
- name: Dump cluster info
run: |
kubectl cluster-info dump
- name: Download astartectl
run: |
curl -L -o astartectl https://github.com/astarte-platform/astartectl/releases/download/v0.10.4/astartectl_linux_amd64
Expand Down

0 comments on commit c901014

Please sign in to comment.