- 
                Notifications
    
You must be signed in to change notification settings  - Fork 399
 
Move versioned generator configs to API group folders #1096
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
Move versioned generator configs to API group folders #1096
Conversation
| resources: | ||
| "Distribution": | ||
| api_versions: | ||
| - name: "v1alpha1" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration example for the Distribution resource. I've tested generating Distribution at v1beta1.
cd3da53    to
    46c2a73      
    Compare
  
    | 
           I get the following when I run  Do you get it in your local?  | 
    
6558cc4    to
    7181d87      
    Compare
  
    - Consume aws-controllers-k8s/code-generator#266 that implements support for specifying API versions of the generated CRDs. - Move generator-config.yaml files to unversioned API group parent folders, because an API Group may now contain multiple versions. Signed-off-by: Alper Rifat Ulucinar <[email protected]>
7181d87    to
    199701a      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ulucinar !
…config.yaml Signed-off-by: Alper Rifat Ulucinar <[email protected]>
199701a    to
    990da01      
    Compare
  
    
Description of your changes
Fixes #
Consumes aws-controllers-k8s/code-generator#266 that implements support for specifying API versions of the generated CRDs.
Move
generator-config.yamlfiles to unversioned API group parent folders, because an API Group may now contain multiple versions. Please also note that aws-controllers-k8s/code-generator#266 introduces a backwards-incompatible behavior change: The default location of the generator configuration files, if one is not specified via the command-line with the--option, is nowapis/<API Group>/generator-config.yaml.When aws-controllers-k8s/code-generator#266 is merged, I will update the consumed
code-generatorversion accordingly.I have:
make reviewable testto ensure this PR is ready for review.How has this code been tested
I have tried running
provider-awswith a modified configuration for the Cloudfront'sDistributionresource that moves it to the versionv1beta1.[contribution process]: https://git.io/fj2m9