Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8SPG-632 - Allow podAnnotations via helm values for PG-operator #364

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/pg-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pg-operator
description: 'A Helm chart to deploy the Percona Operator for PostgreSQL'
type: application
version: 2.4.1
version: 2.4.2
appVersion: 2.4.1
home: https://docs.percona.com/percona-operator-for-postgresql/2.0/
maintainers:
Expand Down
1 change: 1 addition & 0 deletions charts/pg-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Chart.
| `logStructured` | Force PG operator to print JSON-wrapped log messages | `false` |
| `logLevel` | PG Operator logging level | `INFO` |
| `disableTelemetry` | Disable sending PG Operator telemetry data to Percona | `false` |
| `podAnnotations` | Add annotations to the Operator Pod | `{}` |
| `watchNamespace` | Set this variable if the target cluster namespace differs from operators namespace | `` |
| `watchAllNamespaces` | K8S Cluster-wide operation | `false` |

Expand Down
4 changes: 4 additions & 0 deletions charts/pg-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ include "postgres-operator.name" . }}
pgv2.percona.com/control-plane: postgres-operator
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "postgres-operator.fullname" . }}
{{- with .Values.imagePullSecrets }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pg-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ tolerations: []

affinity: {}

podAnnotations: {}

# disableTelemetry: according to
# https://docs.percona.com/percona-operator-for-postgresql/2.0/telemetry.html
# this is how you can disable telemetry collection
Expand Down
Loading