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
client-go: cannot create/update resource with server-side apply on client-go fake clientset #103816
Comments
I'd like to take this issue |
/sig api-machinery |
I have no good idea to implement server-side apply logic on PatchActionImpl to support ApplyPatchType 😢 |
/cc @apelisse @leilajal @kwiesmueller |
We've discussed that with @jpbetz before. Not sure that's something we want to do. |
See our earlier discussion about this and the doc we wrote on the topic for more detail. |
I don't think #103821 closes this since it just makes the error better. |
Hi @howardjohn
And the first one is duplicated with #99953. So I think it is ok to close this issue with #103821, because the PR will fix the second one. |
Aha, #99953 was closed because of non-update. I'll reopen it. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello team.
What happened:
https://github.com/kubernetes/client-go/blob/ac207faedfb64acd5b99a2fb309b7044918b4dda/kubernetes/typed/core/v1/fake/fake_node.go#L138-L157
FakeNodes has Apply method, but we cannot create/update resource with server-side apply with this method.
And creating new resource and updating exist resource have different error message.
What you expected to happen:
(1) support ApplyPatchType or (2) creating new resource makes the same error as updating (=
PatchType is not supported
)How to reproduce it (as minimally and precisely as possible):
apply resource with fake clientset
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: