11---
22# Source https://github.com/kubevirt/kubevirt/blob/v1.3.1/hack/dockerized#L15
33{{- $gitRepoName := "3p-kubevirt" }}
4+ {{- $gitRepoUrl := (printf "%s/%s" "deckhouse" $gitRepoName) }}
45{{- $tag := get $.Core $gitRepoName }}
56{{- $version := (split "-" $tag)._0 }}
67
8+
79---
810image : {{ .ModuleNamePrefix }}{{ .ImageName }}-src-artifact
911final : false
@@ -13,7 +15,11 @@ secrets:
1315 value : {{ $.SOURCE_REPO }}
1416shell :
1517 install :
16- - git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/deckhouse/3p-kubevirt --branch {{ $tag }} /src/kubevirt
18+ - |
19+ echo "Git clone {{ $gitRepoName }} repository..."
20+ git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $tag }} /src/kubevirt
21+
22+ rm -rf /src/kubevirt/.git
1723
1824 ---
1925
@@ -79,30 +85,8 @@ shell:
7985 export GOPROXY=$(cat /run/secrets/GOPROXY)
8086 mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
8187 cd /kubevirt
82- go mod download
83- go get github.com/opencontainers/[email protected] 84- go get github.com/containers/[email protected] 8588
86- - |
87- echo Download Go modules.
8889 go mod download
89-
90- echo Update modules to mitigate CVEs...
91- go get github.com/opencontainers/[email protected] 92- go get github.com/containers/[email protected] 93-
94- go get github.com/go-openapi/[email protected] 95- go get github.com/onsi/gomega/matchers/support/goraph/[email protected] 96- go get github.com/cilium/ebpf/[email protected] 97- go get github.com/cilium/ebpf/[email protected] 98-
99- # CVE-2024-45337,CVE-2025-22869
100- go get golang.org/x/[email protected] 101- # CVE-2025-22870, CVE-2025-22872
102- go get golang.org/x/[email protected] 103- # CVE-2025-22868
104- go get golang.org/x/[email protected] 105-
10690 go mod vendor
10791
10892 setup :
0 commit comments