-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-ppc64le.patch
87 lines (79 loc) · 3.78 KB
/
build-ppc64le.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
diff --git a/hack/build/init-buildx.sh b/hack/build/init-buildx.sh
index bb0d5bd..1550a82 100755
--- a/hack/build/init-buildx.sh
+++ b/hack/build/init-buildx.sh
@@ -21,7 +21,8 @@ current_builder="$(docker buildx inspect)"
# linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
if ! grep -q "^Driver: docker$" <<<"${current_builder}" && \
grep -q "linux/amd64" <<<"${current_builder}" && \
- grep -q "linux/arm64" <<<"${current_builder}"; then
+ grep -q "linux/arm64" <<<"${current_builder}" && \
+ grep -q "linux/ppc64le" <<<"${current_builder}"; then
exit 0
fi
diff --git a/images/base/Dockerfile b/images/base/Dockerfile
index 63060ae..215ba1d 100644
--- a/images/base/Dockerfile
+++ b/images/base/Dockerfile
@@ -108,10 +108,10 @@ COPY --chmod=0755 scripts/third_party/gimme/gimme /usr/local/bin/
COPY --chmod=0755 scripts/target-cc /usr/local/bin/
# tools needed at build-time only
# first ensure we can install packages for both architectures
-RUN dpkg --add-architecture arm64 && dpkg --add-architecture amd64 \
- && clean-install bash ca-certificates curl git make pkg-config \
- crossbuild-essential-amd64 crossbuild-essential-arm64 \
- libseccomp-dev:amd64 libseccomp-dev:arm64
+RUN dpkg --add-architecture ppc64el \
+ && clean-install bash ca-certificates curl git make pkg-config gcc \
+ crossbuild-essential-amd64 crossbuild-essential-ppc64el \
+ libseccomp-dev:amd64 libseccomp-dev:ppc64el
# set by makefile to .go-version
ARG GO_VERSION
RUN eval "$(gimme "${GO_VERSION}")" \
diff --git a/images/base/scripts/target-cc b/images/base/scripts/target-cc
index f8226e1..dc9980f 100755
--- a/images/base/scripts/target-cc
+++ b/images/base/scripts/target-cc
@@ -23,6 +23,8 @@ case $TARGETARCH in
echo -n 'aarch64-linux-gnu-gcc' ;;
amd64)
echo -n 'x86_64-linux-gnu-gcc' ;;
+ ppc64le)
+ echo -n 'powerpc64le-linux-gnu-gcc' ;;
*)
exit 1 ;;
esac
diff --git a/pkg/build/nodeimage/const_cni.go b/pkg/build/nodeimage/const_cni.go
index 1d06e05..4568afb 100644
--- a/pkg/build/nodeimage/const_cni.go
+++ b/pkg/build/nodeimage/const_cni.go
@@ -20,7 +20,7 @@ package nodeimage
The default CNI manifest and images are our own tiny kindnet
*/
-const kindnetdImage = "docker.io/kindest/kindnetd:v20240813-c6f155d6"
+const kindnetdImage = "quay.io/powercloud/kind-kindnetd:v20240626-0296c52"
var defaultCNIImages = []string{kindnetdImage}
diff --git a/pkg/build/nodeimage/const_storage.go b/pkg/build/nodeimage/const_storage.go
index d62c4ab..03815e0 100644
--- a/pkg/build/nodeimage/const_storage.go
+++ b/pkg/build/nodeimage/const_storage.go
@@ -25,8 +25,8 @@ NOTE: we have customized it in the following ways:
- install as the default storage class
*/
-const storageProvisionerImage = "docker.io/kindest/local-path-provisioner:v20240813-c6f155d6"
-const storageHelperImage = "docker.io/kindest/local-path-helper:v20230510-486859a6"
+const storageProvisionerImage = "quay.io/powercloud/kind-local-path-provisioner:v20240626-0296c52"
+const storageHelperImage = "quay.io/powercloud/kind-local-path-helper:v20240626-0296c52"
// image we need to preload
var defaultStorageImages = []string{storageProvisionerImage, storageHelperImage}
diff --git a/pkg/cluster/internal/loadbalancer/const.go b/pkg/cluster/internal/loadbalancer/const.go
index 3600b33..e84bf8c 100644
--- a/pkg/cluster/internal/loadbalancer/const.go
+++ b/pkg/cluster/internal/loadbalancer/const.go
@@ -17,7 +17,7 @@ limitations under the License.
package loadbalancer
// Image defines the loadbalancer image:tag
-const Image = "docker.io/kindest/haproxy:v20230606-42a2262b"
+const Image = "quay.io/powercloud/kind-haproxy:v20240626-0296c52"
// ConfigPath defines the path to the config file in the image
const ConfigPath = "/usr/local/etc/haproxy/haproxy.cfg"