Bladeren bron

tailscale: fix startup issue (#2546)

Stavros Kois 1 jaar geleden
bovenliggende
commit
1518cc60b0

+ 1 - 1
library/ix-dev/community/tailscale/Chart.yaml

@@ -3,7 +3,7 @@ description: Secure remote access to shared resources
 annotations:
   title: Tailscale
 type: application
-version: 1.0.40
+version: 1.0.41
 apiVersion: v2
 appVersion: 1.66.4
 kubeVersion: '>=1.16.0-0'

+ 7 - 0
library/ix-dev/community/tailscale/questions.yaml

@@ -69,6 +69,13 @@ questions:
           schema:
             type: boolean
             default: false
+        - variable: authOnce
+          label: Auth Once
+          description: |
+            Attempt to log in only if not already logged in.</br>
+          schema:
+            type: boolean
+            default: false
         - variable: extraArgs
           label: Extra Arguments
           description: Extra arguments for Tailscale.

+ 1 - 0
library/ix-dev/community/tailscale/templates/_tailscale.tpl

@@ -38,6 +38,7 @@ workload:
             TS_SOCKET: /var/run/tailscale/tailscaled.sock
             TS_USERSPACE: {{ .Values.tailscaleConfig.userspace | quote }}
             TS_ACCEPT_DNS: {{ .Values.tailscaleConfig.acceptDns | quote }}
+            TS_AUTH_ONCE: {{ .Values.tailscaleConfig.authOnce | quote }}
             {{ with .Values.tailscaleConfig.advertiseRoutes }}
             TS_ROUTES: {{ join "," . }}
             {{ end }}

+ 3 - 2
library/ix-dev/community/tailscale/values.yaml

@@ -9,12 +9,13 @@ resources:
     memory: 8Gi
 
 tailscaleConfig:
-  authkey: ''
-  hostname: ''
+  authkey: ""
+  hostname: ""
   advertiseRoutes: []
   advertiseExitNode: false
   userspace: true
   acceptDns: false
+  authOnce: true
   extraArgs: []
   extraDaemonArgs: []
   additionalEnvs: []