Skip to content

Commit 9fecf0d

Browse files
authored
feat(keygen-job): use wg mgr by default (#73)
What --- This enables using the wireguard keygen job to generate the wireguard secret, this handles the error case of the secret already existing gracefully. I'm going to leave this open for a awhile to give people a chance to object to the change in default behavior. Relates to #72 #46
2 parents a2fd84e + 1d07d0c commit 9fecf0d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

helm/wireguard/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: wireguard
33
description: A Helm chart for managing a wireguard vpn in kubernetes
44
type: application
5-
version: 0.29.0
5+
version: 0.30.0
66
appVersion: "0.0.0"
77
maintainers:
88
- name: bryopsida

helm/wireguard/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# wireguard
22

3-
![Version: 0.29.0](https://img.shields.io/badge/Version-0.29.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.0](https://img.shields.io/badge/AppVersion-0.0.0-informational?style=flat-square)
3+
![Version: 0.30.0](https://img.shields.io/badge/Version-0.30.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.0](https://img.shields.io/badge/AppVersion-0.0.0-informational?style=flat-square)
44

55
A Helm chart for managing a wireguard vpn in kubernetes
66

@@ -79,7 +79,7 @@ A Helm chart for managing a wireguard vpn in kubernetes
7979
| keygenJob.resources.requests.cpu | string | `"100m"` | |
8080
| keygenJob.resources.requests.ephemeral-storage | string | `"8Mi"` | |
8181
| keygenJob.resources.requests.memory | string | `"256Mi"` | |
82-
| keygenJob.useWireguardManager | bool | `false` | when enabled, uses a image with go bindings for k8s and wg to create the secret if it does not exist, on re-runs it it leaves the existing secret in place and exits succesfully |
82+
| keygenJob.useWireguardManager | bool | `true` | when enabled, uses a image with go bindings for k8s and wg to create the secret if it does not exist, on re-runs it leaves the existing secret in place and exits succesfully |
8383
| keygenJob.wireguardMgrImage | object | `{"pullPolicy":"Always","repository":"ghcr.io/bryopsida/k8s-wireguard-mgr","tag":"main"}` | When useWireguardManager is enabled this image is used instead of the kubectl image |
8484
| labels | object | `{}` | |
8585
| metrics.dashboard.annotations | object | `{}` | Grafana dashboard annotations |

helm/wireguard/values.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ initContainer:
1919
cpu: "100m"
2020
ephemeral-storage: 64Mi
2121
keygenJob:
22-
# -- when enabled, uses a image with go bindings for k8s and wg
23-
# to create the secret if it does not exist, on re-runs it
24-
# it leaves the existing secret in place and exits succesfully
25-
useWireguardManager: false
22+
# -- when enabled, uses a image with go bindings for k8s and wg to create the secret if it does not exist, on re-runs it leaves the existing secret in place and exits succesfully
23+
useWireguardManager: true
2624
# -- When useWireguardManager is enabled this image is used instead of the kubectl image
2725
wireguardMgrImage:
2826
repository: ghcr.io/bryopsida/k8s-wireguard-mgr

0 commit comments

Comments
 (0)