Skip to content

Add gatewayRef port to Canary CRD#1453

Merged
aryan9600 merged 1 commit intofluxcd:mainfrom
adleong:alex/parent-port
Jul 5, 2023
Merged

Add gatewayRef port to Canary CRD#1453
aryan9600 merged 1 commit intofluxcd:mainfrom
adleong:alex/parent-port

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.

@adleong adleong requested a review from stefanprodan as a code owner July 3, 2023 23:52
@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>
@adleong adleong force-pushed the alex/parent-port branch from df110cb to 879ea26 Compare July 4, 2023 20:22
@aryan9600 aryan9600 merged commit 2b80c47 into fluxcd:main Jul 5, 2023
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