Skip to content

Fix/kustomize issues 435 440 #449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anridig
Copy link

@anridig anridig commented Jun 11, 2025

Summary

This PR aims to fix issues #435 and #440

✅ Key Fixes Applied:

  1. Fixed deprecated syntax in all kustomization.yaml files:
    • Removed path: prefix from patchesStrategicMerge entries
    • Added proper apiVersion: kustomize.config.k8s.io/v1beta1 and kind: Kustomization headers
    • Updated bases: to resources: in default kustomization
  2. Resolved service name conflicts:
    • Renamed controller-manager-metrics-service to tortoise-metrics-service in config/default/metrics_service.yaml to avoid collision with RBAC proxy service
  3. Updated deprecated vars to replacements:
    • Converted the old vars section to modern replacements syntax for webhook configuration
    • Applied kustomize edit fix to automatically convert deprecated patchesStrategicMerge to patches
  4. Removed missing file references:
    • Eliminated reference to non-existent manager_metrics_patch.yaml
  5. Added validation to Makefile:
    • Created new validate-kustomize target that validates syntax before deployment
    • Updated install and deploy targets to include validation step

✅ Files Modified:

  • Makefile - Added validation targets
  • config/default/kustomization.yaml - Major syntax updates and replacements conversion
  • config/default/metrics_service.yaml - Renamed service to avoid conflicts
  • All other config/*/kustomization.yaml files - Added proper headers and fixed syntax

anridig and others added 2 commits June 11, 2025 12:35
- Fix deprecated patchesStrategicMerge syntax by removing 'path:' prefix
- Update all kustomization.yaml files to include proper apiVersion and kind
- Replace deprecated 'vars' with modern 'replacements' syntax
- Resolve service name conflict between controller-manager-metrics-service
- Remove reference to missing manager_metrics_patch.yaml file
- Add validate-kustomize target to Makefile for syntax validation
- Update install and deploy targets to include validation step

Fixes issues mercari#435 and mercari#440 related to kustomize errors during installation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
The dist/ directory contains generated installation files created by
make build-installer and should not be committed to version control.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@anridig
Copy link
Author

anridig commented Jun 11, 2025

⚠️ ⚠️ ⚠️ This fix was implemented by Claude Code entirely based on an action plan created by Claude.ai 4.0 Sonnet ⚠️ ⚠️ ⚠️

There's always a possibility that Claude Code misunderstood something very fundamental about the codebase, so this PR needs to be thoroughly reviewed by a maintainer ❗

@AVSBharadwaj
Copy link
Collaborator

There was a similar fix PR raised by JR : #439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants