Commit 0c051e2 1 parent 96108a0 commit 0c051e2 Copy full SHA for 0c051e2
File tree 4 files changed +27
-0
lines changed
4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
# Ignore the built binary
15
15
cert-manager-webhook-ovh
16
+ _out
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ OUT := $(shell pwd)/_out
6
6
$(shell mkdir -p "$(OUT)")
7
7
8
8
verify :
9
+ sh ./scripts/fetch-test-binaries.sh
9
10
go test -v .
10
11
11
12
build :
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ func TestRunsSuite(t *testing.T) {
17
17
// ChallengeRequest passed as part of the test cases.
18
18
19
19
fixture := dns .NewFixture (& customDNSProviderSolver {},
20
+ dns .SetBinariesPath ("_out/kubebuilder/bin" ),
20
21
dns .SetResolvedZone (zone ),
21
22
dns .SetAllowAmbientCredentials (false ),
22
23
dns .SetManifestPath ("testdata/ovh" ),
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ k8s_version=1.14.1
6
+ arch=amd64
7
+
8
+ if [[ " $OSTYPE " == " linux-gnu" ]]; then
9
+ os=" linux"
10
+ elif [[ " $OSTYPE " == " darwin" * ]]; then
11
+ os=" darwin"
12
+ else
13
+ echo " OS '$OSTYPE ' not supported." >&2
14
+ exit 1
15
+ fi
16
+
17
+ root=$( cd " ` dirname $0 ` " /..; pwd)
18
+ output_dir=" $root " /_out
19
+ archive_name=" kubebuilder-tools-$k8s_version -$os -$arch .tar.gz"
20
+ archive_file=" $output_dir /$archive_name "
21
+ archive_url=" https://storage.googleapis.com/kubebuilder-tools/$archive_name "
22
+
23
+ mkdir -p " $output_dir "
24
+ curl -sL " $archive_url " -o " $archive_file "
25
+ tar -zxf " $archive_file " -C " $output_dir /"
You can’t perform that action at this time.
0 commit comments