-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/sentry] Makes changing the secreyKey possible #19938
[stable/sentry] Makes changing the secreyKey possible #19938
Conversation
Signed-off-by: wilmardo <info@wilmardenouden.nl>
Signed-off-by: wilmardo <info@wilmardenouden.nl>
Signed-off-by: wilmardo <info@wilmardenouden.nl>
Signed-off-by: wilmardo <info@wilmardenouden.nl>
Hi @wilmardo. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
/ok-to-test |
/lgtm cancel |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: okgolove, wilmardo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
FYI, this PR broke the option to set passwords directly. |
@@ -22,9 +22,9 @@ data: | |||
{{ else }} | |||
user-password: {{ randAlphaNum 16 | b64enc | quote }} | |||
{{ end }} | |||
{{ if or (not .Values.postgresql.enabled) (.Values.postgresql.password) }} | |||
{{ if and (.Values.postgresql.existingSecret) (or (not .Values.postgresql.enabled) (.Values.postgresql.password)) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why need it here? It looks wrong for me. Originally password will save to this secret only if postgresql.enabled
is set to false
and have password settings in postgresql.password
, which allow using this kind of config:
postgresql:
# internal PG is disabled, not need to deploy postgresql to kubernetes
enabled: false
persistence:
enabled: false
# use RDS settings here
postgresqlHost: 99.111.222.333
postgresqlDatabase: sentry
postgresqlUsername: sentry
postgresqlPassword: "my_db_password_here"
postgresqlPort: 5432
Which allow Sentry to connect to external PostgreSQL instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. I missed this.
@donbeave Will do, PR coming in 15 minutes tops :) Sorry for the regression! |
@wilmardo no problem! Thank you for the fix. |
* feat: make specifiying email secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * feat: make specifiying postgresql secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * feat: make specifiying redis secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * chore: bump chartVersion Signed-off-by: wilmardo <info@wilmardenouden.nl>
* feat: make specifiying email secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * feat: make specifiying postgresql secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * feat: make specifiying redis secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * chore: bump chartVersion Signed-off-by: wilmardo <info@wilmardenouden.nl> Signed-off-by: Artur <artur@upbound.io>
* feat: make specifiying email secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * feat: make specifiying postgresql secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * feat: make specifiying redis secret key possible Signed-off-by: wilmardo <info@wilmardenouden.nl> * chore: bump chartVersion Signed-off-by: wilmardo <info@wilmardenouden.nl> Signed-off-by: Artur <artur@upbound.io>
@wilmardo setting I'm looking through the template files of stable/sentry 4.0.1, and the only template that actually checks for Is this an oversight? Or am i missing something. |
What this PR does / why we need it:
existingSecret
variables of email, postgres and redis. These variables where already in the (upstream) chart but undocumented in the README and values.yamlIn our we cluster we use a postgres-operator which supplies a credentials secret with the password under the
password
key not thepostgres-password
key. This change allows us to keep using the operator for the database.Special notes for your reviewer:
This should be backward compatible since it defaults to the previous hardcoded values.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/mychartname]
)