Skip to content

Commit

Permalink
revert box chart
Browse files Browse the repository at this point in the history
  • Loading branch information
niqdev committed Aug 29, 2023
1 parent 2c78a2a commit 1c4e6b4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 61 deletions.
2 changes: 1 addition & 1 deletion charts/box/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: box
version: 0.1.1
version: 0.1.0
37 changes: 0 additions & 37 deletions charts/box/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ spec:
{{- end }}
spec:
containers:
# main
- name: {{ include "application.repository" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.version }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand All @@ -50,39 +49,3 @@ spec:
resources:
{{- toYaml . | nindent 10 }}
{{- end }}
# sidecar vpn
{{- if .Values.vpn.enabled }}
- name: "sidecar-vpn"
image: "{{ .Values.vpn.image.repository }}:{{ .Values.vpn.image.version }}"
imagePullPolicy: {{ .Values.vpn.image.pullPolicy }}
env:
- name: OPENVPN_CONFIG
value: "{{ .Values.vpn.secret.basePath }}/{{ .Values.vpn.secret.path }}"
securityContext:
capabilities:
add: ["NET_ADMIN"]
volumeMounts:
- name: tun-device-volume
mountPath: /dev/net/tun
readOnly: true
- name: {{ .Values.vpn.secret.volumeName }}
mountPath: {{ .Values.vpn.secret.basePath }}
readOnly: true
{{- end }}
# volumes
{{- if .Values.vpn.enabled }}
volumes:
{{- if .Values.vpn.enabled }}
- name: tun-device-volume
hostPath:
path: /dev/net/tun
{{- end }}
{{- if .Values.vpn.secret.create }}
- name: {{ .Values.vpn.secret.volumeName }}
secret:
secretName: {{ include "application.fullname" . }}-sidecar-vpn-secret
items:
- key: openvpn-config
path: {{ .Values.vpn.secret.path }}
{{- end }}
{{- end }}
10 changes: 0 additions & 10 deletions charts/box/templates/secret.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions charts/box/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,3 @@ resources: {}
# cpu: 500m
# limits:
# memory: 512Mi

vpn:
enabled: false
image:
repository: hckops/alpine-openvpn
version: latest
pullPolicy: Always
secret:
create: false
volumeName: sidecar-vpn-volume
basePath: /secrets
path: openvpn/client.ovpn
value: INVALID_SECRET

0 comments on commit 1c4e6b4

Please sign in to comment.