Skip to content

Commit

Permalink
fix(pmm/secret): use Values.secret.annotations (#263)
Browse files Browse the repository at this point in the history
* fix(pmm/secret): use Values.secret.annotations

* Add "secret.annotations" in values.yaml

* edit readme

* bump chart patch version
  • Loading branch information
ebuildy authored Jan 29, 2024
1 parent 822f85e commit 7847a56
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/pmm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pmm
description: A Helm chart for Percona Monitoring and Management (PMM)
type: application
version: 1.3.8
version: 1.3.9
appVersion: "2.41.0"
home: https://github.com/percona/pmm
maintainers:
Expand Down
1 change: 1 addition & 0 deletions charts/pmm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ It removes all of the resources associated with the last release of the chart as
| Name | Description | Value |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| `secret.name` | Defines the name of the k8s secret that holds passwords and other secrets | `pmm-secret` |
| `secret.annotations` | Defines the annotations of the k8s secret that holds passwords and other secrets | `{}` |
| `secret.create` | If true then secret will be generated by Helm chart. Otherwise it is expected to be created by user. | `true` |
| `secret.pmm_password` | Initial PMM password - it changes only on the first deployment, ignored if PMM was already provisioned and just restarted. If PMM admin password is not set, it will be generated. | `""` |
| `certs` | Optional certificates, if not provided PMM would use generated self-signed certificates, | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion charts/pmm/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: {{ .Values.secret.name }}
labels:
{{- include "pmm.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
{{- with .Values.secret.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/pmm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ secret:
## @param secret.name Defines the name of the k8s secret that holds passwords and other secrets
##
name: pmm-secret
## @param secret.annotations -- Secret annotations configuration
annotations: {}
## @param secret.create If true then secret will be generated by Helm chart. Otherwise it is expected to be created by user.
##
create: true
Expand Down

0 comments on commit 7847a56

Please sign in to comment.