Skip to content

Commit 86ef0bc

Browse files
committed
fix: Update go-feature-server base image to Go 1.25 and fix operator Dockerfile COPY permissions
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent 4541690 commit 86ef0bc

5 files changed

Lines changed: 83 additions & 83 deletions

File tree

go/infra/docker/feature-server/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM golang:1.24.12
1+
FROM golang:1.25
2+
ENV GOTOOLCHAIN=auto
23

34
# Update the package list and install the ca-certificates package
45
RUN apt-get update && apt-get install -y ca-certificates

infra/feast-operator/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ ARG TARGETARCH
55
ENV GOTOOLCHAIN=auto
66

77
# Copy the Go Modules manifests
8-
COPY go.mod go.mod
9-
COPY go.sum go.sum
8+
COPY --chown=1001:0 go.mod go.mod
9+
COPY --chown=1001:0 go.sum go.sum
1010
# cache deps before building and copying source so that we don't need to re-download as much
1111
# and so that source changes don't invalidate our downloaded layer
1212
RUN go mod download
1313

1414
# Copy the go source
15-
COPY cmd/main.go cmd/main.go
16-
COPY api/ api/
17-
COPY internal/controller/ internal/controller/
15+
COPY --chown=1001:0 cmd/main.go cmd/main.go
16+
COPY --chown=1001:0 api/ api/
17+
COPY --chown=1001:0 internal/controller/ internal/controller/
1818

1919
# Build
2020
# the GOARCH has not a default value to allow the binary be built according to the host where the command

infra/feast-operator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ ENVSUBST = $(LOCALBIN)/envsubst
241241
## Tool Versions
242242
KUSTOMIZE_VERSION ?= v5.4.3
243243
CONTROLLER_TOOLS_VERSION ?= v0.18.0
244-
CRD_REF_DOCS_VERSION ?= v0.3.0
244+
CRD_REF_DOCS_VERSION ?= v0.2.0
245245
ENVTEST_VERSION ?= release-0.21
246246
GOLANGCI_LINT_VERSION ?= v2.1.0
247247
ENVSUBST_VERSION ?= v1.4.2

infra/feast-operator/go.mod

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ require (
77
github.com/onsi/gomega v1.36.2
88
github.com/openshift/api v0.0.0-20240912201240-0a8800162826 // release-4.17
99
gopkg.in/yaml.v3 v3.0.1
10-
k8s.io/api v0.33.0
11-
k8s.io/apimachinery v0.33.0
12-
k8s.io/client-go v0.33.0
10+
k8s.io/api v0.33.1
11+
k8s.io/apimachinery v0.33.1
12+
k8s.io/client-go v0.33.1
1313
sigs.k8s.io/controller-runtime v0.21.0
1414
)
1515

1616
require (
17-
github.com/prometheus-operator/prometheus-operator/pkg/client v0.75.0
18-
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738
17+
github.com/prometheus-operator/prometheus-operator/pkg/client v0.83.0
18+
k8s.io/utils v0.0.0-20250502105355-0f33e8f1c979
1919
)
2020

2121
require (
@@ -26,17 +26,17 @@ require (
2626
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
2727
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2828
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
29-
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
29+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
3030
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
3131
github.com/felixge/httpsnoop v1.0.4 // indirect
3232
github.com/fsnotify/fsnotify v1.7.0 // indirect
33-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
33+
github.com/fxamacker/cbor/v2 v2.8.0 // indirect
3434
github.com/go-logr/logr v1.4.2 // indirect
3535
github.com/go-logr/stdr v1.2.2 // indirect
3636
github.com/go-logr/zapr v1.3.0 // indirect
37-
github.com/go-openapi/jsonpointer v0.21.0 // indirect
37+
github.com/go-openapi/jsonpointer v0.21.1 // indirect
3838
github.com/go-openapi/jsonreference v0.21.0 // indirect
39-
github.com/go-openapi/swag v0.23.0 // indirect
39+
github.com/go-openapi/swag v0.23.1 // indirect
4040
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
4141
github.com/gogo/protobuf v1.3.2 // indirect
4242
github.com/google/btree v1.1.3 // indirect
@@ -49,12 +49,12 @@ require (
4949
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5050
github.com/josharian/intern v1.0.0 // indirect
5151
github.com/json-iterator/go v1.1.12 // indirect
52-
github.com/mailru/easyjson v0.7.7 // indirect
52+
github.com/mailru/easyjson v0.9.0 // indirect
5353
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5454
github.com/modern-go/reflect2 v1.0.2 // indirect
5555
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5656
github.com/pkg/errors v0.9.1 // indirect
57-
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.75.0 // indirect
57+
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.83.0 // indirect
5858
github.com/prometheus/client_golang v1.22.0 // indirect
5959
github.com/prometheus/client_model v0.6.1 // indirect
6060
github.com/prometheus/common v0.62.0 // indirect
@@ -75,29 +75,29 @@ require (
7575
go.uber.org/multierr v1.11.0 // indirect
7676
go.uber.org/zap v1.27.0 // indirect
7777
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
78-
golang.org/x/net v0.38.0 // indirect
79-
golang.org/x/oauth2 v0.27.0 // indirect
80-
golang.org/x/sync v0.12.0 // indirect
81-
golang.org/x/sys v0.31.0 // indirect
82-
golang.org/x/term v0.30.0 // indirect
83-
golang.org/x/text v0.23.0 // indirect
84-
golang.org/x/time v0.9.0 // indirect
78+
golang.org/x/net v0.40.0 // indirect
79+
golang.org/x/oauth2 v0.30.0 // indirect
80+
golang.org/x/sync v0.14.0 // indirect
81+
golang.org/x/sys v0.33.0 // indirect
82+
golang.org/x/term v0.32.0 // indirect
83+
golang.org/x/text v0.25.0 // indirect
84+
golang.org/x/time v0.11.0 // indirect
8585
golang.org/x/tools v0.28.0 // indirect
8686
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
8787
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect
8888
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect
8989
google.golang.org/grpc v1.68.1 // indirect
90-
google.golang.org/protobuf v1.36.5 // indirect
90+
google.golang.org/protobuf v1.36.6 // indirect
9191
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
9292
gopkg.in/inf.v0 v0.9.1 // indirect
93-
k8s.io/apiextensions-apiserver v0.33.0 // indirect
94-
k8s.io/apiserver v0.33.0 // indirect
95-
k8s.io/component-base v0.33.0 // indirect
93+
k8s.io/apiextensions-apiserver v0.33.1 // indirect
94+
k8s.io/apiserver v0.33.1 // indirect
95+
k8s.io/component-base v0.33.1 // indirect
9696
k8s.io/klog/v2 v2.130.1 // indirect
9797
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
9898
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect
99-
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
99+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
100100
sigs.k8s.io/randfill v1.0.0 // indirect
101-
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
101+
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
102102
sigs.k8s.io/yaml v1.4.0 // indirect
103103
)

0 commit comments

Comments
 (0)