Skip to content

Commit f10df9c

Browse files
authored
chore: update opa v1 with v0 rego compat (#3798)
Signed-off-by: Sertac Ozercan <[email protected]>
1 parent 93a1910 commit f10df9c

File tree

724 files changed

+90579
-57335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

724 files changed

+90579
-57335
lines changed

.golangci.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
run:
22
timeout: 5m
3+
go: "1.23"
34

45
issues:
56
exclude-files:
67
- pkg/target/matchcrd_constant.go
8+
exclude:
9+
- 'deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x'
710

811
linters-settings:
912
gocritic:
@@ -22,16 +25,13 @@ linters-settings:
2225

2326
misspell:
2427
locale: US
25-
staticcheck:
26-
# Select the Go version to target. The default is '1.13'.
27-
go: "1.23"
2828

2929
linters:
3030
disable-all: true
3131
enable:
3232
- errcheck
3333
- errorlint
34-
- exportloopref
34+
- copyloopvar
3535
- forcetypeassert
3636
- gci
3737
- gocritic

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ GATEKEEPER_NAMESPACE ?= gatekeeper-system
4141

4242
# When updating this, make sure to update the corresponding action in
4343
# workflow.yaml
44-
GOLANGCI_LINT_VERSION := v1.57.1
44+
GOLANGCI_LINT_VERSION := v1.63.4
4545

4646
# Detects the location of the user golangci-lint cache.
4747
GOLANGCI_LINT_CACHE := $(shell pwd)/.tmp/golangci-lint

go.mod

+33-30
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/open-policy-agent/gatekeeper/v3
22

3-
go 1.22.0
3+
go 1.22.7
4+
5+
toolchain go1.23.5
46

57
require (
68
cloud.google.com/go/trace v1.10.11
@@ -15,28 +17,28 @@ require (
1517
github.com/google/uuid v1.6.0
1618
github.com/onsi/gomega v1.34.2
1719
github.com/open-policy-agent/cert-controller v0.11.0
18-
github.com/open-policy-agent/frameworks/constraint v0.0.0-20250115145356-9e57a5775c15
19-
github.com/open-policy-agent/opa v0.68.0
20+
github.com/open-policy-agent/frameworks/constraint v0.0.0-20250130204619-df595163a8ba
21+
github.com/open-policy-agent/opa v1.1.0
2022
github.com/pkg/errors v0.9.1
2123
github.com/prometheus/client_golang v1.20.5
2224
github.com/spf13/cobra v1.8.1
23-
github.com/stretchr/testify v1.9.0
25+
github.com/stretchr/testify v1.10.0
2426
go.opentelemetry.io/contrib/detectors/aws/ec2 v1.21.1
25-
go.opentelemetry.io/contrib/detectors/gcp v1.21.1
26-
go.opentelemetry.io/otel v1.28.0
27+
go.opentelemetry.io/contrib/detectors/gcp v1.32.0
28+
go.opentelemetry.io/otel v1.34.0
2729
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.42.0
2830
go.opentelemetry.io/otel/exporters/prometheus v0.40.0
29-
go.opentelemetry.io/otel/metric v1.28.0
30-
go.opentelemetry.io/otel/sdk v1.28.0
31-
go.opentelemetry.io/otel/sdk/metric v1.28.0
32-
go.uber.org/automaxprocs v1.5.3
31+
go.opentelemetry.io/otel/metric v1.34.0
32+
go.opentelemetry.io/otel/sdk v1.34.0
33+
go.opentelemetry.io/otel/sdk/metric v1.32.0
34+
go.uber.org/automaxprocs v1.6.0
3335
go.uber.org/zap v1.26.0
3436
golang.org/x/net v0.34.0
35-
golang.org/x/oauth2 v0.21.0
37+
golang.org/x/oauth2 v0.24.0
3638
golang.org/x/sync v0.10.0
37-
golang.org/x/time v0.6.0
38-
google.golang.org/grpc v1.66.3
39-
google.golang.org/protobuf v1.34.2
39+
golang.org/x/time v0.9.0
40+
google.golang.org/grpc v1.70.0
41+
google.golang.org/protobuf v1.36.3
4042
gopkg.in/yaml.v2 v2.4.0
4143
gopkg.in/yaml.v3 v3.0.1
4244
k8s.io/api v0.30.9
@@ -55,13 +57,13 @@ require (
5557
require (
5658
cloud.google.com/go/auth v0.7.2 // indirect
5759
cloud.google.com/go/auth/oauth2adapt v0.2.3 // indirect
58-
cloud.google.com/go/compute/metadata v0.5.0 // indirect
60+
cloud.google.com/go/compute/metadata v0.5.2 // indirect
5961
cloud.google.com/go/monitoring v1.20.1 // indirect
6062
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
61-
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.20.0 // indirect
63+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0 // indirect
6264
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.44.0 // indirect
6365
github.com/OneOfOne/xxhash v1.2.8 // indirect
64-
github.com/agnivade/levenshtein v1.1.1 // indirect
66+
github.com/agnivade/levenshtein v1.2.0 // indirect
6567
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
6668
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
6769
github.com/aws/aws-sdk-go v1.47.9 // indirect
@@ -70,8 +72,8 @@ require (
7072
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
7173
github.com/cespare/xxhash/v2 v2.3.0 // indirect
7274
github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be // indirect
73-
github.com/containerd/containerd v1.7.21 // indirect
74-
github.com/containerd/errdefs v0.1.0 // indirect
75+
github.com/containerd/containerd v1.7.25 // indirect
76+
github.com/containerd/errdefs v1.0.0 // indirect
7577
github.com/containerd/log v0.1.0 // indirect
7678
github.com/containerd/platforms v0.2.1 // indirect
7779
github.com/distribution/reference v0.6.0 // indirect
@@ -85,7 +87,7 @@ require (
8587
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
8688
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
8789
github.com/felixge/httpsnoop v1.0.4 // indirect
88-
github.com/fsnotify/fsnotify v1.7.0 // indirect
90+
github.com/fsnotify/fsnotify v1.8.0 // indirect
8991
github.com/go-chi/chi/v5 v5.0.8 // indirect
9092
github.com/go-ini/ini v1.67.0 // indirect
9193
github.com/go-logr/stdr v1.2.2 // indirect
@@ -103,13 +105,13 @@ require (
103105
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
104106
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
105107
github.com/gorilla/mux v1.8.1 // indirect
106-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
108+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 // indirect
107109
github.com/imdario/mergo v0.3.13 // indirect
108110
github.com/inconshreveable/mousetrap v1.1.0 // indirect
109111
github.com/jmespath/go-jmespath v0.4.0 // indirect
110112
github.com/josharian/intern v1.0.0 // indirect
111113
github.com/json-iterator/go v1.1.12 // indirect
112-
github.com/klauspost/compress v1.17.9 // indirect
114+
github.com/klauspost/compress v1.17.11 // indirect
113115
github.com/mailru/easyjson v0.7.7 // indirect
114116
github.com/moby/locker v1.0.1 // indirect
115117
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
@@ -125,18 +127,19 @@ require (
125127
github.com/sirupsen/logrus v1.9.3 // indirect
126128
github.com/spf13/pflag v1.0.5 // indirect
127129
github.com/stoewer/go-strcase v1.2.0 // indirect
128-
github.com/tchap/go-patricia/v2 v2.3.1 // indirect
130+
github.com/tchap/go-patricia/v2 v2.3.2 // indirect
129131
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
130132
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
131133
github.com/yashtewari/glob-intersection v0.2.0 // indirect
132134
go.opencensus.io v0.24.0 // indirect
135+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
133136
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
134-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
137+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
135138
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 // indirect
136-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect
137-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.28.0 // indirect
138-
go.opentelemetry.io/otel/trace v1.28.0 // indirect
139-
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
139+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect
140+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect
141+
go.opentelemetry.io/otel/trace v1.34.0 // indirect
142+
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
140143
go.uber.org/atomic v1.11.0 // indirect
141144
go.uber.org/multierr v1.11.0 // indirect
142145
golang.org/x/crypto v0.32.0 // indirect
@@ -147,8 +150,8 @@ require (
147150
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
148151
google.golang.org/api v0.189.0 // indirect
149152
google.golang.org/genproto v0.0.0-20240722135656-d784300faade // indirect
150-
google.golang.org/genproto/googleapis/api v0.0.0-20240722135656-d784300faade // indirect
151-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240722135656-d784300faade // indirect
153+
google.golang.org/genproto/googleapis/api v0.0.0-20250115164207-1a7da9e5054f // indirect
154+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
152155
gopkg.in/inf.v0 v0.9.1 // indirect
153156
k8s.io/component-base v0.30.9 // indirect
154157
k8s.io/kube-openapi v0.0.0-20240430033511-f0e62f92d13f // indirect

0 commit comments

Comments
 (0)