Skip to content

Commit d721d9f

Browse files
litaocdlgabriele-wolfox
authored andcommitted
feat: support for podAnnotations
Signed-off-by: Tao Li <tao.li@enterprisedb.com>
1 parent a71a4e5 commit d721d9f

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ global repository |
7272
| nameOverride | string | `""` | |
7373
| nodeSelector | object | `{}` | Nodeselector for the operator to be installed |
7474
| podAnnotations | object | `{}` | Annotations to be added to the pod |
75+
| podLabels | object | `{}` | Labels to be added to the pod |
7576
| podSecurityContext | object | `{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}` | Security Context for the whole pod |
7677
| priorityClassName | string | `""` | Priority indicates the importance of a Pod relative to other Pods. |
7778
| rbac.aggregateClusterRoles | bool | `false` | Aggregate ClusterRoles to Kubernetes default user-facing roles. Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles |

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ spec:
4141
labels:
4242
control-plane: controller-manager
4343
{{- include "edb-postgres-distributed-for-kubernetes.selectorLabels" . | nindent 8 }}
44+
{{- with .Values.podLabels }}
45+
{{- toYaml . | nindent 8 }}
46+
{{- end }}
4447
spec:
4548
{{- with .Values.imagePullSecrets }}
4649
imagePullSecrets:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@
227227
"podAnnotations": {
228228
"type": "object"
229229
},
230+
"podLabels": {
231+
"type": "object"
232+
},
230233
"podSecurityContext": {
231234
"type": "object",
232235
"properties": {

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,12 @@ rbac:
127127
# Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
128128
aggregateClusterRoles: false
129129

130-
# -- Annotations to be added to the pod
131-
podAnnotations: {}
132130
# -- Annotations to be added to all other resources
133131
commonAnnotations: {}
132+
# -- Annotations to be added to the pod
133+
podAnnotations: {}
134+
# -- Labels to be added to the pod
135+
podLabels: {}
134136

135137
# -- Container Security Context
136138
containerSecurityContext:

0 commit comments

Comments
 (0)