Skip to content

Commit

Permalink
Remove tracing::instrument from apply_debug_overrides (#958)
Browse files Browse the repository at this point in the history
Co-authored-by: Eirik A <sszynrae@gmail.com>
  • Loading branch information
kazk and clux authored Jul 19, 2022
1 parent 1c34bf6 commit fa66405
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kube-client/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ impl Config {
/// - `KUBE_RS_DEBUG_IMPERSONATE_USER`: A Kubernetes user to impersonate, for example: `system:serviceaccount:default:foo` will impersonate the `ServiceAccount` `foo` in the `Namespace` `default`
/// - `KUBE_RS_DEBUG_IMPERSONATE_GROUP`: A Kubernetes group to impersonate, multiple groups may be specified by separating them with commas
/// - `KUBE_RS_DEBUG_OVERRIDE_URL`: A Kubernetes cluster URL to use rather than the one specified in the config, useful for proxying traffic through `kubectl proxy`
#[tracing::instrument(level = "warn")]
pub fn apply_debug_overrides(&mut self) {
// Log these overrides loudly, to emphasize that this is only a debugging aid, and should not be relied upon in production
if let Ok(impersonate_user) = std::env::var("KUBE_RS_DEBUG_IMPERSONATE_USER") {
Expand Down

0 comments on commit fa66405

Please sign in to comment.