Skip to content

Commit

Permalink
feat: added dnsPolicy and dnsConfig templates (#260)
Browse files Browse the repository at this point in the history
Signed-off-by: adnanm syedmadnan02@gmail.com

Signed-off-by: adnanm syedmadnan02@gmail.com
  • Loading branch information
muadnan authored Oct 8, 2024
1 parent 48b0a1b commit 2d20768
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/pgadmin4/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: pgAdmin4 is a web based administration tool for PostgreSQL database
name: pgadmin4
version: 1.29.0
version: 1.30.0
appVersion: "8.11"
keywords:
- pgadmin
Expand Down
2 changes: 2 additions & 0 deletions charts/pgadmin4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ The command removes nearly all the Kubernetes components associated with the cha
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Node tolerations for pod assignment | `[]` |
| `affinity` | Node affinity for pod assignment | `{}` |
| `dnsPolicy` | DNS policy for pods | `""` |
| `dnsConfig` | DNS config for pods | `{}` |
| `podAnnotations` | Annotations for pod | `{}` |
| `templatedPodAnnotations` | Templated annotations for pod | `{}` |
| `podLabels` | Labels for pod | `{}` |
Expand Down
7 changes: 7 additions & 0 deletions charts/pgadmin4/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,10 @@ spec:
tolerations:
{{- .Values.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy }}
{{- end }}
{{- if .Values.dnsConfig }}
dnsConfig:
{{- .Values.dnsConfig | toYaml | nindent 8 }}
{{- end }}
19 changes: 19 additions & 0 deletions charts/pgadmin4/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,25 @@ tolerations: []
##
affinity: {}

## Pod DNS Policy
## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy

dnsPolicy: ""

## Update pod DNS Config
## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config

dnsConfig: {}
# nameservers:
# - 192.0.2.1
# searches:
# - ns1.svc.cluster-domain.example
# - my.dns.search.suffix
# options:
# - name: ndots
# value: "2"
# - name: edns0

## Pod annotations
##
podAnnotations: {}
Expand Down

0 comments on commit 2d20768

Please sign in to comment.