Skip to content

Conversation

@kubasikus
Copy link

ArgoCD sync is failing due to incorrect field naming. Fixes done by running "kustomize edit fix" in the dev/ and prod/ dirs

ArgoCD sync is failing due to incorrect field naming. Fixes done by running "kustomize edit fix" in the dev/ and prod/ dirs
@kubasikus
Copy link
Author

kubasikus commented Jun 5, 2024

@devopsjourney1 Hey there, the kustomized webapp sync isn't working due to problems with the kustomize files. This is affecting people following your tutorial. I've tested that with these changes, things work well again.

@duchenpaul
Copy link

I encountered this error while using your code, it is not working:

Unable to create application: application spec for kustom-app-dev is invalid: InvalidSpecError: Unable to generate manifests in kustom-webapp/overlays/dev: rpc error: code = Unknown desc = `kustomize build <path to cached source>/kustom-webapp/overlays/dev` failed exit status 1: # Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically. # Warning: 'commonLabels' is deprecated. Please use 'labels' instead. Run 'kustomize edit fix' to update your Kustomization automatically. Error: no matches for Id Deployment.v1.apps/mywebapp-dev.[noNs]; failed to find unique target for patch Deployment.v1.apps/mywebapp-dev.[noNs]

I am not sure why 'patchesStrategicMerge' is deprecated, this thing is so stupid and confusing.

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