Skip to content

[Snyk] Security upgrade alpine from 3.15.0 to 3.18.4 #15

[Snyk] Security upgrade alpine from 3.15.0 to 3.18.4

[Snyk] Security upgrade alpine from 3.15.0 to 3.18.4 #15

Workflow file for this run

name: E2E over minikube
on:
pull_request:
push:
branches:
- "main"
jobs:
e2eTests:
# Do not run e2e tests if commit message or PR has skip-e2e.
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'ci/skip-e2e') }}
runs-on: ubuntu-20.04
strategy:
max-parallel: 5 # len(k8sVersion)/2 is a good number to have here
matrix:
# Latest patch version can be found in https://github.com/kubernetes/website/blob/main/content/en/releases/patch-releases.md
# Some versions might not be available yet in https://storage.googleapis.com/kubernetes-release/release/v1.X.Y/bin/linux/amd64/kubelet
k8sVersion: [ "v1.22.3", "v1.21.4", "v1.20.10", "v1.19.14", "v1.18.20", "v1.17.17", "v1.16.15" ]
cri: [ docker ]
include:
- k8sVersion: v1.22.3
cri: containerd
- k8sVersion: v1.21.4
cri: containerd
env:
DOCKER_BUILDKIT: '1' # Setting DOCKER_BUILDKIT=1 ensures TARGETOS and TARGETARCH are populated
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Minikube
uses: manusa/[email protected]
with:
minikube version: v1.23.2
kubernetes version: ${{ matrix.k8sVersion }}
driver: docker
start args: "--nodes=2 --container-runtime=${{ matrix.cri }}"
- name: Enable addons minikube needed for HPA
run: |
minikube addons enable metrics-server
- name: Compile, Build and load Images
run: |
GOOS=linux GOARCH=amd64 make compile # Set GOOS and GOARCH explicitly since Dockerfile expects them in the binary name
docker build -t e2e/nri-kubernetes:e2e .
minikube image load e2e/nri-kubernetes:e2e
- name: Setup Helm
run: |
chmod go-r /home/runner/.kube/config
helm repo add newrelic https://helm-charts.newrelic.com
helm repo add kube-state-metrics https://kubernetes.github.io/kube-state-metrics
helm repo update
- name: Run e2e-test
uses: newrelic/newrelic-integration-e2e-action@v1
with:
retry_seconds: 60
retry_attempts: 5
agent_enabled: false
spec_path: e2e/test-specs.yml
account_id: ${{ secrets.COREINT_E2E_ACCOUNT_ID }}
api_key: ${{ secrets.COREINT_E2E_API_KEY }}
license_key: ${{ secrets.COREINT_E2E_LICENSE_KEY }}