external-dns icon indicating copy to clipboard operation
external-dns copied to clipboard

feat: add target annotation for service

Open eburghar opened this issue 3 years ago • 8 comments

Description

This pull request add the possibility to override the target of service the way we can do with ingress. It allows for example to publish an IP for a service when the load balancer is natted.

apiVersion: v1
kind: Service
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: imap.example.com,pop3.example.com,smtp.example.com
    external-dns.alpha.kubernetes.io/target: X.X.X.X
spec:
  ports:
    - port: 25
      name: smtp
    - port: 143
      name: imap
    - port: 110
      name: imap
  selector:
    app: mail
  type: LoadBalancer

Fixes #2240

Checklist

  • [ ] Unit tests updated
  • [ ] End user documentation updated

eburghar avatar Jun 21 '22 08:06 eburghar

CLA Missing ID CLA Not Signed

Welcome @eburghar!

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. :smiley:

k8s-ci-robot avatar Jun 21 '22 08:06 k8s-ci-robot

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: eburghar To complete the pull request process, please assign njuettner after the PR has been reviewed. You can assign the PR to them by writing /assign @njuettner in a comment when ready.

The full list of commands accepted by this bot can be found 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 avatar Jun 21 '22 08:06 k8s-ci-robot

I would really like this too..

KlavsKlavsen avatar Jul 04 '22 12:07 KlavsKlavsen

Yeah, +1 for this one :)

Danielss89 avatar Jul 04 '22 12:07 Danielss89

If someone can take this PR over as I'm not able to complete CLA Authorization as the project does not allow individual contributions (only corporate).

Regards.

eburghar avatar Jul 14 '22 13:07 eburghar

@eburghar Not sure what you mean, the CLA document says to select which type of contributor you are? Is there a problem with the CLA process for you?

mariusmarais avatar Aug 08 '22 10:08 mariusmarais

Yes apparently I can only sign on behalf of an organization.

eburghar avatar Aug 08 '22 18:08 eburghar

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Nov 06 '22 18:11 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Dec 06 '22 19:12 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-triage-robot avatar Jan 05 '23 20:01 k8s-triage-robot

@k8s-triage-robot: Closed this PR.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

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 avatar Jan 05 '23 20:01 k8s-ci-robot

@eburghar I can take this over if you are able to re-open.

GMartinez-Sisti avatar May 04 '23 08:05 GMartinez-Sisti

@GMartinez-Sisti I didn't close it but sure feel free to reopen a PR based on this one.

eburghar avatar May 04 '23 18:05 eburghar