From bd8c04e85778bd95741bf6a4821fcedc31da145d Mon Sep 17 00:00:00 2001 From: takahiro-yamada Date: Mon, 3 Feb 2025 05:54:52 +0000 Subject: [PATCH 1/2] Enable `--dsableupdate` to prevent automatic updates of runner --- runner/runner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/runner/runner.go b/runner/runner.go index ea52f6a..d1373e9 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -162,6 +162,7 @@ func (r *Runner) runListener(ctx context.Context) error { "--token", string(b), "--work", r.workDir, "--ephemeral", + "--disableupdate", } if err := r.listener.configure(ctx, configArgs); err != nil { return err From ff8dabbdfce41ecc9faedbbbb5a4aab4ca9a6884 Mon Sep 17 00:00:00 2001 From: takahiro-yamada Date: Mon, 3 Feb 2025 05:55:28 +0000 Subject: [PATCH 2/2] Modify the maintenance procedure for `go.mod` and `go.sum` --- docs/maintenance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/maintenance.md b/docs/maintenance.md index c06136b..8a88456 100644 --- a/docs/maintenance.md +++ b/docs/maintenance.md @@ -22,7 +22,7 @@ If a new Kubernetes version is released, please update the followings: - Other dependencies versions: - Update `ghcr.io/cybozu/golang` image in [Dockerfile](/Dockerfile) to the latest version from . - `go.mod` and `go.sum`: - - Run `go get -u ./...`. + - Run [update-gomod](https://github.com/masa213f/tools/tree/main/cmd/update-gomod). If Kubernetes or controller-runtime API has changed, please update the relevant source code accordingly.