Skip to content
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 gatewayRef port to Canary CRD #1453

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Conversation

adleong
Copy link
Contributor

@adleong adleong commented Jul 3, 2023

The Gateway API allows port to be specified as part of the ParentReference of an HttpRoute: https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io%2fv1beta1.ParentReference

Correspondingly, we should be able to specify a port as part of the gatewayRef in a Canary resource.

This field is already copied over to the parentRef of the HttpRoute resource managed by Flagger, all that is required is to add this field to the Canary CRD so that it can be set on Canary resources.

@aryan9600
Copy link
Member

thanks @adleong for raising this PR! i guess we must've missed this since the field is experimental and not part of the standard Gateway API CRDs. could you also add this field to artifacts/flagger/crd.yaml and kustomize/base/flagger/crd.yaml? (you can add this field to artifacts/flagger/crd.yaml and then run make crd)

@adleong
Copy link
Contributor Author

adleong commented Jul 4, 2023

Thanks for the review, @aryan9600! done!

Copy link
Member

@aryan9600 aryan9600 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

could you squash the two commits into one? we should be ready to merge then

Signed-off-by: Alex Leong <alex@buoyant.io>
@aryan9600 aryan9600 merged commit 2b80c47 into fluxcd:main Jul 5, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants