From 1b04483c48aea416d04daa45331f5fcc92a4d424 Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Wed, 16 Feb 2022 12:55:28 +0000 Subject: [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 --- projects/fluxcd/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/fluxcd/Dockerfile b/projects/fluxcd/Dockerfile index e4caaba8..2a9e357c 100644 --- a/projects/fluxcd/Dockerfile +++ b/projects/fluxcd/Dockerfile @@ -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 -- cgit v1.2.3