Skip to content

Commit

Permalink
Add ENABLED env vars for Git forges (#206)
Browse files Browse the repository at this point in the history
* Add ENABLED env vars for Git forges

* Helm-Docs update

---------

Co-authored-by: jesper7 <jesper7@users.noreply.github.com>
  • Loading branch information
jesper7 and jesper7 authored Sep 26, 2023
1 parent b643903 commit ca43eb1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/studio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: studio
description: A Helm chart for Kubernetes
type: application
version: 0.6.6
version: 0.6.7
appVersion: "v2.29.0"
maintainers:
- name: iterative
Expand Down
2 changes: 1 addition & 1 deletion charts/studio/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# studio

![Version: 0.6.6](https://img.shields.io/badge/Version-0.6.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.29.0](https://img.shields.io/badge/AppVersion-v2.29.0-informational?style=flat-square)
![Version: 0.6.7](https://img.shields.io/badge/Version-0.6.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.29.0](https://img.shields.io/badge/AppVersion-v2.29.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down
9 changes: 9 additions & 0 deletions charts/studio/templates/configmap-studio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ data:
BASE_PATH: /{{ include "studio.basePath" . }}
{{- end }}

{{- if .Values.global.scmProviders.bitbucket.enabled }}
BITBUCKET_ENABLED: {{ .Values.global.scmProviders.bitbucket.enabled | default false | quote | title }}
{{- end }}
{{- if .Values.global.scmProviders.bitbucket.url }}
BITBUCKET_URL: {{.Values.global.scmProviders.bitbucket.url | quote }}
{{- end }}
Expand Down Expand Up @@ -62,6 +65,9 @@ data:
REDIS_URL: "redis://{{ .Values.redis.fullnameOverride }}-master.{{ .Release.Namespace }}.svc.cluster.local:6379"
{{- end }}

{{- if .Values.global.scmProviders.github.enabled }}
GITHUB_ENABLED: {{ .Values.global.scmProviders.github.enabled | default false | quote | title }}
{{- end }}
{{- if .Values.global.scmProviders.github.apiUrl }}
GITHUB_API_URL: {{ .Values.global.scmProviders.github.apiUrl | quote }}
{{- end }}
Expand All @@ -81,6 +87,9 @@ data:
GITHUB_APP_NAME: {{ .Values.global.scmProviders.github.appName | quote }}
{{- end }}

{{- if .Values.global.scmProviders.gitlab.enabled }}
GITLAB_ENABLED: {{ .Values.global.scmProviders.gitlab.enabled | default false | quote | title }}
{{- end }}
{{- if .Values.global.scmProviders.gitlab.url }}
GITLAB_URL: {{ .Values.global.scmProviders.gitlab.url | quote}}
{{- end }}
Expand Down

0 comments on commit ca43eb1

Please sign in to comment.