Skip to content

Commit 816b9ef

Browse files
Apply suggestions from code review
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
1 parent 23697ae commit 816b9ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/stackable-operator/src/utils/cluster_domain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const RESOLVE_CONF_FILE_PATH: &str = "/etc/resolv.conf";
1515
// fall back to defaults instead? Also trace the errors
1616
#[derive(Debug, Snafu)]
1717
pub enum Error {
18-
#[snafu(display("failed to read resolv.conf"))]
18+
#[snafu(display("failed to read resolv config from {RESOLVE_CONF_FILE_PATH}"))]
1919
ReadResolvConfFile { source: std::io::Error },
2020

2121
#[snafu(display("failed to parse {cluster_domain:?} as domain name"))]
@@ -35,7 +35,7 @@ pub enum Error {
3535
///
3636
/// 1. Return `KUBERNETES_CLUSTER_DOMAIN` if set, otherwise
3737
/// 2. Return the cluster domain parsed from the `/etc/resolv.conf` file if `KUBERNETES_SERVICE_HOST`
38-
/// is set, otherwise fall back to `cluster.local`. cluster.
38+
/// is set, otherwise fall back to `cluster.local`.
3939
///
4040
/// This variable is initialized in [`crate::client::initialize_operator`], which is called in the
4141
/// main function. It can be used as suggested below.

0 commit comments

Comments
 (0)