From a7c4295c58abea7ef894f3bd2ad32c227860eea9 Mon Sep 17 00:00:00 2001 From: Sean Malloy Date: Fri, 7 Feb 2020 00:41:24 -0600 Subject: [PATCH 1/2] Add notes section to release documentation Add a link to the test grid dashboard for automated container image builds, and documents useful gcloud commands for woking with the staging registry. This documentation is useful for project maintainers that are creating releases and publishing container images. The chance of remembering these commands and links is slim to none. Therefore documenting this information will be very useful. --- docs/releasing.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/releasing.md b/docs/releasing.md index 8369bd96c..c4c1e5865 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -19,3 +19,21 @@ 6. Perform the [image promotion process](https://github.com/kubernetes/k8s.io/tree/master/k8s.gcr.io#image-promoter) 7. Publish release 8. Email `kubernetes-sig-scheduling@googlegroups.com` to announce the release + +## Notes +See [post-descheduler-push-images dashboard](https://testgrid.k8s.io/sig-scheduling#post-descheduler-push-images) for staging registry image build job status. + +List images in staging registry. +``` +gcloud container images list --repository gcr.io/k8s-staging-descheduler +``` + +List descheduler image tags in the staging registry. +``` +gcloud container images list-tags gcr.io/k8s-staging-descheduler/descheduler +``` + +Pull image from the staging registry. +``` +docker pull gcr.io/k8s-staging-descheduler/descheduler:v20200206-0.9.0-94-ge2a23f284 +``` From aae52ac2eee8a68110046ac9c79e973be0253d4c Mon Sep 17 00:00:00 2001 From: Sean Malloy Date: Tue, 11 Feb 2020 22:46:27 -0600 Subject: [PATCH 2/2] Document gcloud command used to get container image details The "gcloud container images describe" command is used to get the SHA256 hash of an image in the staging registry. The SHA256 hash is required for the image promotion process. https://github.com/kubernetes/k8s.io/tree/master/k8s.gcr.io#image-promoter --- docs/releasing.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/releasing.md b/docs/releasing.md index c4c1e5865..aeaf210cf 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -33,6 +33,11 @@ List descheduler image tags in the staging registry. gcloud container images list-tags gcr.io/k8s-staging-descheduler/descheduler ``` +Get SHA256 hash for a specific image in the staging registry. +``` +gcloud container images describe gcr.io/k8s-staging-descheduler/descheduler:v20200206-0.9.0-94-ge2a23f284 +``` + Pull image from the staging registry. ``` docker pull gcr.io/k8s-staging-descheduler/descheduler:v20200206-0.9.0-94-ge2a23f284