aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Paulo Gomes <paulo.gomes@weave.works>2022-02-16 12:55:28 +0000
committerGravatar GitHub <noreply@github.com>2022-02-16 12:55:28 +0000
commit1b04483c48aea416d04daa45331f5fcc92a4d424 (patch)
tree1d706ea0234fbdcb6a239d09c8bb4bb462d1bf52
parent16c9c2ded64361715564f13aa564c6894e0a251e (diff)
[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>
-rw-r--r--projects/fluxcd/Dockerfile9
1 files 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