Quellcode durchsuchen

qbit: allow for https probe option (#2360)

* qbit: allow for https probe option

* fmt

* fix upgrade

* whoops
Stavros Kois vor 1 Jahr
Ursprung
Commit
60d5c614ba

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

@@ -4,7 +4,7 @@ description: The qBittorrent project aims to provide an open-source software alt
 annotations:
   title: qBittorrent
 type: application
-version: 1.2.10
+version: 1.2.11
 apiVersion: v2
 appVersion: 4.6.4
 kubeVersion: '>=1.16.0-0'

+ 9 - 0
library/ix-dev/community/qbittorrent/questions.yaml

@@ -97,6 +97,15 @@ questions:
             min: 9000
             max: 65535
             required: true
+        - variable: useHttpsProbe
+          label: Use HTTPS Probe
+          description: |
+            Use HTTPS probe for the qBittorrent Web UI. </br>
+            This will ONLY affect the probes, only enable this if you
+            configured HTTPS in the qBittorrent Web UI.
+          schema:
+            type: boolean
+            default: false
         - variable: hostNetwork
           label: Host Network
           description: |

+ 6 - 3
library/ix-dev/community/qbittorrent/templates/_qbittorrent.tpl

@@ -25,19 +25,22 @@ workload:
             - configMapRef:
                 name: qbit-config
           probes:
+            {{- if not (hasKey .Values.qbitNetwork "useHttpsProbe") -}}
+              {{- $_ := set .Values.qbitNetwork "useHttpsProbe" false -}}
+            {{- end }}
             liveness:
               enabled: true
-              type: http
+              type: {{ ternary "https" "http" .Values.qbitNetwork.useHttpsProbe }}
               port: "{{ .Values.qbitNetwork.webPort }}"
               path: /
             readiness:
               enabled: true
-              type: http
+              type: {{ ternary "https" "http" .Values.qbitNetwork.useHttpsProbe }}
               port: "{{ .Values.qbitNetwork.webPort }}"
               path: /
             startup:
               enabled: true
-              type: http
+              type: {{ ternary "https" "http" .Values.qbitNetwork.useHttpsProbe }}
               port: "{{ .Values.qbitNetwork.webPort }}"
               path: /
       initContainers:

+ 1 - 0
library/ix-dev/community/qbittorrent/values.yaml

@@ -14,6 +14,7 @@ qbitConfig:
 qbitNetwork:
   webPort: 30024
   btPort: 50413
+  useHttpsProbe: false
   hostNetwork: false
 
 qbitRunAs: