Skip to content

Commit 9cc6066

Browse files
authored
Feature/bump dependencies (#32)
* dependencies update Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com> * readme Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com> * go mod Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com> * check latest GO version Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com> * actions/setup-go@v6 Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com> * actions/setup-go@v6 Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com> --------- Signed-off-by: Dmytro Rashko <dmitriy.rashko@amdocs.com>
1 parent 35ac04a commit 9cc6066

File tree

5 files changed

+115
-495
lines changed

5 files changed

+115
-495
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919
- name: Set up QEMU
2020
uses: docker/setup-qemu-action@v3
2121
- name: Set up Docker Buildx
@@ -42,13 +42,13 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v5
4646

4747
- name: Set up Go
48-
uses: actions/setup-go@v4
48+
uses: actions/setup-go@v6
4949
with:
50-
go-version: "1.25"
51-
cache: true
50+
go-version: '^1.25.5'
51+
cache: false
5252

5353
- name: Run cmd/main.go tests
5454
working-directory: .
@@ -59,13 +59,13 @@ jobs:
5959
runs-on: ubuntu-latest
6060
steps:
6161
- name: Checkout repository
62-
uses: actions/checkout@v4
62+
uses: actions/checkout@v5
6363

6464
- name: Set up Go
65-
uses: actions/setup-go@v4
65+
uses: actions/setup-go@v6
6666
with:
67-
go-version: "1.25"
68-
cache: true
67+
go-version: '^1.25.5'
68+
cache: false
6969

7070
- name: Create k8s Kind Cluster
7171
uses: helm/kind-action@v1
@@ -82,7 +82,7 @@ jobs:
8282
runs-on: ubuntu-latest
8383
steps:
8484
- name: Checkout repository
85-
uses: actions/checkout@v4
85+
uses: actions/checkout@v5
8686

8787
- name: Set up Helm
8888
uses: azure/setup-helm@v4.2.0

Makefile

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ DOCKER_BUILDER ?= docker buildx
136136
DOCKER_BUILD_ARGS ?= --pull --load --platform linux/$(LOCALARCH) --builder $(BUILDX_BUILDER_NAME)
137137

138138
# tools image build args
139-
TOOLS_ISTIO_VERSION ?= 1.27.1
139+
TOOLS_ISTIO_VERSION ?= 1.28.1
140140
TOOLS_ARGO_ROLLOUTS_VERSION ?= 1.8.3
141-
TOOLS_KUBECTL_VERSION ?= 1.34.1
141+
TOOLS_KUBECTL_VERSION ?= 1.34.2
142142
TOOLS_HELM_VERSION ?= 3.19.0
143-
TOOLS_CILIUM_VERSION ?= 0.18.7
143+
TOOLS_CILIUM_VERSION ?= 0.18.9
144144

145145
# build args
146146
TOOLS_IMAGE_BUILD_ARGS = --build-arg VERSION=$(VERSION)
@@ -239,6 +239,40 @@ report/image-cve: docker-build govulncheck
239239
## Tool Binaries
240240
## Location to install dependencies t
241241

242+
# check-release-version checks if a tool version matches the latest GitHub release
243+
# $1 - variable name (e.g., TOOLS_ISTIO_VERSION)
244+
# $2 - current version value
245+
# $3 - GitHub repo (e.g., istio/istio)
246+
define check-release-version
247+
@LATEST=$$(gh release list --repo $(3) --json tagName,isLatest | jq -r '.[] | select(.isLatest==true) | .tagName'); \
248+
if [ "$(2)" = "$${LATEST#v}" ]; then \
249+
echo "✅ $(1)=$(2) == $$LATEST"; \
250+
else \
251+
echo "❌ $(1)=$(2) != $$LATEST"; \
252+
fi
253+
endef
254+
255+
define check-go-version
256+
@CURRENT_GO=$$(awk '/^go / { print $$2 }' go.mod); \
257+
LATEST_GO=$$(curl -ks 'https://go.dev/VERSION?m=text' 2>/dev/null | head -1 | sed 's/^go//' || echo "unknown"); \
258+
if [ "$$CURRENT_GO" = "$$LATEST_GO" ]; then \
259+
echo "✅ GO_VERSION=$$CURRENT_GO == $$LATEST_GO"; \
260+
else \
261+
echo "❌ GO_VERSION=$$CURRENT_GO != $$LATEST_GO"; \
262+
fi
263+
endef
264+
265+
.PHONY: check-releases
266+
check-releases:
267+
@echo "Checking tool versions against latest releases..."
268+
@echo ""
269+
$(call check-go-version)
270+
$(call check-release-version,TOOLS_ARGO_ROLLOUTS_VERSION,$(TOOLS_ARGO_ROLLOUTS_VERSION),argoproj/argo-rollouts)
271+
$(call check-release-version,TOOLS_CILIUM_VERSION,$(TOOLS_CILIUM_VERSION),cilium/cilium-cli)
272+
$(call check-release-version,TOOLS_ISTIO_VERSION,$(TOOLS_ISTIO_VERSION),istio/istio)
273+
$(call check-release-version,TOOLS_HELM_VERSION,$(TOOLS_HELM_VERSION),helm/helm)
274+
$(call check-release-version,TOOLS_KUBECTL_VERSION,$(TOOLS_KUBECTL_VERSION),kubernetes/kubernetes)
275+
242276
.PHONY: $(LOCALBIN)
243277
$(LOCALBIN):
244278
mkdir -p $(LOCALBIN)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ curl -sL https://raw.githubusercontent.com/kagent-dev/tools/refs/heads/main/scri
3535
- **Docker:**
3636

3737
```bash
38-
docker run -it --rm -p 8084:8084 ghcr.io/kagent-dev/kagent/tools:0.0.12
38+
docker run -it --rm -p 8084:8084 ghcr.io/kagent-dev/kagent/tools:0.0.13
3939
```
4040

4141
- **Kubernetes**
4242

4343
```bash
44-
helm upgrade -i -n kagent --create-namespace kagent-tools oci://ghcr.io/kagent-dev/tools/helm/kagent-tools --version 0.0.12
44+
helm upgrade -i -n kagent --create-namespace kagent-tools oci://ghcr.io/kagent-dev/tools/helm/kagent-tools --version 0.0.13
4545
helm ls -A
4646
```
4747

go.mod

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
module github.com/kagent-dev/tools
22

3-
go 1.25.1
3+
go 1.25.5
44

55
require (
66
github.com/joho/godotenv v1.5.1
7-
github.com/mark3labs/mcp-go v0.40.0
8-
github.com/onsi/ginkgo/v2 v2.25.3
7+
github.com/mark3labs/mcp-go v0.43.2
8+
github.com/onsi/ginkgo/v2 v2.27.2
99
github.com/onsi/gomega v1.38.2
10-
github.com/spf13/cobra v1.10.1
10+
github.com/spf13/cobra v1.10.2
1111
github.com/stretchr/testify v1.11.1
12-
github.com/tmc/langchaingo v0.1.13
12+
github.com/tmc/langchaingo v0.1.14
1313
go.opentelemetry.io/otel v1.38.0
1414
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.38.0
1515
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.38.0
@@ -24,17 +24,15 @@ require (
2424
github.com/bahlo/generic-list-go v0.2.0 // indirect
2525
github.com/buger/jsonparser v1.1.1 // indirect
2626
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
27-
github.com/chzyer/readline v1.5.1 // indirect
2827
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2928
github.com/dlclark/regexp2 v1.10.0 // indirect
3029
github.com/go-logr/logr v1.4.3 // indirect
3130
github.com/go-logr/stdr v1.2.2 // indirect
3231
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
3332
github.com/google/go-cmp v0.7.0 // indirect
34-
github.com/google/pprof v0.0.0-20250923004556-9e5a51aed1e8 // indirect
33+
github.com/google/pprof v0.0.0-20251114195745-4902fdda35c8 // indirect
3534
github.com/google/uuid v1.6.0 // indirect
3635
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
37-
github.com/ianlancetaylor/demangle v0.0.0-20250417193237-f615e6bd150b // indirect
3836
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3937
github.com/invopop/jsonschema v0.13.0 // indirect
4038
github.com/mailru/easyjson v0.9.1 // indirect
@@ -47,17 +45,18 @@ require (
4745
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
4846
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.38.0 // indirect
4947
go.opentelemetry.io/proto/otlp v1.8.0 // indirect
50-
go.uber.org/automaxprocs v1.6.0 // indirect
5148
go.yaml.in/yaml/v2 v2.4.3 // indirect
5249
go.yaml.in/yaml/v3 v3.0.4 // indirect
53-
golang.org/x/net v0.44.0 // indirect
54-
golang.org/x/sys v0.36.0 // indirect
55-
golang.org/x/text v0.29.0 // indirect
56-
golang.org/x/tools v0.37.0 // indirect
57-
google.golang.org/genproto/googleapis/api v0.0.0-20250922171735-9219d122eba9 // indirect
58-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250922171735-9219d122eba9 // indirect
59-
google.golang.org/grpc v1.75.1 // indirect
60-
google.golang.org/protobuf v1.36.9 // indirect
50+
golang.org/x/mod v0.30.0 // indirect
51+
golang.org/x/net v0.47.0 // indirect
52+
golang.org/x/sync v0.18.0 // indirect
53+
golang.org/x/sys v0.38.0 // indirect
54+
golang.org/x/text v0.31.0 // indirect
55+
golang.org/x/tools v0.39.0 // indirect
56+
google.golang.org/genproto/googleapis/api v0.0.0-20251022142026-3a174f9686a8 // indirect
57+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251022142026-3a174f9686a8 // indirect
58+
google.golang.org/grpc v1.77.0 // indirect
59+
google.golang.org/protobuf v1.36.10 // indirect
6160
gopkg.in/yaml.v3 v3.0.1 // indirect
6261
sigs.k8s.io/yaml v1.6.0 // indirect
6362
)

0 commit comments

Comments
 (0)