[kOps] Initial integration (#4729)

* [teleport] Initial integration

* Minor update to run tests again

* [Kops] Initial integration

* Minor adjustment

* Run tests again

* Removed comment

* --depth'ed cloning of two repositories
This commit is contained in:
AdamKorcz 2020-12-08 04:19:39 +00:00 committed by GitHub
parent ca4fe7678b
commit 32ef0b191c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -17,8 +17,10 @@
FROM gcr.io/oss-fuzz-base/base-builder
RUN go get github.com/ianlancetaylor/demangle
RUN git clone --depth 1 https://github.com/kubernetes/kubernetes.git $GOPATH/src/k8s.io/kubernetes
RUN git clone --depth 1 https://github.com/kubernetes/kubernetes.git
RUN git clone --depth 1 https://github.com/google/AFL
RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus
RUN go get k8s.io/kops
WORKDIR $SRC/
WORKDIR $GOPATH/src/k8s.io/kubernetes
COPY build.sh $SRC/build.sh
COPY build.sh $SRC/

View File

@ -20,6 +20,13 @@ set -o pipefail
set -o errexit
set -x
# Compile kOps fuzzers
$GOPATH/src/k8s.io/kops/tests/fuzz/build.sh
# Compile Kubernetes fuzzers
mv $SRC/kubernetes $GOPATH/src/k8s.io/
function compile_fuzzer {
local pkg=$1
local function=$2