Skip to content

Commit

Permalink
Merge pull request #71 from theyough/main
Browse files Browse the repository at this point in the history
chore: enable storage when bucketUrl is set
  • Loading branch information
jenkins-x-bot authored Nov 22, 2023
2 parents f72ac2a + 71d6e31 commit 860d879
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/bucketrepo/templates/_config.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ http:

storage:
{{- if .Values.config.storage.bucketUrl }}
enabled: true
bucket_url: "{{ .Values.config.storage.bucketUrl }}"
{{- else if and (hasKey .Values.jxRequirements "storage") ( .Values.jxRequirements.storage) }}
{{- range $key, $val := .Values.jxRequirements.storage }}
{{- if eq "repository" $val.name }}
enabled: true
bucket_url: "{{ $val.url }}"
{{- end }}
{{- end }}
Expand Down

0 comments on commit 860d879

Please sign in to comment.