Skip to content

Commit 0aa9ace

Browse files
litaocdlgabriele-wolfox
authored andcommitted
feat: support hostnetwork and dnsPolicy for operator pod
Signed-off-by: Tao Li <tao.li@enterprisedb.com>
1 parent d721d9f commit 0aa9ace

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

charts/edb-postgres-distributed-for-kubernetes/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ EDB Postgres Distributed for Kubernetes Helm Chart
4444
| config.secret | bool | `false` | Specifies whether it should be stored in a secret, instead of a configmap |
4545
| containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001}` | Container Security Context |
4646
| crds.create | bool | `true` | |
47+
| dnsPolicy | string | `""` | |
4748
| edb-postgres-for-kubernetes-lts.crds.create | bool | `true` | |
4849
| edb-postgres-for-kubernetes-lts.enabled | bool | `true` | |
4950
| edb-postgres-for-kubernetes-lts.image.repository | string | `""` | |
5051
| fullnameOverride | string | `""` | |
5152
| global | object | `{"repository":"docker.enterprisedb.com/k8s_enterprise_pgd"}` | Global values |
52-
| global.repository | string | `"docker.enterprisedb.com/k8s_enterprise_pgd"` | Specifies the repository where the operator image to be downloaded from. Another repository is: docker.enterprisedb.com/k8s_standard_pgd |
5353
| global.pgdImageName | string | `"postgresql-pgd:16.4-5.5.1-1"` | Specifies the name of pgd image to be used for the operator, this image will be downloaded from
54-
global repository |
5554
| global.proxyImageName | string | `"edb-pgd-proxy:5.5.0"` | Specifies the name of pgd-proxy image to be used for the operator, this image will be downloaded from
56-
global repository |
55+
| global.repository | string | `"docker.enterprisedb.com/k8s_enterprise_pgd"` | Specifies the repository where the operator image to be downloaded from. Another repository is: docker.enterprisedb.com/k8s_standard_pgd |
56+
| hostNetwork | bool | `false` | |
5757
| image.imageCredentials.create | bool | `true` | Specifies if an imagePullSecret should be created |
5858
| image.imageCredentials.name | string | `"edb-pull-secret"` | |
5959
| image.imageCredentials.password | string | `""` | |
@@ -94,4 +94,3 @@ global repository |
9494
| webhook.readinessProbe.periodSeconds | int | `20` | |
9595
| webhook.validating.create | bool | `true` | |
9696
| webhook.validating.failurePolicy | string | `"Fail"` | |
97-

charts/edb-postgres-distributed-for-kubernetes/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ spec:
4949
imagePullSecrets:
5050
{{- toYaml . | nindent 8 }}
5151
{{- end }}
52+
{{- if .Values.hostNetwork }}
53+
hostNetwork: {{ .Values.hostNetwork }}
54+
{{- end }}
55+
{{- if .Values.dnsPolicy }}
56+
dnsPolicy: {{ .Values.dnsPolicy }}
57+
{{- end }}
5258
containers:
5359
- args:
5460
- controller

charts/edb-postgres-distributed-for-kubernetes/values.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989
}
9090
}
9191
},
92+
"dnsPolicy": {
93+
"type": "string"
94+
},
9295
"edb-postgres-for-kubernetes-lts": {
9396
"type": "object",
9497
"properties": {
@@ -130,6 +133,9 @@
130133
}
131134
}
132135
},
136+
"hostNetwork": {
137+
"type": "boolean"
138+
},
133139
"image": {
134140
"type": "object",
135141
"properties": {

charts/edb-postgres-distributed-for-kubernetes/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ imagePullSecrets:
5555
nameOverride: ""
5656
fullnameOverride: ""
5757

58+
hostNetwork: false
59+
dnsPolicy: ""
60+
5861
crds:
5962
create: true
6063

0 commit comments

Comments
 (0)