Skip to content

feat(proxy): make Kube client throttling rates configurable #215

feat(proxy): make Kube client throttling rates configurable

feat(proxy): make Kube client throttling rates configurable #215

Workflow file for this run

name: Code
on:
pull_request:
paths-ignore:
- helm/**
- "**/*.md"
permissions:
contents: read
pull-requests: read
jobs:
static-analysis:
name: Static Analysis
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
only-new-issues: true
args: --timeout 3m --verbose --issues-exit-code=0
#args: --issues-exit-code=0
#skip-cache: true
#skip-build-cache: true
#skip-pkg-cache: true
unit-testing:
name: Unit Testing
strategy:
matrix:
kubernetes-version: ['1.21', '1.22', '1.23', '1.24', '1.25', '1.26']
runs-on: ubuntu-22.04
env:
ENVTEST_K8S_VERSION: ${{ matrix.kubernetes-version }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Restore cached Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run unit tests
run: |
set -euo pipefail
make test
go tool cover -html=cover.out -o coverage.html
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage.html