[OSPRH-19353] Remove deprecated Kustomize fields in config dir#1577
Conversation
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>
This may be a legitimate failure. It builds for me locally though. Will try again to verify. /test openstack-operator-build-deploy-kuttl |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abays, olliewalsh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
0ba3a6d
into
openstack-k8s-operators:main
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:
config/crd/kustomization.yaml:
config/manifests/kustomization.yaml:
config/scorecard/kustomization.yaml:
config/default/mutatingwebhookcainjection_patch.yaml:
config/default/validatingwebhookcainjection_patch.yaml:
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