Compare commits

..

1 Commits

Author SHA1 Message Date
99dc71ca40 add: rewriter logic and tests 2025-03-29 23:03:54 -07:00

View File

@@ -6,9 +6,16 @@ use env_logger::Env;
use log::info;
use rewriter::Rewriter;
/// Rewrites nginx configs when new nodes show up in a kubernetes cluster.
/// This package implements the 'proxy end'; another binary is run on the
/// Kubernetes cluster which executes when a node goes down or comes up.
/// Implements a HTTP server which allows clients to 'register'
/// themselves. Their IP address will be used to replace a
/// needle in a set of config files. This is intended to be
/// used as a low-cost way of enabling Kubernetes ingress
/// using nginx running on a machine that has a public port.
///
/// The needle is expected to be a dummy IP address; something
/// fairly unique. The goal is to replace nginx files, where
/// we often repeat lines if we want nginx to load balance between
/// multiple destination IPs.
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Args {