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

Move the DNS/WAN discovery to use the new AuthService #413

Merged
merged 1 commit into from
Dec 23, 2020

Conversation

aleoli
Copy link
Member

@aleoli aleoli commented Dec 14, 2020

Description

This PR changes the way to do WAN discovery with DNS

Now, we have to discover the AuthService to get foreign cluster information. SRV records are enow pointing to the ingress/service that is exposing the AuthService on the foreign cluster

The registration of the home cluster is simpler than before, no TXT record is needed because those data are retrieved from the new service as for LAN discovery

ref. issue #371

@adamjensenbot
Copy link
Collaborator

Hi @aleoli. Thanks for your PR!

I am @adamjensenbot.
You can interact with me issuing a slash command in the first line of a comment.
Currently, I understand the following commands:

  • /rebase: Rebase this PR onto the master branch
  • /merge: Merge this PR into the master branch
  • /ok-to-test Enable testing for PRs with base on forks

Make sure this PR appears in the liqo changelog, adding one of the following labels:

  • kind/breaking: 💥 Breaking Change
  • kind/feature: 🚀 New Feature
  • kind/bug: 🐛 Bug Fix
  • kind/cleanup: 🧹 Code Refactoring
  • kind/docs: 📝 Documentation

@aleoli aleoli mentioned this pull request Dec 14, 2020
10 tasks
@aleoli aleoli force-pushed the aol/dns-discovery branch 6 times, most recently from 5495e08 to 7fd0408 Compare December 15, 2020 11:55
@aleoli aleoli changed the title Move the DNS/WAN discovery to use the new AuthService [WIP] Move the DNS/WAN discovery to use the new AuthService Dec 16, 2020
@aleoli aleoli marked this pull request as ready for review December 16, 2020 08:34
@mlavacca mlavacca added this to the 0.2 milestone Dec 16, 2020
@aleoli aleoli changed the title [WIP] Move the DNS/WAN discovery to use the new AuthService Move the DNS/WAN discovery to use the new AuthService Dec 16, 2020
@mlavacca
Copy link
Member

/rebase

internal/discovery/foreign.go Outdated Show resolved Hide resolved
internal/discovery/foreign.go Show resolved Hide resolved
@@ -4,6 +4,7 @@ const (
ClusterIdLabel = "liqo.io/cluster-id"
AuthTokenLabel = "liqo.io/auth-token"
RemoteIdentityLabel = "liqo.io/remote-identity"
DiscoveryTypeLabel = "liqo.io/discovery-type"
Copy link
Member

Choose a reason for hiding this comment

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

what do you think about adding the discovery prefix to all these labels?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean something like "discovery.liqo.io/..."?

Copy link
Member

Choose a reason for hiding this comment

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

yep

Copy link
Member

Choose a reason for hiding this comment

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

if you think it is appropriate for these labels of course

@mlavacca
Copy link
Member

/merge

@adamjensenbot adamjensenbot added the merge-requested Request bot merging (automatically managed) label Dec 23, 2020
@adamjensenbot adamjensenbot merged commit 10ebff6 into master Dec 23, 2020
@adamjensenbot adamjensenbot deleted the aol/dns-discovery branch December 23, 2020 11:19
@adamjensenbot adamjensenbot removed the merge-requested Request bot merging (automatically managed) label Dec 23, 2020
@alacuku alacuku added the kind/feature New feature or request label Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants