[fluxcd] Add outstanding repositories (#7277)

Flux is made of multiple repositories, this PR extends the Fuzz coverage to:
- pkg
- notification-controller
- kustomize-controller
- helm-controller
- image-reflector-controller
- source-controller
- image-automation-controller

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
Paulo Gomes 2022-02-16 12:55:28 +00:00 committed by GitHub
parent 16c9c2ded6
commit 1b04483c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -19,10 +19,11 @@ FROM gcr.io/oss-fuzz-base/base-builder-go
ENV PROJECT_ROOT="${GOPATH:-/root/go}/src/github.com/fluxcd"
RUN mkdir -p "${PROJECT_ROOT}"
RUN git clone --depth 1 https://github.com/fluxcd/notification-controller \
"${PROJECT_ROOT}/notification-controller"
RUN git clone --depth 1 https://github.com/fluxcd/pkg \
"${PROJECT_ROOT}/pkg"
# Flux has its components scattered around multiple repositories due to its architecture.
# Here we clone all of them. The build process happens as build.sh iterate over each one of them.
ARG REPOSITORIES="pkg notification-controller kustomize-controller helm-controller image-reflector-controller source-controller image-automation-controller"
RUN for repo in ${REPOSITORIES}; do git clone --depth 1 "https://github.com/fluxcd/${repo}" "${PROJECT_ROOT}/${repo}"; done
COPY build.sh $SRC/
WORKDIR $SRC