From 7f5e45c1f9ab31e6ca4fb2d766d492b5ea6f0f8c Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Mon, 10 May 2021 13:23:36 +0500 Subject: [PATCH] Allow specifying dns options for nextcloud --- test/nextcloud/1.2.2/questions.yaml | 30 +++++++++++++++++++ .../nextcloud/1.2.2/templates/deployment.yaml | 1 + 2 files changed, 31 insertions(+) diff --git a/test/nextcloud/1.2.2/questions.yaml b/test/nextcloud/1.2.2/questions.yaml index ffc8d36a72..a92be45e6a 100644 --- a/test/nextcloud/1.2.2/questions.yaml +++ b/test/nextcloud/1.2.2/questions.yaml @@ -11,6 +11,8 @@ groups: description: "Configure Postgresql for nextcloud" - name: "Scaling/Upgrade Policy" description: "Configure how pods are replaced when configuration is upgraded" + - name: "Advanced DNS Settings" + description: "Configure DNS settings" portals: web_portal: @@ -22,6 +24,34 @@ portals: - "$variable-service.nodePort" 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: nextcloud description: "Nextcloud configuration details" label: "Nextcloud Configuration" diff --git a/test/nextcloud/1.2.2/templates/deployment.yaml b/test/nextcloud/1.2.2/templates/deployment.yaml index db653eac29..49b4f1683b 100644 --- a/test/nextcloud/1.2.2/templates/deployment.yaml +++ b/test/nextcloud/1.2.2/templates/deployment.yaml @@ -52,6 +52,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }} - name: extrappvolume-{{ $index }} mountPath: {{ $hostPathConfiguration.mountPath }} {{ end }} +{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} {{ include "common.storage.allAppVolumes" .Values | nindent 6 }} {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - name: extrappvolume-{{ $index }}