Skip to content

Commit

Permalink
feat: supports github apps - sso (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokto authored Feb 10, 2020
1 parent da70618 commit 90829bd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion sentry-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sentry-db
description: A Helm chart for Kubernetes
type: application
version: 0.7.0
version: 0.8.0
appVersion: 10.0.0
dependencies:
- name: redis
Expand Down
2 changes: 1 addition & 1 deletion sentry/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: sentry
description: A Helm chart for Kubernetes
type: application
version: 0.7.0
version: 0.8.0
appVersion: 10.0.0
22 changes: 15 additions & 7 deletions sentry/templates/configmap-sentry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,21 @@ data:
{{ if .Values.github.appId }}
github-app.id: {{ .Values.github.appId }}
{{ end }}
{{ if .Values.github.appName }}
github-app.name: "{{ .Values.github.appName }}"
# github-app.webhook-secret: ""
# github-app.private-key: ""
{{ end }}
{{ if .Values.github.privateKey }}
github-app.private-key: |-
{{ .Values.github.privateKey | nindent 8 }}"
{{ end }}
{{ if .Values.github.webhookSecret }}
github-app.webhook-secret: "{{ .Values.github.webhookSecret }}"
{{ end }}
{{ if .Values.github.clientId }}
github-app.client-id: "{{ .Values.github.clientId }}"
{{ end }}
{{ if .Values.github.clientSecret }}
github-app.client-secret: "{{ .Values.github.clientSecret }}"
{{ end }}
Expand Down Expand Up @@ -307,11 +318,8 @@ data:
# GitHub Integration #
#####################
GITHUB_APP_ID = '{{ .Values.github.appId }}'
GITHUB_API_SECRET = '{{ .Values.github.appSecret }}'
# GITHUB_APP_ID = 'YOUR_GITHUB_APP_ID'
# GITHUB_API_SECRET = 'YOUR_GITHUB_API_SECRET'
# GITHUB_EXTENDED_PERMISSIONS = ['repo']
GITHUB_APP_ID = '{{ .Values.githubSso.clientId }}'
GITHUB_API_SECRET = '{{ .Values.githubSso.clientSecret }}'
#########################
# Bitbucket Integration #
Expand Down
16 changes: 11 additions & 5 deletions sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,18 @@ service:
# - 192.168.0.1
# loadBalancerSourceRanges: []

github: {}
github: {} # https://github.com/settings/apps (Create a Github App)
# github:
# appId:
# appName:
# clientId:
# clientSecret:
# appId: "xxxx"
# appName: MyAppName
# clientId: "xxxxx"
# clientSecret: "xxxxx"
# privateKey: "-----BEGIN RSA PRIVATE KEY-----\nMIIEpA" !!!! Don't forget a trailing \n
# webhookSecret: "xxxxx`"

githubSso: {} # https://github.com/settings/developers (Create a OAuth App)
# clientId: "xx"
# clientSecret: "xx"

slack: {}
# slack:
Expand Down

0 comments on commit 90829bd

Please sign in to comment.