upd to go 1.24

This commit is contained in:
2025-11-05 19:32:43 +01:00
parent 67d76581d4
commit 54a29bc7bb
5 changed files with 18 additions and 14 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
pgidler

View File

@@ -26,9 +26,6 @@ all: buildlocal
buildlocal: buildlocal:
CGO_LDFLAGS='-static' go build -tags osusergo,netgo -ldflags="-extldflags=-static -s" CGO_LDFLAGS='-static' go build -tags osusergo,netgo -ldflags="-extldflags=-static -s"
install: buildlocal
kubectl cp $(tool) $(pod):$(dir)/$(tool)
clean: clean:
rm -rf $(tool) coverage.out rm -rf $(tool) coverage.out

View File

@@ -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 Run `make` to compile. You'll need Golang. The repo contains a
pre-compiled binary for linux amd. 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 ## Usage
`pgidler` offers two idle modes: `pgidler` offers two idle modes:
@@ -45,3 +36,16 @@ Usage of ./pgidler:
-t, --timeout int Wether to stop the clients after N seconds -t, --timeout int Wether to stop the clients after N seconds
-u, --user string Database user (default "postgres") -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

4
go.mod
View File

@@ -1,8 +1,8 @@
module pgidler module pgidler
go 1.19 go 1.24
require ( require (
github.com/lib/pq v1.10.9 github.com/lib/pq v1.10.9
github.com/spf13/pflag v1.0.5 github.com/spf13/pflag v1.0.10
) )

2
go.sum
View File

@@ -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/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 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 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=