Skip to content

Commit 8e8a1a4

Browse files
committed
build: Update guidance for updating base image tags and digests
Signed-off-by: Stephen Augustus <[email protected]>
1 parent aa79da2 commit 8e8a1a4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build/workspace.bzl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ def cri_tarballs():
7171
urls = mirror("https://github.com/kubernetes-incubator/cri-tools/releases/download/v%s/crictl-v%s-%s.tar.gz" % (CRI_TOOLS_VERSION, CRI_TOOLS_VERSION, arch)),
7272
)
7373

74-
# Use go get -u github.com/estesp/manifest-tool to find these values
74+
# Use skopeo to find these values: https://github.com/containers/skopeo
75+
#
76+
# Example
77+
# Manifest: skopeo inspect docker://gcr.io/k8s-staging-build-image/debian-base:v2.1.0
78+
# Arches: skopeo inspect --raw docker://gcr.io/k8s-staging-build-image/debian-base:v2.1.0
7579
_DEBIAN_BASE_DIGEST = {
7680
"manifest": "sha256:b118abac0bcf633b9db4086584ee718526fe394cf1bd18aee036e6cc497860f6",
7781
"amd64": "sha256:a67798e4746faaab3fde5b7407fa8bba75d8b1214d168dc7ad2b5364f6fc4319",
@@ -81,6 +85,11 @@ _DEBIAN_BASE_DIGEST = {
8185
"s390x": "sha256:dac908eaa61d2034aec252576a470a7e4ab184c361f89170526f707a0c3c6082",
8286
}
8387

88+
# Use skopeo to find these values: https://github.com/containers/skopeo
89+
#
90+
# Example
91+
# Manifest: skopeo inspect docker://gcr.io/k8s-staging-build-image/debian-iptables:v12.1.0
92+
# Arches: skopeo inspect --raw docker://gcr.io/k8s-staging-build-image/debian-iptables:v12.1.0
8493
_DEBIAN_IPTABLES_DIGEST = {
8594
"manifest": "sha256:1ae6d76dea462973759ff1c4e02263867da1f85db9aa10462a030ca421cbf0e9",
8695
"amd64": "sha256:2fb9fa09123a41e6369cac04eb29e26237fe9e43da8e18f676d18d8fffb906fc",
@@ -104,6 +113,7 @@ def debian_image_dependencies():
104113
digest = _digest(_DEBIAN_BASE_DIGEST, arch),
105114
registry = "us.gcr.io/k8s-artifacts-prod/build-image",
106115
repository = "debian-base",
116+
# Ensure the digests above are updated to match a new tag
107117
tag = "v2.1.0", # ignored, but kept here for documentation
108118
)
109119

@@ -113,6 +123,7 @@ def debian_image_dependencies():
113123
digest = _digest(_DEBIAN_IPTABLES_DIGEST, arch),
114124
registry = "us.gcr.io/k8s-artifacts-prod/build-image",
115125
repository = "debian-iptables",
126+
# Ensure the digests above are updated to match a new tag
116127
tag = "v12.1.0", # ignored, but kept here for documentation
117128
)
118129

0 commit comments

Comments
 (0)