Skip to content

Commit ba0344d

Browse files
authored
feat: set init container image using values.yaml (#66)
This will allow users of the charts to modify the image source, for example when using a docker registry proxy
2 parents 60ceb2d + 8bbcd1e commit ba0344d

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
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.26.0
5+
version: 0.27.0
66
appVersion: "0.0.0"
77
maintainers:
88
- name: bryopsida

helm/wireguard/README.md

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

3-
![Version: 0.26.0](https://img.shields.io/badge/Version-0.26.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.27.0](https://img.shields.io/badge/Version-0.27.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

@@ -49,6 +49,8 @@ A Helm chart for managing a wireguard vpn in kubernetes
4949
| image.pullPolicy | string | `"Always"` | |
5050
| image.repository | string | `"ghcr.io/bryopsida/wireguard"` | |
5151
| image.tag | string | `"main"` | |
52+
| initContainer.image.repository | string | `"busybox"` | |
53+
| initContainer.image.tag | string | `"latest"` | |
5254
| keygenJob.command | list | `["/job/entry-point.sh"]` | Specify the script to run to generate the private key |
5355
| keygenJob.containerSecurityContext.allowPrivilegeEscalation | bool | `false` | |
5456
| keygenJob.containerSecurityContext.privileged | bool | `false` | |

helm/wireguard/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ spec:
130130
{{- end }}
131131
initContainers:
132132
- name: sysctls
133-
image: busybox:stable
133+
image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}"
134134
command:
135135
- sh
136136
- -c

helm/wireguard/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ image:
55
tag: main
66
pullPolicy: Always
77

8+
initContainer:
9+
image:
10+
repository: busybox
11+
tag: latest
12+
813
keygenJob:
914
# -- when enabled, uses a image with go bindings for k8s and wg
1015
# to create the secret if it does not exist, on re-runs it

0 commit comments

Comments
 (0)