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

feat: add support for ingress backed istio gateways #3842

Merged
merged 8 commits into from
Aug 23, 2023

Conversation

DP19
Copy link
Contributor

@DP19 DP19 commented Aug 5, 2023

Description

This adds support for a new annotation on an Istio Gateway to allow getting a target from an ingress object in place of a LoadBalancer service type.

This is particularly useful for GCP's Anthos Service Mesh as they guide users to setup their gateways using a ClusterIP service type with an Ingress routing all traffic to the Gateway.

I don't see other annotation implementations for Source's and I'm looking for some guidance here on where this annotation should live (or if some other signal should be used in place of the annotation)

Fixes #2911

Checklist

  • Unit tests updated
  • End user documentation updated

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 5, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @DP19!

It looks like this is your first PR to kubernetes-sigs/external-dns 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/external-dns has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 5, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @DP19. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 5, 2023
@mloiseleur
Copy link
Contributor

/retitle "feat: add support for ingress backed istio gateways"

@k8s-ci-robot k8s-ci-robot changed the title add supoort for ingress backed istio gateways "feat: add support for ingress backed istio gateways" Aug 8, 2023
@mloiseleur
Copy link
Contributor

Hello @DP19,

Thanks for this PR. It's missing some tests.
I've read https://github.com/kubernetes-sigs/external-dns/blob/master/docs/annotations/annotations.md but I'm unsure if I can suggest a better name. I would tend to prefer a simple name like external-dns.alpha.kubernetes.io/istio-ingress or even external-dns.alpha.kubernetes.io/ingress

@mloiseleur
Copy link
Contributor

/retitle feat: add support for ingress backed istio gateways

@k8s-ci-robot k8s-ci-robot changed the title "feat: add support for ingress backed istio gateways" feat: add support for ingress backed istio gateways Aug 8, 2023
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 8, 2023
@DP19
Copy link
Contributor Author

DP19 commented Aug 8, 2023

Thanks for taking the time to look at this @mloiseleur! Just made some suggested changes and updated the unit tests

source/istio_gateway.go Outdated Show resolved Hide resolved
source/istio_gateway.go Outdated Show resolved Hide resolved
source/istio_gateway.go Outdated Show resolved Hide resolved
@szuecs
Copy link
Contributor

szuecs commented Aug 9, 2023

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 9, 2023
@DP19 DP19 requested a review from szuecs August 9, 2023 13:08
@mloiseleur
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 9, 2023
@mloiseleur
Copy link
Contributor

/assign @szuecs

@mloiseleur mloiseleur removed their assignment Aug 11, 2023
@szuecs
Copy link
Contributor

szuecs commented Aug 23, 2023

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: DP19, szuecs

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 23, 2023
@k8s-ci-robot k8s-ci-robot merged commit f367622 into kubernetes-sigs:master Aug 23, 2023
14 checks passed
@legal90
Copy link

legal90 commented Aug 31, 2023

@DP19 Thank you for fixing that!

@Raffo , @szuecs Could you please release a new version of external-dns and the helm chart with this change included? 🙏
Thank you!

@Raffo
Copy link
Contributor

Raffo commented Aug 31, 2023

Release will happen likely next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External-DNS is unable to compute VirtualService's endpoint
6 participants