Skip to content

Commit b7b5eed

Browse files
authored
Copy PodTemplate defaulter from Kubernetes to avoid dependency (#143)
Fixes #142. We need the functionality provided by this code, but it is sadly k8s internal and not registered by the AddToScheme method of the approved API package.
1 parent 37ce35b commit b7b5eed

File tree

4 files changed

+526
-13
lines changed

4 files changed

+526
-13
lines changed

go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ module github.com/project-codeflare/appwrapper
33
go 1.21
44

55
require (
6+
github.com/distribution/reference v0.5.0
67
github.com/onsi/ginkgo/v2 v2.16.0
78
github.com/onsi/gomega v1.31.1
89
github.com/open-policy-agent/cert-controller v0.10.1
910
k8s.io/api v0.29.2
1011
k8s.io/apimachinery v0.29.2
1112
k8s.io/client-go v0.29.2
12-
k8s.io/kubernetes v1.29.2
1313
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
1414
sigs.k8s.io/controller-runtime v0.17.0
1515
sigs.k8s.io/kueue v0.6.2
@@ -21,7 +21,6 @@ require (
2121
github.com/blang/semver/v4 v4.0.0 // indirect
2222
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2323
github.com/davecgh/go-spew v1.1.1 // indirect
24-
github.com/distribution/reference v0.5.0 // indirect
2524
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
2625
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
2726
github.com/fsnotify/fsnotify v1.7.0 // indirect

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ k8s.io/kube-aggregator v0.28.1 h1:rvG4llYnQKHjj6YjjoBPEJxfD1uH0DJwkrJTNKGAaCs=
229229
k8s.io/kube-aggregator v0.28.1/go.mod h1:JaLizMe+AECSpO2OmrWVsvnG0V3dX1RpW+Wq/QHbu18=
230230
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 h1:aVUu9fTY98ivBPKR9Y5w/AuzbMm96cd3YHRTU83I780=
231231
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA=
232-
k8s.io/kubernetes v1.29.2 h1:8hh1cntqdulanjQt7wSSSsJfBgOyx6fUdFWslvGL5m0=
233-
k8s.io/kubernetes v1.29.2/go.mod h1:xZPKU0yO0CBbLTnbd+XGyRmmtmaVuJykDb8gNCkeeUE=
234232
k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI=
235233
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
236234
sigs.k8s.io/controller-runtime v0.17.0 h1:fjJQf8Ukya+VjogLO6/bNX9HE6Y2xpsO5+fyS26ur/s=

0 commit comments

Comments
 (0)