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

Add legacyApp field for slack #125

Merged
merged 4 commits into from
Jul 22, 2020
Merged

Conversation

mrtc0
Copy link
Contributor

@mrtc0 mrtc0 commented Jul 22, 2020

For the integration with the Slack App to work, need to configure slack.legacy-app .

ref : getsentry/sentry#19446

@@ -48,6 +48,9 @@ data:
slack.client-id: "{{ .Values.slack.clientId }}"
slack.client-secret: "{{ .Values.slack.clientSecret }}"
slack.verification-token: "{{ .Values.slack.verificationToken }}"
{{- if .Values.slack.legacyApp }}
slack.legacy-app: "{{ .Values.slack.legacyApp }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !
From what I see it should be a "python" boolean, not a string. Have you tried the behaviour on your instance?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried it in an instance. You're right, it should be a boolean here. I'll fix it.

Copy link
Contributor

@Mokto Mokto Jul 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you put # legacyApp: true in the values
and then


 {{- if .Values.slack.legacyApp }}
    slack.legacy-app: True
{{- else }}
    slack.legacy-app: False

That would make it easy to use

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the good suggestions. fixed it.

@@ -192,6 +192,7 @@ slack: {}
# clientId:
# clientSecret:
# verificationToken:
# legacyApp:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put another comment to reference this issue ?
getsentry/sentry#19446

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's certainly better to be able to reference the issue.

@Mokto Mokto changed the title Add regacyApp field for slack Add legacyApp field for slack Jul 22, 2020
@mrtc0 mrtc0 requested a review from Mokto July 22, 2020 09:14
@Mokto Mokto merged commit dfe8a12 into sentry-kubernetes:develop Jul 22, 2020
@Mokto
Copy link
Contributor

Mokto commented Jul 22, 2020

Thanks!

This was referenced Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants