Unverified Commit 462ef901 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by GitHub

Merge pull request #55 from truenas/NAS-110094

Allow setting DNS options for charts
parents 536b3201 9af26f19
...@@ -15,7 +15,7 @@ type: library ...@@ -15,7 +15,7 @@ type: library
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2104.0.0 version: 2105.0.0
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to
......
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
DNS Configuration DNS Configuration
*/}} */}}
{{- define "common.networking.dnsConfiguration" }} {{- define "common.networking.dnsConfiguration" }}
dnsPolicy: {{ .Values.dnsPolicy }} {{ if .dnsPolicy }}
{{- if .Values.dnsConfig }} dnsPolicy: {{ .dnsPolicy }}
{{ end }}
{{ if .dnsConfig }}
dnsConfig: dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 2 }} {{ toYaml .dnsConfig | nindent 2 }}
{{- end }} {{ end }}
{{- end }} {{- end }}
...@@ -14,5 +14,5 @@ sources: ...@@ -14,5 +14,5 @@ sources:
- https://github.com/orgs/chia-network/packages/container/package/chia - https://github.com/orgs/chia-network/packages/container/package/chia
dependencies: dependencies:
- name: common - name: common
repository: file://../../../library/common/2104.0.0 repository: file://../../../library/common/2105.0.0
version: 2104.0.0 version: 2105.0.0
dependencies: dependencies:
- name: common - name: common
repository: file://../../../library/common/2104.0.0 repository: file://../../../library/common/2105.0.0
version: 2104.0.0 version: 2105.0.0
digest: sha256:f0aa221073aafcc5e1602c2a9acb1a508ce72f6847c33dd4a9f9fe10017d5009 digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6
generated: "2021-04-08T16:09:30.006044+05:00" generated: "2021-05-10T13:07:35.493091+05:00"
dependencies:
- name: common
repository: file://../../../library/common/2104.0.0
version: 2104.0.0
digest: sha256:f0aa221073aafcc5e1602c2a9acb1a508ce72f6847c33dd4a9f9fe10017d5009
generated: "2021-04-08T16:09:30.006044+05:00"
apiVersion: v1 apiVersion: v1
description: Global, Versioned, peer-to-peer filesystem. description: Global, Versioned, peer-to-peer filesystem.
name: ipfs name: ipfs
version: 1.0.2 version: 1.1.0
appVersion: v0.8.0 appVersion: v0.8.0
keywords: keywords:
- storage - storage
...@@ -14,5 +14,5 @@ sources: ...@@ -14,5 +14,5 @@ sources:
upstream_version: 0.8.0-rc1 upstream_version: 0.8.0-rc1
dependencies: dependencies:
- name: common - name: common
repository: file://../../../library/common/2104.0.0 repository: file://../../../library/common/2105.0.0
version: 2104.0.0 version: 2105.0.0
...@@ -7,6 +7,8 @@ groups: ...@@ -7,6 +7,8 @@ groups:
description: "Configure Storage for IPFS" description: "Configure Storage for IPFS"
- name: "IPFS Configuration" - name: "IPFS Configuration"
description: "Configure Storage for IPFS" description: "Configure Storage for IPFS"
- name: "Advanced DNS Settings"
description: "Configure DNS settings"
portals: portals:
web_portal: web_portal:
...@@ -19,6 +21,34 @@ portals: ...@@ -19,6 +21,34 @@ portals:
path: "/webui" path: "/webui"
questions: 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 - variable: updateStrategy
label: "IPFS update strategy" label: "IPFS update strategy"
group: "Workload Configuration" group: "Workload Configuration"
......
dependencies:
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6
generated: "2021-05-10T13:07:35.352903+05:00"
...@@ -55,4 +55,5 @@ spec: ...@@ -55,4 +55,5 @@ spec:
- name: gateway - name: gateway
containerPort: 9880 containerPort: 9880
{{ include "common.containers.allEnvironmentVariables" .Values | nindent 10 }} {{ include "common.containers.allEnvironmentVariables" .Values | nindent 10 }}
{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} {{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
...@@ -25,3 +25,6 @@ appVolumeMounts: ...@@ -25,3 +25,6 @@ appVolumeMounts:
data: data:
emptyDir: true emptyDir: true
mountPath: "/data/ipfs" mountPath: "/data/ipfs"
dnsConfig:
options: []
dependencies: dependencies:
- name: common - name: common
repository: file://../../../library/common/2104.0.0 repository: file://../../../library/common/2105.0.0
version: 2104.0.0 version: 2105.0.0
digest: sha256:f0aa221073aafcc5e1602c2a9acb1a508ce72f6847c33dd4a9f9fe10017d5009 digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6
generated: "2021-04-08T16:09:30.065733+05:00" generated: "2021-05-10T13:07:35.387798+05:00"
...@@ -23,6 +23,6 @@ version: 2105.0.0 ...@@ -23,6 +23,6 @@ version: 2105.0.0
appVersion: v1 appVersion: v1
dependencies: dependencies:
- name: common - name: common
repository: file://../../../library/common/2104.0.0 repository: file://../../../library/common/2105.0.0
version: 2104.0.0 version: 2105.0.0
dependencies:
- name: common
repository: file://../../../library/common/2104.0.0
version: 2104.0.0
digest: sha256:f0aa221073aafcc5e1602c2a9acb1a508ce72f6847c33dd4a9f9fe10017d5009
generated: "2021-04-08T16:09:30.123288+05:00"
apiVersion: v1 apiVersion: v1
description: High Performance, Kubernetes Native Object Storage description: High Performance, Kubernetes Native Object Storage
name: minio name: minio
version: 1.2.1 version: 1.3.0
appVersion: RELEASE.2021-02-19T04-38-02Z appVersion: RELEASE.2021-02-19T04-38-02Z
keywords: keywords:
- storage - storage
...@@ -15,5 +15,5 @@ sources: ...@@ -15,5 +15,5 @@ sources:
upstream_version: 8.0.5 upstream_version: 8.0.5
dependencies: dependencies:
- name: common - name: common
repository: file://../../../library/common/2104.0.0 repository: file://../../../library/common/2105.0.0
version: 2104.0.0 version: 2105.0.0
...@@ -7,6 +7,8 @@ groups: ...@@ -7,6 +7,8 @@ groups:
description: "Configure Storage for Nextcloud" description: "Configure Storage for Nextcloud"
- name: "Minio Configuration" - name: "Minio Configuration"
description: "Configure Minio credentials" description: "Configure Minio credentials"
- name: "Advanced DNS Settings"
description: "Configure DNS settings"
portals: portals:
web_portal: web_portal:
...@@ -18,6 +20,34 @@ portals: ...@@ -18,6 +20,34 @@ portals:
- "$variable-service.nodePort" - "$variable-service.nodePort"
questions: 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 - variable: updateStrategy
label: "Minio update strategy" label: "Minio update strategy"
group: "Workload Configuration" group: "Workload Configuration"
......
dependencies:
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6
generated: "2021-05-10T13:07:35.423192+05:00"
...@@ -43,5 +43,6 @@ spec: ...@@ -43,5 +43,6 @@ spec:
{{ $envList = mustAppend $envList (dict "name" "MINIO_ACCESS_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }} {{ $envList = mustAppend $envList (dict "name" "MINIO_ACCESS_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }}
{{ $envList = mustAppend $envList (dict "name" "MINIO_SECRET_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }} {{ $envList = mustAppend $envList (dict "name" "MINIO_SECRET_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }}
{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }}
{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} {{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
{{- include "minio.tlsKeysVolume" . | nindent 8 }} {{- include "minio.tlsKeysVolume" . | nindent 8 }}
...@@ -21,3 +21,7 @@ appVolumeMounts: ...@@ -21,3 +21,7 @@ appVolumeMounts:
export: export:
emptyDir: true emptyDir: true
mountPath: "/export" mountPath: "/export"
dnsConfig:
options: []
dependencies:
- name: common
repository: file://../../../library/common/2104.0.0
version: 2104.0.0
digest: sha256:f0aa221073aafcc5e1602c2a9acb1a508ce72f6847c33dd4a9f9fe10017d5009
generated: "2021-04-08T16:09:29.942145+05:00"
dependencies:
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6
generated: "2021-05-10T13:07:35.317071+05:00"
apiVersion: v2 apiVersion: v2
name: nextcloud name: nextcloud
version: 1.2.2 version: 1.3.0
appVersion: 20.0.7 appVersion: 20.0.7
description: A file sharing server that puts the control and security of your own data back into your hands. description: A file sharing server that puts the control and security of your own data back into your hands.
keywords: keywords:
...@@ -17,6 +17,6 @@ sources: ...@@ -17,6 +17,6 @@ sources:
upstream_version: 2.3.2 upstream_version: 2.3.2
dependencies: dependencies:
- name: common - name: common
repository: file://../../../library/common/2104.0.0 repository: file://../../../library/common/2105.0.0
version: 2104.0.0 version: 2105.0.0
...@@ -11,6 +11,8 @@ groups: ...@@ -11,6 +11,8 @@ groups:
description: "Configure Postgresql for nextcloud" description: "Configure Postgresql for nextcloud"
- name: "Scaling/Upgrade Policy" - name: "Scaling/Upgrade Policy"
description: "Configure how pods are replaced when configuration is upgraded" description: "Configure how pods are replaced when configuration is upgraded"
- name: "Advanced DNS Settings"
description: "Configure DNS settings"
portals: portals:
web_portal: web_portal:
...@@ -22,6 +24,34 @@ portals: ...@@ -22,6 +24,34 @@ portals:
- "$variable-service.nodePort" - "$variable-service.nodePort"
questions: 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 - variable: nextcloud
description: "Nextcloud configuration details" description: "Nextcloud configuration details"
label: "Nextcloud Configuration" label: "Nextcloud Configuration"
......
...@@ -52,6 +52,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }} ...@@ -52,6 +52,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
- name: extrappvolume-{{ $index }} - name: extrappvolume-{{ $index }}
mountPath: {{ $hostPathConfiguration.mountPath }} mountPath: {{ $hostPathConfiguration.mountPath }}
{{ end }} {{ end }}
{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} {{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
- name: extrappvolume-{{ $index }} - name: extrappvolume-{{ $index }}
......
...@@ -41,3 +41,6 @@ postgresAppVolumeMounts: ...@@ -41,3 +41,6 @@ postgresAppVolumeMounts:
postgres-backup: postgres-backup:
emptyDir: true emptyDir: true
mountPath: "/postgres_backups" mountPath: "/postgres_backups"
dnsConfig:
options: []
dependencies:
- name: common
repository: file://../../../library/common/2104.0.0
version: 2104.0.0
digest: sha256:f0aa221073aafcc5e1602c2a9acb1a508ce72f6847c33dd4a9f9fe10017d5009
generated: "2021-04-08T16:09:30.181685+05:00"
dependencies:
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6
generated: "2021-05-10T13:07:35.458234+05:00"
...@@ -2,7 +2,7 @@ apiVersion: v2 ...@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.21.3.4046-3c1c83ba4 appVersion: 1.21.3.4046-3c1c83ba4
description: Plex Media Server description: Plex Media Server
name: plex name: plex
version: 1.4.0 version: 1.5.0
keywords: keywords:
- plex - plex
home: https://plex.tv/ home: https://plex.tv/
...@@ -13,6 +13,6 @@ sources: ...@@ -13,6 +13,6 @@ sources:
upstream_version: 2.1.0 upstream_version: 2.1.0
dependencies: dependencies:
- name: common - name: common
repository: file://../../../library/common/2104.0.0 repository: file://../../../library/common/2105.0.0
version: 2104.0.0 version: 2105.0.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment