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

fqdn/dnsproxy, daemon: Define new error type for DNS notification #21517

Merged

Conversation

christarazi
Copy link
Member

This error is returned when the DNS proxy receives a DNS request for an
endpoint that no longer exists to the local daemon.

External components which integrate with the DNS proxy code may find it
useful to check for this error, hence defining and exporting a type in
this package.

Signed-off-by: Chris Tarazi chris@isovalent.com

@christarazi christarazi added area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. area/daemon Impacts operation of the Cilium daemon. sig/agent Cilium agent related. release-note/misc This PR makes changes that have no direct user impact. labels Sep 29, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Sep 29, 2022
This error is returned when the DNS proxy receives a DNS request for an
endpoint that no longer exists to the local daemon.

External components which integrate with the DNS proxy code may find it
useful to check for this error, hence defining and exporting a type in
this package.

Signed-off-by: Chris Tarazi <chris@isovalent.com>
@christarazi christarazi force-pushed the pr/christarazi/export-ep-fqdn-error branch from eba27fb to 2c2a278 Compare September 29, 2022 23:59
@christarazi christarazi changed the title daemon/cmd: Define new error type for DNS proxy notification fqdn/dnsproxy, daemon: Define new error type for DNS notification Sep 29, 2022
@christarazi christarazi marked this pull request as ready for review September 30, 2022 00:00
@christarazi christarazi requested review from a team as code owners September 30, 2022 00:00
@@ -384,6 +384,15 @@ func (e ErrTimedOutAcquireSemaphore) Error() string {
)
}

// ErrDNSRequestNoEndpoint represents an error when the local daemon cannot
Copy link
Member

Choose a reason for hiding this comment

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

when the local daemon cannot

Do you mean the dns proxy?

Copy link
Member Author

Choose a reason for hiding this comment

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

Technically, the daemon has the source of truth for endpoints.

@joestringer joestringer merged commit 88db07e into cilium:master Oct 5, 2022
@christarazi christarazi deleted the pr/christarazi/export-ep-fqdn-error branch October 5, 2022 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/daemon Impacts operation of the Cilium daemon. area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. release-note/misc This PR makes changes that have no direct user impact. sig/agent Cilium agent related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants