Skip to content

patchApply validation #3201

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
User979269852 opened this issue Apr 25, 2025 · 2 comments
Open

patchApply validation #3201

User979269852 opened this issue Apr 25, 2025 · 2 comments

Comments

@User979269852
Copy link

I use client.Patch to patch object, but error occurs:failed to create typed patch object: .spec.template.spec.containers[name="c0"].ports: duplicate entries for key [containerPort=8080,protocol="TCP"]

I need to define dumplicate container ports with difference port name

@User979269852
Copy link
Author

I call the function like cli.Patch(ctx, obj, client.Apply, client.ForceOwnership, client.FieldOwner("xxx"), client.FieldValidation("Ignore"));can anyone help?Thank you very much

@sbueringer
Copy link
Member

This is very likely an issue in upstream. Can you check if there's already an issue in the kubernetes repo for it?

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

No branches or pull requests

2 participants