-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Avoid transitive dependency on github.com/miekg/dns in policy API #16806
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tklauser
added
the
release-note/misc
This PR makes changes that have no direct user impact.
label
Jul 6, 2021
tklauser
force-pushed
the
pr/dns-break-dependency
branch
from
July 6, 2021 13:29
8d790a0
to
78facc1
Compare
test-me-please |
jrajahalme
approved these changes
Jul 7, 2021
timing out ci-gke should be fixed by #16819 |
tklauser
force-pushed
the
pr/dns-break-dependency
branch
from
July 9, 2021 12:35
78facc1
to
a98f9a3
Compare
Rebased to pick up fixes for the failing CI 3.0 tests. |
test-me-please |
nathanjsweet
requested changes
Jul 9, 2021
borkmann
approved these changes
Jul 12, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(aside from @nathanjsweet's feedback, ack)
tklauser
force-pushed
the
pr/dns-break-dependency
branch
from
July 12, 2021 08:32
a98f9a3
to
24baed3
Compare
test-me-please |
tklauser
force-pushed
the
pr/dns-break-dependency
branch
from
July 13, 2021 08:30
24baed3
to
ecf14a2
Compare
test-me-please |
The github.com/cilium/cilium/pkg/fqdn/dns duplicates the IsFqdn and Fqdn functions from github.com/miekg/dns. This allows to avoid a transitive dependency on the latter package for users of the policy API, namely github.com/cilium/cilium-cli. While at it, rename the functions such that they conform to the Go naming standard and also make func FQDN return a lowercase string, as expected by all callers in Cilium code. Signed-off-by: Tobias Klauser <tobias@cilium.io>
…kage Avoid pulling in github.com/miekg/dns as a transitive dependency for out-of-tree users of the Cilium API, namely github.com/cilium/cilium-cli. Signed-off-by: Tobias Klauser <tobias@cilium.io>
tklauser
force-pushed
the
pr/dns-break-dependency
branch
from
July 14, 2021 08:10
ecf14a2
to
a45b199
Compare
test-me-please Rebased to pull in the fix for #16632 |
tklauser
added
the
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
label
Jul 14, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
release-note/misc
This PR makes changes that have no direct user impact.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduce a new helper package duplicating
IsFqdn
andFqdn
from thegit.luolix.top/miekg/dns
to avoid transitively depending on that package in out-of-tree users of the policy API, namelygit.luolix.top/cilium/cilium-cli
. This will e.g. allow to fix cilium/cilium-cli#231.See individual commits for details.