Skip to content

Add option to ExternalService to control envoy proxy arguments #74

Add option to ExternalService to control envoy proxy arguments

Add option to ExternalService to control envoy proxy arguments #74

Workflow file for this run

name: Go
on: [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go mod download
curl -L -o /tmp/kubebuilder https://github.com/kubernetes-sigs/kubebuilder/releases/download/v3.11.1/kubebuilder_linux_amd64
sudo mv /tmp/kubebuilder /usr/local/kubebuilder
cd coredns-plugin && go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Build CoreDNS plugin
run: cd coredns-plugin && go build -o coredns ./cmd
- name: Test
run: |
# make sure Go binaries are in PATH
export PATH=${PATH}:$(go env GOPATH)/bin
# install K8s testing components (apiserver etc)
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
# populate KUBEBUILDER_ASSETS env var
KUBEBUILDER_ASSETS=$(setup-envtest use -p path) go test ./... -ginkgo.v -v