From 54a29bc7bb44103b5770629b0d1b0e62d3d7cae3 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 5 Nov 2025 19:32:43 +0100 Subject: [PATCH] upd to go 1.24 --- .gitignore | 1 + Makefile | 3 --- README.md | 22 +++++++++++++--------- go.mod | 4 ++-- go.sum | 2 ++ 5 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca90aa2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pgidler diff --git a/Makefile b/Makefile index 89e8841..009318f 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,6 @@ all: buildlocal buildlocal: CGO_LDFLAGS='-static' go build -tags osusergo,netgo -ldflags="-extldflags=-static -s" -install: buildlocal - kubectl cp $(tool) $(pod):$(dir)/$(tool) - clean: rm -rf $(tool) coverage.out diff --git a/README.md b/README.md index a441402..2b235c1 100644 --- a/README.md +++ b/README.md @@ -17,15 +17,6 @@ This is an implementation of a tool described at [AWS Blog: Performance impact o Run `make` to compile. You'll need Golang. The repo contains a pre-compiled binary for linux amd. -## Install - -Switch to a cluster context and there into the namespace of the pod on -which you'd like to install the tool. Select the pod and execute: - -``` -make install pod=PODNAME -``` - ## Usage `pgidler` offers two idle modes: @@ -45,3 +36,16 @@ Usage of ./pgidler: -t, --timeout int Wether to stop the clients after N seconds -u, --user string Database user (default "postgres") ``` + +# Report bugs + +[Please open an issue](https://codeberg.org/scip/pgidler/issues). Thanks! + +# License + +This work is licensed under the terms of the General Public Licens +version 3. + +# Author + +Copyleft (c) 2024 Thomas von Dein diff --git a/go.mod b/go.mod index 6289da7..9593d3f 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module pgidler -go 1.19 +go 1.24 require ( github.com/lib/pq v1.10.9 - github.com/spf13/pflag v1.0.5 + github.com/spf13/pflag v1.0.10 ) diff --git a/go.sum b/go.sum index 34805a3..bb21eeb 100644 --- a/go.sum +++ b/go.sum @@ -2,3 +2,5 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= +github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=