✨ Add support for external ApplyConfiguration mappings#1327
✨ Add support for external ApplyConfiguration mappings#1327k8s-ci-robot merged 6 commits intokubernetes-sigs:mainfrom
Conversation
|
Welcome @andrew-farries! |
|
Hi @andrew-farries. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
/ok-to-test |
Using: ``` go generate ./cmd/controller-gen/... ```
Add packages under `testdata` that define an external type to be used for testing applyconfiguration generation for types that reference external types.
This type is used to test generation of ACs for types that embed external types.
Run the tests with `UPDATE=1` to regenerate the testdata files.
Pass the `externalApplyConfigurations` option to the `applyconfiguration` generator in the other tests so that they correctly generate `ApplyConfiguration` types now that an external type is used in the `CronJob`.
2187f15 to
6ec734c
Compare
|
Thx! /lgtm /assign @alvaroaleman @JoelSpeed |
|
LGTM label has been added. DetailsGit tree hash: 483657e3d6a6b59399fad3c90201d03cea9c5df4 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, andrew-farries The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add support for external
ApplyConfigurationmappings.#818 added support for generation of
ApplyConfigurations, but left support for externalApplyConfigurationmappings to be done as a follow-up [comment]. This PR adds that support.Specifying the mapping between external types and their
ApplyConfigurationsis done using the newexternalApplyConfigurationsoption on theapplyconfigurationgenerator:where
<package>.<TypeName>is the package-qualified type name whoseApplyConfigurationtypes reside in<applyconfiguration-package>.Fixes #1298