You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[OSPRH-19353] Remove deprecated Kustomize fields in config dir
Update all deprecated Kustomize fields to their modern equivalents across
the config directory to ensure compatibility with Kustomize v5.3+ and
future versions.
Changes made:
config/default/kustomization.yaml:
- Replace 'patchesStrategicMerge:' with 'patches:'
- Convert patch entries to use 'path:' format
- Update commented 'commonLabels:' to modern 'labels:' syntax with
includeSelectors/includeTemplates structure
- Split webhook CA injection patch into separate mutating and validating
patches for compatibility with modern Kustomize
config/crd/kustomization.yaml:
- Replace 'patchesStrategicMerge:' with 'patches:'
- Update commented patch entries to use 'path:' format for both
webhook and cainjection patches
config/manifests/kustomization.yaml:
- Replace commented '#patchesJson6902:' with '#patches:'
config/scorecard/kustomization.yaml:
- Replace 'patchesJson6902:' with 'patches:'
- Update kubebuilder scaffold comment from 'patchesJson6902' to 'patches'
config/default/mutatingwebhookcainjection_patch.yaml:
- New file: separate mutating webhook configuration for CA injection
config/default/validatingwebhookcainjection_patch.yaml:
- Renamed from webhookcainjection_patch.yaml: separate validating webhook
configuration for CA injection
These changes eliminate deprecation warnings and align with the modern
Kustomize field syntax while maintaining full backward compatibility.
The webhook configuration split ensures certificate injection works
properly with the modernized Kustomize patches field.
Jira: https://issues.redhat.com/browse/OSPRH-19353
Co-authored-by: Claude <claude@anthropic.com>
0 commit comments