Skip to content

Commit

Permalink
Merge pull request #331 from alex-souslik-hs/main
Browse files Browse the repository at this point in the history
K8SPSMDB-1104  - add `annotations` value
  • Loading branch information
tplavcic authored Jun 6, 2024
2 parents 4d24385 + a3de1de commit 2fe0404
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/psmdb-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "1.16.0"
description: A Helm chart for installing Percona Server MongoDB Cluster Databases using the PSMDB Operator.
name: psmdb-db
home: https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html
version: 1.16.0
version: 1.16.1
maintainers:
- name: tplavcic
email: [email protected]
Expand Down
1 change: 1 addition & 0 deletions charts/psmdb-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ The chart can be customized using the following configurable parameters:
| `unsafeFlags.backupIfUnhealthy` | Allows running backup on a cluster with failed health checks | `false` |
| `clusterServiceDNSSuffix` | The (non-standard) cluster domain to be used as a suffix of the Service name | `""` |
| `clusterServiceDNSMode` | Mode for the cluster service dns (Internal/ServiceMesh) | `""` |
| `annotations` | PSMDB custom resource annotations | `{}` |
| `ignoreAnnotations` | The list of annotations to be ignored by the Operator | `[]` |
| `ignoreLabels` | The list of labels to be ignored by the Operator | `[]` |
| `multiCluster.enabled` | Enable Multi Cluster Services (MCS) cluster mode | `false` |
Expand Down
5 changes: 3 additions & 2 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
apiVersion: psmdb.percona.com/v1
kind: PerconaServerMongoDB
metadata:
{{- if .Values.annotations }}
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"psmdb.percona.com/v1","kind":"PerconaServerMongoDB"}
{{ .Values.annotations | toYaml | indent 4 }}
{{- end }}
name: {{ include "psmdb-database.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
Expand Down
2 changes: 2 additions & 0 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ unsafeFlags:
terminationGracePeriod: false
backupIfUnhealthy: false

annotations: {}

# ignoreAnnotations:
# - service.beta.kubernetes.io/aws-load-balancer-backend-protocol
# ignoreLabels:
Expand Down

0 comments on commit 2fe0404

Please sign in to comment.