Skip to content

Commit

Permalink
Set proper architecture label for arm64 container images
Browse files Browse the repository at this point in the history
Adding arm64 in the select to set properly label
the architecture of the container images pushed
by Kubevirt.

Signed-off-by: Howard Zhang <[email protected]>
  • Loading branch information
zhlhahaha authored and rmohr committed Apr 13, 2021
1 parent 80f032b commit afb517c
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/example-cloudinit-hook-sidecar/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ container_image(
name = "example-cloudinit-hook-sidecar-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = select({
Expand Down
1 change: 1 addition & 0 deletions cmd/example-hook-sidecar/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ container_image(
name = "example-hook-sidecar-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = select({
Expand Down
1 change: 1 addition & 0 deletions cmd/subresource-access-test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ container_image(
name = "subresource-access-test-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = "//:passwd-image",
Expand Down
1 change: 1 addition & 0 deletions cmd/virt-api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ container_image(
name = "virt-api-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = ":version-container",
Expand Down
1 change: 1 addition & 0 deletions cmd/virt-controller/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ container_image(
name = "virt-controller-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = ":version-container",
Expand Down
1 change: 1 addition & 0 deletions cmd/virt-handler/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ container_image(
name = "virt-handler-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = ":version-container",
Expand Down
1 change: 1 addition & 0 deletions cmd/virt-launcher/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ container_image(
name = "virt-launcher-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = ":version-container",
Expand Down
1 change: 1 addition & 0 deletions cmd/virt-operator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ container_image(
name = "virt-operator-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = ":version-container",
Expand Down
13 changes: 13 additions & 0 deletions containerimages/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ container_image(
name = "alpine-container-disk-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
tars = [":alpine-image-tar"],
Expand All @@ -39,6 +40,7 @@ container_image(
name = "cirros-container-disk-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
tars = [":cirros-image-tar"],
Expand All @@ -62,6 +64,7 @@ container_image(
name = "cirros-custom-container-disk-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
tars = [":cirros-custom-image-tar"],
Expand All @@ -84,6 +87,7 @@ container_image(
name = "fedora-cloud-container-disk-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
tars = [":fedora-cloud-image-tar"],
Expand All @@ -104,6 +108,11 @@ pkg_tar(

container_image(
name = "microlivecd-container-disk-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
tars = [":microlivecd-image-tar"],
visibility = ["//visibility:public"],
)
Expand All @@ -120,6 +129,7 @@ container_image(
name = "virtio-container-disk-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
tars = [":virtio-image-tar"],
Expand All @@ -130,6 +140,7 @@ container_image(
name = "fedora-sriov-lane-container-disk-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = select({
Expand All @@ -144,6 +155,8 @@ container_image(
container_image(
name = "fedora-with-test-tooling",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = select({
Expand Down
1 change: 1 addition & 0 deletions images/cdi-http-import-server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ container_image(
name = "cdi-http-import-server-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = "//images:kubevirt-testing-base",
Expand Down
1 change: 1 addition & 0 deletions images/disks-images-provider/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ container_image(
name = "disks-images-provider-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = "//images:kubevirt-testing-base",
Expand Down
1 change: 1 addition & 0 deletions images/nfs-server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ container_image(
name = "nfs-server-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = select({
Expand Down
1 change: 1 addition & 0 deletions images/vm-killer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ container_image(
name = "vm-killer-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = "//images:kubevirt-testing-base",
Expand Down
1 change: 1 addition & 0 deletions images/winrmcli/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ container_image(
name = "winrmcli-image",
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = select({
Expand Down
1 change: 1 addition & 0 deletions tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ container_image(
testonly = True,
architecture = select({
"@io_bazel_rules_go//go/platform:linux_ppc64le": "ppc64le",
"@io_bazel_rules_go//go/platform:linux_arm64": "arm64",
"//conditions:default": "amd64",
}),
base = select({
Expand Down

0 comments on commit afb517c

Please sign in to comment.