From bf78be47b830f2e7c0022d6e3c52760d9d9e50e9 Mon Sep 17 00:00:00 2001 From: viktorbarzin Date: Wed, 17 Mar 2021 21:47:27 +0000 Subject: [PATCH] print client name on success [CI SKIP] --- cli/git.go | 1 - cli/vpn.go | 2 +- modules/kubernetes/wireguard/extra/clients.conf | 5 ----- modules/kubernetes/wireguard/extra/last_ip.txt | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/cli/git.go b/cli/git.go index 4e1e6e03..280ce30a 100644 --- a/cli/git.go +++ b/cli/git.go @@ -47,6 +47,5 @@ func NewGitFS(repoURL string) (*GitFS, error) { } func (g *GitFS) Push() error { - glog.Infof("Attemping to push with auth: %+v", g.auth) return g.repo.Push(&git.PushOptions{Auth: g.auth}) } diff --git a/cli/vpn.go b/cli/vpn.go index f89c7199..1b220ee3 100644 --- a/cli/vpn.go +++ b/cli/vpn.go @@ -39,7 +39,7 @@ func addVPNClient(gitFs *GitFS, clientName, publicKey, clientsConfPath, ip strin return errors.Wrapf(err, "failed to write config to file") } - glog.Infof("successfully added new vpn client config for %s", clientName) + glog.Infof("successfully added new vpn client config for %s with interface ip %s", clientName, ip) return nil } diff --git a/modules/kubernetes/wireguard/extra/clients.conf b/modules/kubernetes/wireguard/extra/clients.conf index 9f1d168b..e69de29b 100644 --- a/modules/kubernetes/wireguard/extra/clients.conf +++ b/modules/kubernetes/wireguard/extra/clients.conf @@ -1,5 +0,0 @@ -[Peer] -# friendly_name = Chatbot -PublicKey = iOcNe48FpLwOa6jBBs9686K5ViPZmLEaJ7axjGT00Xg= -AllowedIPs = 10.3.3.11/32 - diff --git a/modules/kubernetes/wireguard/extra/last_ip.txt b/modules/kubernetes/wireguard/extra/last_ip.txt index 6a158dc8..1ea3540d 100644 --- a/modules/kubernetes/wireguard/extra/last_ip.txt +++ b/modules/kubernetes/wireguard/extra/last_ip.txt @@ -1 +1 @@ -# DO NOT MANUALLY EDIT THIS LINE. Last IP: 10.3.3.11/24 +# DO NOT MANUALLY EDIT THIS LINE. Last IP: 10.3.3.10/24