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

fix(dns) explicitly disable dns in env when disabled in injector #3077

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

lahabana
Copy link
Contributor

@lahabana lahabana commented Nov 3, 2021

KUMA_RUNTIME_KUBERNETES_INJECTOR_BUILTIN_DNS_ENABLED was not working
because we were simply not setting any env var if it was set.
As kuma-dp starts the builtin dns by default we need to explictly disable it by setting the env var on injection.

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

KUMA_RUNTIME_KUBERNETES_INJECTOR_BUILTIN_DNS_ENABLED was not working
because we were simply not setting any env var if it was set.
As kuma-dp starts the builtin dns by default we need to explictly disable it by setting the env var on injection.

Signed-off-by: Charly Molter <charly.molter@konghq.com>
@lahabana lahabana requested a review from a team as a code owner November 3, 2021 16:46
@codecov-commenter
Copy link

Codecov Report

Merging #3077 (1166a91) into master (0f8911b) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3077      +/-   ##
==========================================
+ Coverage   52.19%   52.23%   +0.03%     
==========================================
  Files         919      919              
  Lines       53116    53120       +4     
==========================================
+ Hits        27725    27746      +21     
+ Misses      23184    23168      -16     
+ Partials     2207     2206       -1     
Impacted Files Coverage Δ
.../plugins/runtime/k8s/webhooks/injector/injector.go 85.96% <100.00%> (+0.16%) ⬆️
pkg/xds/generator/direct_access_proxy_generator.go 82.75% <0.00%> (-1.15%) ⬇️
pkg/plugins/runtime/gateway/route/sorter.go 66.66% <0.00%> (ø)
pkg/core/resources/manager/cache.go 88.31% <0.00%> (+2.59%) ⬆️
pkg/kds/client/sink.go 59.45% <0.00%> (+5.40%) ⬆️
pkg/xds/cache/once/cache.go 94.87% <0.00%> (+7.69%) ⬆️
pkg/test/grpc/clientstream.go 92.00% <0.00%> (+8.00%) ⬆️
pkg/core/bootstrap/autoconfig.go 54.46% <0.00%> (+8.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f8911b...1166a91. Read the comment docs.

@lahabana lahabana merged commit 2d08e3f into kumahq:master Nov 4, 2021
mergify bot pushed a commit that referenced this pull request Nov 4, 2021
KUMA_RUNTIME_KUBERNETES_INJECTOR_BUILTIN_DNS_ENABLED was not working
because we were simply not setting any env var if it was set.
As kuma-dp starts the builtin dns by default we need to explictly disable it by setting the env var on injection.

Signed-off-by: Charly Molter <charly.molter@konghq.com>
(cherry picked from commit 2d08e3f)
lahabana added a commit that referenced this pull request Nov 4, 2021
…) (#3085)

KUMA_RUNTIME_KUBERNETES_INJECTOR_BUILTIN_DNS_ENABLED was not working
because we were simply not setting any env var if it was set.
As kuma-dp starts the builtin dns by default we need to explictly disable it by setting the env var on injection.

Signed-off-by: Charly Molter <charly.molter@konghq.com>
(cherry picked from commit 2d08e3f)

Co-authored-by: Charly Molter <charly.molter@konghq.com>
@lahabana lahabana deleted the fix/disableDns branch March 29, 2024 12:42
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.

None yet

4 participants