Эх сурвалжийг харах

Allow specifying dns options for plex

Waqar Ahmed 4 жил өмнө
parent
commit
16fcf345e4

+ 30 - 0
test/plex/1.4.0/questions.yaml

@@ -19,6 +19,8 @@ groups:
     description: "Configure when pod should be restarted in case of failure"
   - name: "Resource Reservation"
     description: "Specify resources to be allocated to workload"
+  - name: "Advanced DNS Settings"
+    description: "Configure DNS settings"
 
 portals:
   web_portal:
@@ -31,6 +33,34 @@ portals:
     path: "/web"
 
 questions:
+
+  - variable: dnsConfig
+    label: "DNS Configuration"
+    group: "Advanced DNS Settings"
+    schema:
+      type: dict
+      attrs:
+        - variable: options
+          label: "DNS Options"
+          schema:
+            type: list
+            items:
+              - variable: optionsEntry
+                label: "Option Entry Configuration"
+                schema:
+                  type: dict
+                  attrs:
+                    - variable: name
+                      label: "Option Name"
+                      schema:
+                        type: string
+                        required: true
+                    - variable: value
+                      label: "Option Value"
+                      schema:
+                        type: string
+                        required: true
+
   - variable: claimToken
     label: "Plex Claim Token"
     group: "Plex Configuration"

+ 1 - 0
test/plex/1.4.0/templates/deployment.yaml

@@ -81,6 +81,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
             initialDelaySeconds: 5
             failureThreshold: 40
             periodSeconds: 15
+      {{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
       volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
         - name: plex-probe-check
           configMap: