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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Install promu
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Install promu
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step_cross-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Install promu
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step_packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Install nfpm
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/step_tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Setup clang 18
run: ./scripts/install_clang.sh
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Setup clang 18
run: ./scripts/install_clang.sh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/step_tests-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Create a sample object file
run: |
Expand All @@ -28,5 +28,5 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.13.2
version: v2.15.0
args: --timeout=5m
4 changes: 2 additions & 2 deletions .github/workflows/step_tests-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Setup clang
run: ./scripts/install_clang.sh
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x

- name: Setup clang
run: ./scripts/install_clang.sh
Expand Down
2 changes: 1 addition & 1 deletion .promu/.promu-cgo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu-cgo.yml should also be updated.
version: 1.26
version: 1.27
cgo: true
repository:
path: github.com/ceems-dev/ceems
Expand Down
2 changes: 1 addition & 1 deletion .promu/.promu-cgo.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu.yml should also be updated.
version: 1.26
version: 1.27
cgo: true
repository:
path: github.com/ceems-dev/ceems
Expand Down
2 changes: 1 addition & 1 deletion .promu/.promu-go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu-cgo.yml should also be updated.
version: 1.26
version: 1.27
repository:
path: github.com/ceems-dev/ceems
build:
Expand Down
2 changes: 1 addition & 1 deletion .promu/.promu-go.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu-cgo.yml should also be updated.
version: 1.26
version: 1.27
repository:
path: github.com/ceems-dev/ceems
build:
Expand Down
65 changes: 24 additions & 41 deletions cmd/ceems_k8s_admission_controller/http/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/stretchr/testify/require"
v1 "k8s.io/api/admission/v1"
"k8s.io/api/admission/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)

Expand Down Expand Up @@ -42,11 +41,9 @@ func TestHandler(t *testing.T) {
method: http.MethodPost,
url: mutatePath,
req: &v1.AdmissionReview{
TypeMeta: metav1.TypeMeta{
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1",
},
Response: &v1.AdmissionResponse{},
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1",
Response: &v1.AdmissionResponse{},
Request: &v1.AdmissionRequest{
Name: "name",
Namespace: "ns",
Expand All @@ -62,11 +59,9 @@ func TestHandler(t *testing.T) {
method: http.MethodPost,
url: mutatePath,
req: &v1beta1.AdmissionReview{
TypeMeta: metav1.TypeMeta{
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1beta1",
},
Response: &v1beta1.AdmissionResponse{},
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1beta1",
Response: &v1beta1.AdmissionResponse{},
Request: &v1beta1.AdmissionRequest{
Name: "name",
Namespace: "ns",
Expand All @@ -89,11 +84,9 @@ func TestHandler(t *testing.T) {
method: http.MethodPost,
url: mutatePath,
req: &v1.AdmissionReview{
TypeMeta: metav1.TypeMeta{
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1",
},
Response: &v1.AdmissionResponse{},
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1",
Response: &v1.AdmissionResponse{},
},
handler: handler.Serve(podsMutation),
code: 400,
Expand All @@ -103,11 +96,9 @@ func TestHandler(t *testing.T) {
method: http.MethodPost,
url: mutatePath,
req: &v1beta1.AdmissionReview{
TypeMeta: metav1.TypeMeta{
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1beta1",
},
Response: &v1beta1.AdmissionResponse{},
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1beta1",
Response: &v1beta1.AdmissionResponse{},
},
handler: handler.Serve(podsMutation),
code: 400,
Expand All @@ -118,11 +109,9 @@ func TestHandler(t *testing.T) {
url: mutatePath,
handler: handler.Serve(podsValidation),
req: &v1.AdmissionReview{
TypeMeta: metav1.TypeMeta{
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1",
},
Response: &v1.AdmissionResponse{},
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1",
Response: &v1.AdmissionResponse{},
Request: &v1.AdmissionRequest{
Name: "name",
Namespace: "ns",
Expand All @@ -137,11 +126,9 @@ func TestHandler(t *testing.T) {
url: mutatePath,
handler: handler.Serve(podsValidation),
req: &v1beta1.AdmissionReview{
TypeMeta: metav1.TypeMeta{
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1beta1",
},
Response: &v1beta1.AdmissionResponse{},
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1beta1",
Response: &v1beta1.AdmissionResponse{},
Request: &v1beta1.AdmissionRequest{
Name: "name",
Namespace: "ns",
Expand All @@ -155,11 +142,9 @@ func TestHandler(t *testing.T) {
method: http.MethodPost,
url: mutatePath,
req: &v1.AdmissionReview{
TypeMeta: metav1.TypeMeta{
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1",
},
Response: &v1.AdmissionResponse{},
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1",
Response: &v1.AdmissionResponse{},
Request: &v1.AdmissionRequest{
Name: "name",
Namespace: "ns",
Expand All @@ -175,11 +160,9 @@ func TestHandler(t *testing.T) {
method: http.MethodPost,
url: mutatePath,
req: &v1beta1.AdmissionReview{
TypeMeta: metav1.TypeMeta{
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1beta1",
},
Response: &v1beta1.AdmissionResponse{},
Kind: "AdmissionReview",
APIVersion: "admission.k8s.io/v1beta1",
Response: &v1beta1.AdmissionResponse{},
Request: &v1beta1.AdmissionRequest{
Name: "name",
Namespace: "ns",
Expand Down
46 changes: 23 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ceems-dev/ceems

go 1.26.0
go 1.27.1

require (
connectrpc.com/connect v1.21.1
Expand All @@ -20,12 +20,12 @@ require (
github.com/iancoleman/strcase v0.3.0
github.com/jedib0t/go-pretty/v6 v6.8.3
github.com/jellydator/ttlcache/v3 v3.4.1
github.com/mattn/go-sqlite3 v1.14.52
github.com/mattn/go-sqlite3 v1.14.53
github.com/prometheus/client_golang v1.25.0
github.com/prometheus/common v0.73.1
github.com/prometheus/exporter-toolkit v0.20.0
github.com/prometheus/procfs v0.23.0
github.com/prometheus/prometheus v0.315.1
github.com/prometheus/prometheus v0.316.0
github.com/steiler/acls v0.1.6
github.com/stmcginnis/gofish v0.27.0
github.com/stretchr/testify v1.12.1
Expand All @@ -34,7 +34,7 @@ require (
github.com/wneessen/go-fileperm v0.2.1
github.com/zeebo/xxh3 v1.1.0
golang.org/x/crypto v0.58.0
golang.org/x/sys v0.49.0
golang.org/x/sys v0.50.0
google.golang.org/grpc v1.85.0
google.golang.org/protobuf v1.36.12
gopkg.in/yaml.v3 v3.0.1
Expand All @@ -60,33 +60,33 @@ require (
github.com/fxamacker/cbor/v2 v2.9.1 // indirect
github.com/go-logfmt/logfmt v0.6.1 // indirect
github.com/go-logr/logr v1.4.4 // indirect
github.com/go-openapi/jsonpointer v1.0.0 // indirect
github.com/go-openapi/jsonreference v1.0.0 // indirect
github.com/go-openapi/spec v0.22.9 // indirect
github.com/go-openapi/swag v0.28.0 // indirect
github.com/go-openapi/swag/cmdutils v0.28.0 // indirect
github.com/go-openapi/swag/conv v0.28.0 // indirect
github.com/go-openapi/swag/fileutils v0.28.0 // indirect
github.com/go-openapi/swag/jsonutils v0.28.0 // indirect
github.com/go-openapi/swag/loading v0.28.0 // indirect
github.com/go-openapi/swag/mangling v0.28.0 // indirect
github.com/go-openapi/swag/netutils v0.28.0 // indirect
github.com/go-openapi/swag/pools v0.28.0 // indirect
github.com/go-openapi/swag/stringutils v0.28.0 // indirect
github.com/go-openapi/swag/typeutils v0.28.0 // indirect
github.com/go-openapi/swag/yamlutils v0.28.0 // indirect
github.com/go-openapi/jsonpointer v1.0.2 // indirect
github.com/go-openapi/jsonreference v1.0.2 // indirect
github.com/go-openapi/spec v1.0.1 // indirect
github.com/go-openapi/swag v0.29.2 // indirect
github.com/go-openapi/swag/cmdutils v0.29.2 // indirect
github.com/go-openapi/swag/conv v0.29.2 // indirect
github.com/go-openapi/swag/fileutils v0.29.2 // indirect
github.com/go-openapi/swag/jsonutils v0.29.2 // indirect
github.com/go-openapi/swag/loading v0.29.2 // indirect
github.com/go-openapi/swag/mangling v0.29.2 // indirect
github.com/go-openapi/swag/netutils v0.29.2 // indirect
github.com/go-openapi/swag/pools v0.29.2 // indirect
github.com/go-openapi/swag/stringutils v0.29.2 // indirect
github.com/go-openapi/swag/typeutils v0.29.2 // indirect
github.com/go-openapi/swag/yamlutils v0.29.2 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
github.com/google/gnostic v0.7.1 // indirect
github.com/google/gnostic-models v0.7.1 // indirect
github.com/google/pprof v0.0.0-20260906184651-6331bc6350fe // indirect
github.com/google/pprof v0.0.0-20261016150608-1facf8f91b50 // indirect
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
github.com/grafana/regexp v0.0.0-20250905093917-f7b3be9d1853 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/ianlancetaylor/demangle v0.0.0-20251118225945-96ee0021ea0f // indirect
github.com/jpillora/backoff v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.20.1 // indirect
github.com/klauspost/compress v1.20.3 // indirect
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/mdlayher/socket v0.6.0 // indirect
Expand Down Expand Up @@ -120,9 +120,9 @@ require (
golang.org/x/sync v0.24.0 // indirect
golang.org/x/term v0.47.0 // indirect
golang.org/x/text v0.43.0 // indirect
golang.org/x/time v0.15.0 // indirect
golang.org/x/time v0.16.0 // indirect
golang.org/x/tools v0.51.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20261012220534-4341edf3f941 // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
k8s.io/klog/v2 v2.140.0 // indirect
Expand Down
Loading
Loading