Skip to content

Commit

Permalink
feat(helm): introduce provider property to values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
error418 committed Jul 18, 2020
1 parent b741c99 commit ee23a74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions helm/swingletree/templates/_config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ scotty:
storage:
host: {{ .Values.redis.fullnameOverride }}-master.{{ .Release.Namespace }}
password: {{ .Values.redis.password }}
provider: {{ .Values.provider }}
elastic:
{{ toYaml .Values.elastic | indent 4 }}
github:
{{ toYaml .Values.github | indent 4 }}
gitea:
{{ toYaml .Values.gitea | indent 4 }}
port: 3000

{{ if .Values.plugins.nebula.enabled -}}
Expand Down
12 changes: 10 additions & 2 deletions helm/swingletree/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ cookies:
jwt:
secret: # if you do not set this a random secret will be generated on startup of deck (not compatible when running more than one deck instance)

## GitHub configuration
# SCM Provider to use
provider: github # can be "github" or "gitea"

## GitHub configuration (required when provider is set to "github")
github:
app:
id: # The AppId of your GitHub app instance (not installation!)
Expand All @@ -54,6 +57,11 @@ github:
callbackURL: http://localhost:3020/auth/github/callback # adjust this, if you are running GitHub Enterprise
debug: false # runs octokit in debug mode. Use this only for debug, since this can reveal secret tokens in the logs!

# Gitea configuration (required when provider is set to "gitea")
gitea:
token: # API token
baseurl: # gitea instance baseurl (without /api/v1/)

## SonarQube configuration
sonar:
base: # SonarQube base url
Expand All @@ -75,7 +83,7 @@ gate:
token: # authentication secret for gate plugin endpoints. Set this to a value.

### scotty configuration
scotty: # not needed yet :)
scotty: # not required (yet) :)


# github app key file content
Expand Down

0 comments on commit ee23a74

Please sign in to comment.