Trim slash for configure URL. (#2381)

This commit is contained in:
Tingluo Huang
2023-03-09 09:02:05 -05:00
committed by GitHub
parent c5d6842d5f
commit a462ecbe79
4 changed files with 73 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ metadata:
labels:
{{- include "gha-runner-scale-set.labels" . | nindent 4 }}
spec:
githubConfigUrl: {{ required ".Values.githubConfigUrl is required" .Values.githubConfigUrl }}
githubConfigUrl: {{ required ".Values.githubConfigUrl is required" (trimSuffix "/" .Values.githubConfigUrl) }}
githubConfigSecret: {{ include "gha-runner-scale-set.githubsecret" . }}
{{- with .Values.runnerGroup }}
runnerGroup: {{ . }}