File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
snapshot-validation-webhook Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11
22{{- define " alt packages proxy" }}
33{{- end }}
4+
5+ {{- define " alpine packages proxy" }}
6+ {{- end }}
Original file line number Diff line number Diff line change @@ -46,11 +46,12 @@ secrets:
4646 value : {{ .GOPROXY }}
4747
4848shell :
49- beforeInstall :
50- - apk add --no-cache make bash git
49+ beforeInstall :
50+ {{- include "alpine packages proxy" . | nindent 2 }}
51+ - apk add --no-cache make bash git
5152 install :
5253 - cd /src/snapshot-controller
53- - GO_VERSION=$(cat /run/secrets/GOLANG_VERSION) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
54+ - export GO_VERSION=$(cat /run/secrets/GOLANG_VERSION) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
5455 - GOPROXY=$(cat /run/secrets/GOPROXY) go mod download
5556 - make build
5657 - cp bin/snapshot-controller bin/csi-snapshotter bin/snapshot-validation-webhook /
Original file line number Diff line number Diff line change @@ -46,11 +46,12 @@ secrets:
4646 value : {{ .GOPROXY }}
4747
4848shell :
49- beforeInstall :
50- - apk add --no-cache make bash git
49+ beforeInstall :
50+ {{- include "alpine packages proxy" . | nindent 2 }}
51+ - apk add --no-cache make bash git
5152 install :
5253 - cd /src/snapshot-controller
53- - GO_VERSION=$(cat /run/secrets/GOLANG_VERSION) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
54+ - export GO_VERSION=$(cat /run/secrets/GOLANG_VERSION) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
5455 - GOPROXY=$(cat /run/secrets/GOPROXY) go mod download
5556 - make build
5657 - cp bin/snapshot-controller bin/csi-snapshotter bin/snapshot-validation-webhook /
You can’t perform that action at this time.
0 commit comments