Skip to content

Commit

Permalink
Merge pull request #9 from totmicro/netbird-1.2.0
Browse files Browse the repository at this point in the history
chore: updates
  • Loading branch information
marcportabellaclotet-mt authored Oct 11, 2024
2 parents 278b3b6 + 814d190 commit 88866b3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
8 changes: 7 additions & 1 deletion charts/netbird-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,13 @@ env: {}

## @param management.envRaw
##
envRaw: {}
envRaw: []

## @param management.envFromSecret
##
envFromSecret: []
#- name: CUSTOM_VAR_1
# key: key1

secretName: ""

Expand Down
11 changes: 10 additions & 1 deletion charts/netbird/templates/relay-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- $secretName := printf "%s" (include "netbird.relay.secret" .) -}}

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -46,7 +48,7 @@ spec:
port: {{ .Values.relay.service.name }}
resources:
{{- toYaml .Values.relay.resources | nindent 12 }}
{{- if or (.Values.relay.env) (.Values.relay.envRaw) }}
{{- if or (.Values.relay.env) (.Values.relay.envRaw) (.Values.relay.envFromSecret )}}
env:
{{- range $key, $val := .Values.relay.env }}
- name: {{ $key }}
Expand All @@ -57,6 +59,13 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
{{- range $key, $val := .Values.relay.envFromSecret }}
- name: {{ .name }}
valueFrom:
secretKeyRef:
name: {{ $secretName }}
key: {{ .key }}
{{- end }}
{{- end }}
{{- with .Values.relay.nodeSelector }}
nodeSelector:
Expand Down
15 changes: 12 additions & 3 deletions charts/netbird/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ management:

## @param management.envRaw
##
envRaw: {}
envRaw: []
#- name: NETBIRD_STORE_ENGINE_POSTGRES_DSN
# valueFrom:
# secretKeyRef:
# name: netbird-management
# key: postgresDSN

envFromSecret: {}
envFromSecret: []
#- name: CUSTOM_VAR_1
# key: key1
#- name: CUSTOM_VAR_2
Expand Down Expand Up @@ -577,7 +577,9 @@ relay:
##
affinity: {}

envRaw:
env: {}

envRaw: []
#- name: NB_AUTH_SECRET
# valueFrom:
# secretKeyRef:
Expand All @@ -590,3 +592,10 @@ relay:
#- name: NB_EXPOSED_ADDRESS
# value: rels://netbird.example.com:443/relay

envFromSecret: []
#- name: CUSTOM_VAR_1
# key: key1
#- name: CUSTOM_VAR_2
# key: key2
#- name: ANOTHER_VAR
# key: key3

0 comments on commit 88866b3

Please sign in to comment.