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

Get rid of coredns sidecar for nscs #1313

Merged
merged 75 commits into from
Jul 18, 2022

Conversation

NikitaSkrynnik
Copy link
Contributor

@NikitaSkrynnik NikitaSkrynnik commented Jun 22, 2022

Description

Issue link

networkservicemesh/cmd-nsc#451

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionallity
  • Documentation
  • Refactoring
  • CI

@denis-tingaikin denis-tingaikin requested a review from ThetaDR July 15, 2022 09:39
@denis-tingaikin
Copy link
Member

I think we need one more approve to merge this.

@glazychev-art , @edwarnicke Could you have a look?

@denis-tingaikin
Copy link
Member

Feel free to add comments post merge. We'll resolve them separately.

@denis-tingaikin denis-tingaikin merged commit 44ffc6a into networkservicemesh:main Jul 18, 2022
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Jul 18, 2022
…k@main

PR link: networkservicemesh/sdk#1313

Commit: 44ffc6a
Author: Nikita Skrynnik
Date: 2022-07-18 12:16:38 +1100
Message:
  - Get rid of coredns sidecar for nscs (#1313)
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
anastasia-malysheva pushed a commit to anastasia-malysheva/sdk that referenced this pull request Jul 27, 2022
* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework fanout + cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix sync.Map

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* search chain element implemented (probably

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* update dnsContextClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element + rework dnsconfigs chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dnsconfigs and fanout chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix resolvconf chain elements

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* finish search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cache unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework wrappers

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete dnscontext folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add test for resolvconf

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run go mod tidy

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete Test_DNSUsecase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use dns memory chain element for unit tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add sandbox test for dns server

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns server test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore resolv_conf_tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add port check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix dns sandbox test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dns sandbox test to separate file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework resolvconf chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore question section in response

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix search domains fix

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring in search chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* resolve comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix ci

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor refactoring

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete resolvconfDNSHandler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* merge all search domains only on the first dns request

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move resolvconf parser to dnsContextClient and make it private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add checkmsg chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move dnsconfigs.Map to a separate folder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs to Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes after rebase (again)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_DNSContextClient_Usecases

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* debug Test_vl3NSE_ConnectsTo_vl3NSE

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add option with dns port for fanout + delete defaultTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make dns cache map private

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rename clienturlctx context functions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add initialization of lastTTLUpdate variable in cache chain element

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* return single value slice in ClientURLs func if we have signle clientURL in context

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* restore DNSConfigs Decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete sync.Once from dnsconfigs handler

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change name and description of the WithDNSPort option

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete debug logging

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: anastasia.malysheva <anastasia.malysheva@xored.com>
@NikitaSkrynnik NikitaSkrynnik deleted the dns-server branch August 7, 2023 07:54
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.

3 participants