Skip to content

Commit 1a0ab5f

Browse files
fix: remove deprecated spec.preserveUnknownFields and update frameworks
- Remove preserveUnknownFields from constrainttemplate CRD - Remove vendor reference from kustomization.yaml (vendor was removed) - Update frameworks/constraint to use fork with fix for regenerated manifests Signed-off-by: meskinemohamed <mohamed.meskine@dataiku.com>
1 parent d7e12d6 commit 1a0ab5f

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

config/crd/bases/constrainttemplate-customresourcedefinition.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ spec:
1111
listKind: ConstraintTemplateList
1212
plural: constrainttemplates
1313
singular: constrainttemplate
14-
preserveUnknownFields: false
1514
scope: Cluster
1615
versions:
1716
- name: v1

config/crd/kustomization.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ resources:
2020
- bases/constrainttemplate-customresourcedefinition.yaml
2121
# +kubebuilder:scaffold:crdkustomizeresource
2222

23-
bases:
24-
- ../../vendor/github.com/open-policy-agent/frameworks/constraint/deploy
25-
2623
patchesJson6902:
2724
- target:
2825
group: apiextensions.k8s.io

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,5 @@ require (
173173
sigs.k8s.io/randfill v1.0.0 // indirect
174174
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
175175
)
176+
177+
replace github.com/open-policy-agent/frameworks/constraint => github.com/meskinemohamed/frameworks/constraint v0.0.0-20251210214342-3fd8922d7fc4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ github.com/lestrrat-go/option/v2 v2.0.0/go.mod h1:oSySsmzMoR0iRzCDCaUfsCzxQHUEuh
280280
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
281281
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
282282
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
283+
github.com/meskinemohamed/frameworks/constraint v0.0.0-20251210214342-3fd8922d7fc4 h1:bWt4gH69SDImUSDjyupOIf+j8dInUi5r9seHkEXs9Ao=
284+
github.com/meskinemohamed/frameworks/constraint v0.0.0-20251210214342-3fd8922d7fc4/go.mod h1:OOGNLsdy7UA2qHDlUP4GFsZ5kOm67UVr8zuC5dNBbKg=
283285
github.com/miekg/dns v1.1.57 h1:Jzi7ApEIzwEPLHWRcafCN9LZSBbqQpxjt/wpgvg7wcM=
284286
github.com/miekg/dns v1.1.57/go.mod h1:uqRjCRUuEAA6qsOiJvDd+CFo/vW+y5WR6SNmHE55hZk=
285287
github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg=
@@ -305,8 +307,6 @@ github.com/onsi/gomega v1.38.2 h1:eZCjf2xjZAqe+LeWvKb5weQ+NcPwX84kqJ0cZNxok2A=
305307
github.com/onsi/gomega v1.38.2/go.mod h1:W2MJcYxRGV63b418Ai34Ud0hEdTVXq9NW9+Sx6uXf3k=
306308
github.com/open-policy-agent/cert-controller v0.14.1-0.20251031183427-40974f7dd486 h1:Ir1VtwXM/0OF22+klrZQpqbJQ4Vkpv1v4d7p61Xpzyg=
307309
github.com/open-policy-agent/cert-controller v0.14.1-0.20251031183427-40974f7dd486/go.mod h1:6zxrUxL0sFlTQzNFToeo2ysfQ9lloVXj2fitZBVdXWU=
308-
github.com/open-policy-agent/frameworks/constraint v0.0.0-20251105220536-241c4a079fc8 h1:vb+BOrLjcuBfmULbcnHG3rWSbivfN4J3gMVIgLDnHwE=
309-
github.com/open-policy-agent/frameworks/constraint v0.0.0-20251105220536-241c4a079fc8/go.mod h1:xe7Oq8yotFEBBx9dmlFQtlJamC7ULIwd8bUimWrnjlQ=
310310
github.com/open-policy-agent/opa v1.10.0 h1:CzWR/2OhZ5yHrqiyyB1Z37mqLMowifAiFSasjLxBBpk=
311311
github.com/open-policy-agent/opa v1.10.0/go.mod h1:7uPI3iRpOalJ0BhK6s1JALWPU9HvaV1XeBSSMZnr/PM=
312312
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=

0 commit comments

Comments
 (0)