community icon indicating copy to clipboard operation
community copied to clipboard

CloudFront Distribution CRD's customOriginConfig:httpSPort has incorrect capitalization

Open knottnt opened this issue 6 months ago • 5 comments

Describe the issue The CRD for CloudFront Distribution has an incorrect capitalization for the distributionConfig:origins:items:customOriginConfig:httpSPort spec field. httpSPort should be httpsPort. This doesn't create any functional issues, but may be worth fixing if/when a new major version of the CloudFront ACK controller is released.

Expected outcome distributionConfig:origins:items:customOriginConfig:httpSPort -> distributionConfig:origins:items:customOriginConfig:httpsPort

knottnt avatar May 08 '25 17:05 knottnt

Hello @knottnt 👋 Thank you for opening an issue in ACK! A maintainer will triage this issue soon.

We encourage community contributions, so if you're interested in tackling this yourself or suggesting a solution, please check out our Contribution and Code of Conduct guidelines.

You can find more information about ACK on our website.

github-actions[bot] avatar May 08 '25 17:05 github-actions[bot]

@knottnt , I can take a look at this. Do we need to do new API version and write a conversion from old API to new?

sga80 avatar May 30 '25 23:05 sga80

@sga80: Since this is a breaking change to the CRD I think this would require new version and a hook to convert existing CRDs to the new version would be helpful. That said, it might be worth holding off on fixing this until an other feature or change that affects functionality requires a major version change. Having the mis-capitalization is annoying, but doesn't break any functionality.

cc: @a-hilaly

knottnt avatar Jun 02 '25 17:06 knottnt

For more context we noticed this issue when implementing CloudFront's VPC Origin resource which also has an httpsPort field. To avoid propagating the mis-capitalization we fixed the root cause in the pkg repo, but forced the existing distributionConfig:origins:items:customOriginConfig:httpSPort field to httpSPort here in order to avoid introducing a breaking change to the CloudFront controller.

knottnt avatar Jun 02 '25 17:06 knottnt

@knottnt , makes sense. I will close my PR and can pick it up when there is a requirement to create a new API version

sga80 avatar Jun 03 '25 00:06 sga80

Issues go stale after 180d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 60d of inactivity and eventually close. If this issue is safe to close now please do so with /close. Provide feedback via https://github.com/aws-controllers-k8s/community. /lifecycle stale

ack-bot avatar Nov 30 '25 05:11 ack-bot