Browse Source

Allow specifying dns options for ipfs

Waqar Ahmed 4 years ago
parent
commit
7a470555a1
2 changed files with 31 additions and 0 deletions
  1. 30 0
      test/ipfs/1.0.2/questions.yaml
  2. 1 0
      test/ipfs/1.0.2/templates/deployment.yaml

+ 30 - 0
test/ipfs/1.0.2/questions.yaml

@@ -7,6 +7,8 @@ groups:
     description: "Configure Storage for IPFS"
   - name: "IPFS Configuration"
     description: "Configure Storage for IPFS"
+  - name: "Advanced DNS Settings"
+    description: "Configure DNS settings"
 
 portals:
   web_portal:
@@ -19,6 +21,34 @@ portals:
     path: "/webui"
 
 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: updateStrategy
     label: "IPFS update strategy"
     group: "Workload Configuration"

+ 1 - 0
test/ipfs/1.0.2/templates/deployment.yaml

@@ -55,4 +55,5 @@ spec:
             - name: gateway
               containerPort: 9880
 {{ include "common.containers.allEnvironmentVariables" .Values | nindent 10 }}
+{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
 {{ include "common.storage.allAppVolumes" .Values | nindent 6 }}