diff --git a/charts/psmdb-operator/Chart.yaml b/charts/psmdb-operator/Chart.yaml index 602848ef..aaf6b1e5 100644 --- a/charts/psmdb-operator/Chart.yaml +++ b/charts/psmdb-operator/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "1.15.0" description: A Helm chart for deploying the Percona Operator for MongoDB name: psmdb-operator home: https://docs.percona.com/percona-operator-for-mongodb/ -version: 1.15.0 +version: 1.15.1 maintainers: - name: tplavcic email: tomislav.plavcic@percona.com diff --git a/charts/psmdb-operator/README.md b/charts/psmdb-operator/README.md index 2a2a0337..3237153e 100644 --- a/charts/psmdb-operator/README.md +++ b/charts/psmdb-operator/README.md @@ -32,6 +32,8 @@ The chart can be customized using the following configurable parameters: | `image.pullSecrets` | PSMDB Operator Pod pull secret | `[]` | | `replicaCount` | PSMDB Operator Pod quantity | `1` | | `tolerations` | List of node taints to tolerate | `[]` | +| `annotations` | PSMDB Operator Deployment annotations | `{}` | +| `podAnnotations` | PSMDB Operator Pod annotations | `{}` | | `resources` | Resource requests and limits | `{}` | | `nodeSelector` | Labels for Pod assignment | `{}` | | `podAnnotations` | Annotations for pod | `{}` | @@ -40,6 +42,7 @@ The chart can be customized using the following configurable parameters: | `rbac.create` | If false RBAC will not be created. RBAC resources will need to be created manually | `true` | | `securityContext` | Container Security Context | `{}` | | `serviceAccount.create` | If false the ServiceAccounts will not be created. The ServiceAccounts must be created manually | `true` | +| `serviceAccount.annotations` | PSMDB Operator ServiceAccount annotations | `{}` | | `logStructured` | Force PSMDB operator to print JSON-wrapped log messages | `false` | | `logLevel` | PSMDB Operator logging level | `INFO` | | `disableTelemetry` | Disable sending PSMDB Operator telemetry data to Percona | `false` | diff --git a/charts/psmdb-operator/templates/deployment.yaml b/charts/psmdb-operator/templates/deployment.yaml index a208e8ef..c4ccdcd6 100644 --- a/charts/psmdb-operator/templates/deployment.yaml +++ b/charts/psmdb-operator/templates/deployment.yaml @@ -4,7 +4,11 @@ metadata: name: {{ include "psmdb-operator.fullname" . }} namespace: {{ .Release.Namespace }} labels: -{{ include "psmdb-operator.labels" . | indent 4 }} + {{- include "psmdb-operator.labels" . | nindent 4 }} + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: diff --git a/charts/psmdb-operator/templates/role-binding.yaml b/charts/psmdb-operator/templates/role-binding.yaml index 3f452840..fb2bdbe3 100644 --- a/charts/psmdb-operator/templates/role-binding.yaml +++ b/charts/psmdb-operator/templates/role-binding.yaml @@ -4,6 +4,10 @@ kind: ServiceAccount metadata: name: {{ include "psmdb-operator.fullname" . }} namespace: {{ .Release.Namespace }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} --- {{- end }} {{- if .Values.rbac.create }} diff --git a/charts/psmdb-operator/values.yaml b/charts/psmdb-operator/values.yaml index ab989c84..37f58e23 100644 --- a/charts/psmdb-operator/values.yaml +++ b/charts/psmdb-operator/values.yaml @@ -31,7 +31,13 @@ rbac: serviceAccount: # serviceAccount.create: Whether to create the Service Accounts or not create: true + # annotations to add to the service account + annotations: {} +# annotations to add to the operator deployment +annotations: {} + +# annotations to add to the operator pod podAnnotations: {} # prometheus.io/scrape: "true" # prometheus.io/port: "8080"