Skip to content

Commit

Permalink
feat: support hostnetwork and dnsPolicy for operator pod
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Li <[email protected]>
  • Loading branch information
litaocdl authored and gabriele-wolfox committed Dec 18, 2024
1 parent d721d9f commit 0aa9ace
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
7 changes: 3 additions & 4 deletions charts/edb-postgres-distributed-for-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ EDB Postgres Distributed for Kubernetes Helm Chart
| config.secret | bool | `false` | Specifies whether it should be stored in a secret, instead of a configmap |
| containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001}` | Container Security Context |
| crds.create | bool | `true` | |
| dnsPolicy | string | `""` | |
| edb-postgres-for-kubernetes-lts.crds.create | bool | `true` | |
| edb-postgres-for-kubernetes-lts.enabled | bool | `true` | |
| edb-postgres-for-kubernetes-lts.image.repository | string | `""` | |
| fullnameOverride | string | `""` | |
| global | object | `{"repository":"docker.enterprisedb.com/k8s_enterprise_pgd"}` | Global values |
| 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 |
| 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
global repository |
| 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
global repository |
| 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 |
| hostNetwork | bool | `false` | |
| image.imageCredentials.create | bool | `true` | Specifies if an imagePullSecret should be created |
| image.imageCredentials.name | string | `"edb-pull-secret"` | |
| image.imageCredentials.password | string | `""` | |
Expand Down Expand Up @@ -94,4 +94,3 @@ global repository |
| webhook.readinessProbe.periodSeconds | int | `20` | |
| webhook.validating.create | bool | `true` | |
| webhook.validating.failurePolicy | string | `"Fail"` | |

Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.hostNetwork }}
hostNetwork: {{ .Values.hostNetwork }}
{{- end }}
{{- if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy }}
{{- end }}
containers:
- args:
- controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
}
}
},
"dnsPolicy": {
"type": "string"
},
"edb-postgres-for-kubernetes-lts": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -130,6 +133,9 @@
}
}
},
"hostNetwork": {
"type": "boolean"
},
"image": {
"type": "object",
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions charts/edb-postgres-distributed-for-kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ imagePullSecrets:
nameOverride: ""
fullnameOverride: ""

hostNetwork: false
dnsPolicy: ""

crds:
create: true

Expand Down

0 comments on commit 0aa9ace

Please sign in to comment.