-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
✨ Add example for using apply client #1365
Conversation
/hold (work in progress) |
84a0f28
to
036788c
Compare
e59dc76
to
59d0129
Compare
/retest |
f498f93
to
9fa2a3c
Compare
I believe the applyconfig is very useful for applying patch when CRD has fields like PodTemplate and ServiceTemplate. However, controller-gen doesn't seem to be able to generate deepcopy of CRs including applyconfigs. Do you have a good solution? |
4c1a260
to
5744e92
Compare
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 |
/lifecycle frozen |
@joelanford: The 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. |
/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 |
/remove-lifecycle stale |
5744e92
to
3a0b793
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Jefftree The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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 PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. 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. |
It'd be lovely if this were revived and merged! The SSA story in controller-runtime is woefully underdocumented. I believe this also removes the need to convert to unstructured? kubernetes-sigs/controller-tools#570 (comment) |
/reopen |
@cannonpalms: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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. |
Example for using the server side apply client with CRDs
Took the suggestion of using the Patch to embed the applyconfiguration.
where
fooObj
is the underlying type (to contain the returned patch object) andapplyConfig
is the applyconfiguration.I'm not exactly sure how useful the applyconfig example is, let me know if you have any suggestions on how it can be improved. Thanks!