Skip to content

Commit 6ccacf8

Browse files
maxsmythesozercanritazh
authored
Update to K8s v0.27.2; add prototype CEL driver (#331)
* Update to K8s v0.27.2; add prototype CEL driver Signed-off-by: Max Smythe <[email protected]> * Fix flaky unit test Signed-off-by: Max Smythe <[email protected]> * Regenerate YAML, use K8s constant for CEL budget, rename CEL driver Signed-off-by: Max Smythe <[email protected]> * Update constraint/pkg/client/drivers/k8scel/driver.go Co-authored-by: Sertaç Özercan <[email protected]> Signed-off-by: Max Smythe <[email protected]> * Update constraint/pkg/client/drivers/k8scel/driver.go Co-authored-by: Sertaç Özercan <[email protected]> Signed-off-by: Max Smythe <[email protected]> * Update constraint/pkg/client/drivers/k8scel/driver.go Co-authored-by: Sertaç Özercan <[email protected]> Signed-off-by: Max Smythe <[email protected]> * Address review comments Signed-off-by: Max Smythe <[email protected]> --------- Signed-off-by: Max Smythe <[email protected]> Signed-off-by: Max Smythe <[email protected]> Co-authored-by: Sertaç Özercan <[email protected]> Co-authored-by: Rita Zhang <[email protected]>
1 parent ce7b1a7 commit 6ccacf8

File tree

1,127 files changed

+86641
-23961
lines changed

Some content is hidden

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

1,127 files changed

+86641
-23961
lines changed

constraint/go.mod

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ require (
66
github.com/davecgh/go-spew v1.1.1
77
github.com/golang/glog v1.1.1
88
github.com/google/go-cmp v0.5.9
9-
github.com/onsi/gomega v1.27.2
9+
github.com/onsi/gomega v1.27.7
1010
github.com/open-policy-agent/opa v0.51.0
1111
github.com/spf13/cobra v1.6.1
1212
github.com/spf13/pflag v1.0.5
13-
golang.org/x/net v0.8.0
14-
k8s.io/apiextensions-apiserver v0.26.3
15-
k8s.io/apimachinery v0.26.3
16-
k8s.io/client-go v0.26.3
17-
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448
18-
sigs.k8s.io/controller-runtime v0.14.5
13+
golang.org/x/net v0.10.0
14+
k8s.io/api v0.27.2
15+
k8s.io/apiextensions-apiserver v0.27.2
16+
k8s.io/apimachinery v0.27.2
17+
k8s.io/apiserver v0.27.2
18+
k8s.io/client-go v0.27.2
19+
k8s.io/utils v0.0.0-20230209194617-a36077c30491
20+
sigs.k8s.io/controller-runtime v0.15.0
1921
sigs.k8s.io/yaml v1.3.0
2022
)
2123

@@ -35,9 +37,9 @@ require (
3537
github.com/ghodss/yaml v1.0.0 // indirect
3638
github.com/go-logr/logr v1.2.4 // indirect
3739
github.com/go-logr/stdr v1.2.2 // indirect
38-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
39-
github.com/go-openapi/jsonreference v0.20.0 // indirect
40-
github.com/go-openapi/swag v0.19.14 // indirect
40+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
41+
github.com/go-openapi/jsonreference v0.20.1 // indirect
42+
github.com/go-openapi/swag v0.22.3 // indirect
4143
github.com/gobwas/glob v0.2.3 // indirect
4244
github.com/gogo/protobuf v1.3.2 // indirect
4345
github.com/golang/protobuf v1.5.3 // indirect
@@ -50,17 +52,17 @@ require (
5052
github.com/inconshreveable/mousetrap v1.0.1 // indirect
5153
github.com/josharian/intern v1.0.0 // indirect
5254
github.com/json-iterator/go v1.1.12 // indirect
53-
github.com/mailru/easyjson v0.7.6 // indirect
55+
github.com/mailru/easyjson v0.7.7 // indirect
5456
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
5557
github.com/mitchellh/mapstructure v1.4.1 // indirect
5658
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5759
github.com/modern-go/reflect2 v1.0.2 // indirect
5860
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5961
github.com/pkg/errors v0.9.1 // indirect
60-
github.com/prometheus/client_golang v1.14.0 // indirect
61-
github.com/prometheus/client_model v0.3.0 // indirect
62-
github.com/prometheus/common v0.37.0 // indirect
63-
github.com/prometheus/procfs v0.8.0 // indirect
62+
github.com/prometheus/client_golang v1.15.1 // indirect
63+
github.com/prometheus/client_model v0.4.0 // indirect
64+
github.com/prometheus/common v0.42.0 // indirect
65+
github.com/prometheus/procfs v0.9.0 // indirect
6466
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
6567
github.com/stoewer/go-strcase v1.2.0 // indirect
6668
github.com/tchap/go-patricia/v2 v2.3.1 // indirect
@@ -76,24 +78,22 @@ require (
7678
go.opentelemetry.io/otel/sdk v1.14.0 // indirect
7779
go.opentelemetry.io/otel/trace v1.14.0 // indirect
7880
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
79-
golang.org/x/oauth2 v0.4.0 // indirect
80-
golang.org/x/sys v0.6.0 // indirect
81-
golang.org/x/term v0.6.0 // indirect
82-
golang.org/x/text v0.8.0 // indirect
81+
golang.org/x/oauth2 v0.5.0 // indirect
82+
golang.org/x/sys v0.8.0 // indirect
83+
golang.org/x/term v0.8.0 // indirect
84+
golang.org/x/text v0.9.0 // indirect
8385
golang.org/x/time v0.3.0 // indirect
8486
google.golang.org/appengine v1.6.7 // indirect
8587
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
8688
google.golang.org/grpc v1.54.0 // indirect
87-
google.golang.org/protobuf v1.28.1 // indirect
89+
google.golang.org/protobuf v1.30.0 // indirect
8890
gopkg.in/inf.v0 v0.9.1 // indirect
8991
gopkg.in/yaml.v2 v2.4.0 // indirect
9092
gopkg.in/yaml.v3 v3.0.1 // indirect
91-
k8s.io/api v0.26.3 // indirect
92-
k8s.io/apiserver v0.26.3 // indirect
93-
k8s.io/component-base v0.26.3 // indirect
94-
k8s.io/klog/v2 v2.80.1 // indirect
95-
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
96-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.36 // indirect
97-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
93+
k8s.io/component-base v0.27.2 // indirect
94+
k8s.io/klog/v2 v2.90.1 // indirect
95+
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
96+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
97+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
9898
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
9999
)

constraint/go.sum

Lines changed: 69 additions & 152 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package k8scel
2+
3+
type Arg func(*Driver) error
4+
5+
// GatherStats starts collecting various stats around the
6+
// underlying engine's calls.
7+
func GatherStats() Arg {
8+
return func(driver *Driver) error {
9+
driver.gatherStats = true
10+
11+
return nil
12+
}
13+
}

0 commit comments

Comments
 (0)