Skip to content

Commit

Permalink
revert some changes, for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Dec 11, 2023
1 parent b406d64 commit e04bb9c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/whoami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: Deployment
metadata:
name: whoami
namespace: default
annotations:
chisel-operator.io/exit-node-name: "my-exit-node"
# annotations:
# chisel-operator.io/exit-node-name: "my-exit-node"
spec:
replicas: 1
selector:
Expand Down
2 changes: 1 addition & 1 deletion src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ async fn reconcile_svcs(obj: Arc<Service>, ctx: Arc<Context>) -> Result<Action,
// if it is, then we don't need to do anything
// !!!!! WHY IS IT STILL LOOPING

tokio::time::sleep(Duration::from_secs(5)).await;
// tokio::time::sleep(Duration::from_secs(5)).await;


let exit_node_ip = node.get_host().await;
Expand Down
8 changes: 7 additions & 1 deletion src/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ fn convert_service_port(svcport: ServicePort) -> String {
/// values obtained from the `node` parameter.
pub async fn generate_remote_arg(node: &ExitNode) -> String {
// todo: what about ECDSA keys?
format!("{}:{}", node.get_host().await, node.spec.port)

let host = node.get_host().await;

debug!(host = ?host, "Host");
let output = format!("{}:{}", host, node.spec.port);
debug!(output = ?output, "Output");
output
}

/// This function generates arguments for a tunnel based on a given service.
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ async fn main() -> Result<()> {
let env_filter = EnvFilter::try_from_default_env().or_else(|_| EnvFilter::try_new("info"))?
.add_directive("tower=off".parse().unwrap())
.add_directive("hyper=error".parse().unwrap())
.add_directive("kube_client=error".parse().unwrap())
.add_directive("tokio_util=error".parse().unwrap());

// let telemetry = tracing_opentelemetry::layer().with_tracer(init_tracer().await);
Expand Down

0 comments on commit e04bb9c

Please sign in to comment.