Commit fad886a
committed
chore(tools): bump controller-tools with XValidation ordering fix
Update controller-tools to jaypoulz/controller-tools fork which includes
a fix for deterministic XValidation rule ordering. This ensures CRD
generation produces consistent output regardless of map iteration order.
Changes included:
- tools/go.mod: Point replace directive to jaypoulz/controller-tools
- tools/Makefile: Fix openapi-gen path (moved from code-generator to
kube-openapi upstream)
- tools/codegen/pkg/crdify/generator.go: Ignore 'type' validation for
allOf→enum schema simplification
- tools/codegen/pkg/schemacheck/generator.go: Disable NoDataTypeChange
comparator for the same schema simplification
The new controller-tools generates simpler enum schemas without allOf
wrappers when both type and field have enum markers. This is functionally
equivalent but structurally different, requiring the crdify and
schemacheck adjustments to avoid false positive violations.
Upstream fix: kubernetes-sigs/controller-tools#1324
OpenShift carry: openshift/kubernetes-sigs-controller-tools#33
The OpenShift carry is a temporary backport until we can bump to Go 1.25,
which is required by the upstream controller-tools version with this fix.
Created with support from Claude Opus 4 (Anthropic)1 parent 6fb7fda commit fad886a
199 files changed
Lines changed: 2201 additions & 2207 deletions
File tree
- config
- v1alpha1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests
- backups.config.openshift.io
- clusterimagepolicies.config.openshift.io
- clustermonitorings.config.openshift.io
- imagepolicies.config.openshift.io
- v1
- tests
- authentications.config.openshift.io
- infrastructures.config.openshift.io
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests
- authentications.config.openshift.io
- clusterimagepolicies.config.openshift.io
- featuregates.config.openshift.io
- imagepolicies.config.openshift.io
- infrastructures.config.openshift.io
- console/v1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests
- consoleplugins.console.openshift.io
- consolesamples.console.openshift.io
- example/v1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests/stableconfigtypes.example.openshift.io
- insights
- v1alpha1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests/datagathers.insights.openshift.io
- v1alpha2
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests/datagathers.insights.openshift.io
- v1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests/datagathers.insights.openshift.io
- machineconfiguration/v1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests
- controllerconfigs.machineconfiguration.openshift.io
- machineconfignodes.machineconfiguration.openshift.io
- machineconfigpools.machineconfiguration.openshift.io
- machine/v1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests/controlplanemachinesets.machine.openshift.io
- monitoring/v1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests/alertrelabelconfigs.monitoring.openshift.io
- openapi
- generated_openapi
- operator/v1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests
- consoles.operator.openshift.io
- ingresscontrollers.operator.openshift.io
- machineconfigurations.operator.openshift.io
- networks.operator.openshift.io
- payload-manifests/crds
- route/v1
- zz_generated.crd-manifests
- zz_generated.featuregated-crd-manifests/routes.route.openshift.io
- tools
- codegen/pkg/schemacheck
- vendor
- sigs.k8s.io/controller-tools/pkg/crd
- markers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
| 702 | + | |
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
| 745 | + | |
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
788 | | - | |
| 788 | + | |
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 24 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 124 | + | |
134 | 125 | | |
135 | | - | |
| 126 | + | |
136 | 127 | | |
137 | 128 | | |
138 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
142 | | - | |
| 138 | + | |
143 | 139 | | |
144 | | - | |
| 140 | + | |
145 | 141 | | |
146 | 142 | | |
147 | 143 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
473 | 475 | | |
474 | 476 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | 477 | | |
480 | 478 | | |
481 | | - | |
482 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
518 | | - | |
519 | 517 | | |
520 | 518 | | |
| 519 | + | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
Lines changed: 18 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 124 | + | |
134 | 125 | | |
135 | | - | |
| 126 | + | |
136 | 127 | | |
137 | 128 | | |
138 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
142 | | - | |
| 138 | + | |
143 | 139 | | |
144 | | - | |
| 140 | + | |
145 | 141 | | |
146 | 142 | | |
147 | 143 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
465 | | - | |
466 | 464 | | |
467 | 465 | | |
| 466 | + | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
0 commit comments