Add option to ExternalService to control envoy proxy arguments #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |