Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions build/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,14 @@ dependencies:
- path: build/common.sh
match: __default_go_runner_version=

- name: "registry.k8s.io/pause"
version: 3.9
refPaths:
- path: build/pause/Makefile
match: TAG\s*\?=
# TODO: enable once pause 3.10 is promoted
# https://github.com/kubernetes/kubernetes/issues/125092
#
# - name: "registry.k8s.io/pause"
# version: 3.10
# refPaths:
# - path: build/pause/Makefile
# match: TAG\s*\?=

- name: "registry.k8s.io/pause: dependents"
version: 3.9
Expand Down
4 changes: 4 additions & 0 deletions build/pause/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.10

* Add support for the -v flag on Windows. It prints the version similarly to Linux. ([#125067](https://github.com/kubernetes/kubernetes/pull/125067), [@neolit123](https://github.com/neolit123))

# 3.9

* Unsupported Windows Semi-Annual Channel container images removed (OS Versions removed: 20H2). ([#112924](https://github.com/kubernetes/kubernetes/pull/112924), [@marosset](https://github.com/marosset))
Expand Down
2 changes: 1 addition & 1 deletion build/pause/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
REGISTRY ?= staging-k8s.gcr.io
IMAGE = $(REGISTRY)/pause

TAG ?= 3.9
TAG ?= 3.10
REV = $(shell git describe --contains --always --match='v*')

# Architectures supported: amd64, arm, arm64, ppc64le and s390x
Expand Down
20 changes: 19 additions & 1 deletion build/pause/windows/pause.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ limitations under the License.

#include <windows.h>
#include <stdio.h>
#include <string.h>

#define STRINGIFY(x) #x
#define VERSION_STRING(x) STRINGIFY(x)

#ifndef VERSION
#define VERSION HEAD
#endif

BOOL WINAPI CtrlHandler(DWORD fdwCtrlType)
{
Expand All @@ -34,8 +42,18 @@ BOOL WINAPI CtrlHandler(DWORD fdwCtrlType)
}
}

int main(void)
int main(int argc, char **argv)
{
int i;
for (i = 1; i < argc; ++i)
{
if (!_stricmp(argv[i], "-v"))
{
fprintf(stdout, "pause.c %s\n", VERSION_STRING(VERSION));
return 0;
}
}

if (SetConsoleCtrlHandler(CtrlHandler, TRUE))
{
Sleep(INFINITE);
Expand Down