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 committed Dec 4, 2024
1 parent 0f7ffb1 commit 0b57fee
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/edb-postgres-distributed-for-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ 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 repository: 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
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 @@ -124,6 +127,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 @@ -47,6 +47,9 @@ imagePullSecrets:
nameOverride: ""
fullnameOverride: ""

hostNetwork: false
dnsPolicy: ""

crds:
create: true

Expand Down

0 comments on commit 0b57fee

Please sign in to comment.